Skip to content

Commit

Permalink
refactored ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
pfcDorn committed Jan 17, 2024
1 parent 01b5e4c commit 15babdb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Runtime/Scripts/SceneImporter/ImporterMaterials.cs
Expand Up @@ -103,12 +103,10 @@ void CalculateYOffsetAndScale(TextureId textureId, ExtTextureTransformExtension
mapper.Material.SetFloat("_BUILTIN_QueueControl", -1);
mapper.Material.SetFloat("_QueueControl", -1);

#if !UNITY_EDITOR
mapper.Material.SetFloat("_RuntimeCreatedNormalMap", 1);
#else
#if UNITY_EDITOR
if (Context.SourceImporter == null)
mapper.Material.SetFloat("_RuntimeCreatedNormalMap", 1);
#endif
mapper.Material.SetFloat("_NormalMapFormatXYZ", 1);

void SetTransformKeyword()
{
Expand Down

0 comments on commit 15babdb

Please sign in to comment.