Skip to content

Commit 582af27

Browse files
Fix: Use correct value for "Auto" queue control for imported materials. (#866)
1 parent 2c7a79f commit 582af27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Runtime/Scripts/SceneImporter/ImporterMaterials.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ void CalculateYOffsetAndScale(TextureId textureId, ExtTextureTransformExtension
100100
mapper.AlphaMode = def.AlphaMode;
101101
mapper.AlphaCutoff = def.AlphaCutoff;
102102
mapper.DoubleSided = def.DoubleSided;
103-
mapper.Material.SetFloat("_BUILTIN_QueueControl", -1);
104-
mapper.Material.SetFloat("_QueueControl", -1);
103+
mapper.Material.SetFloat("_BUILTIN_QueueControl", 0);
104+
mapper.Material.SetFloat("_QueueControl", 0);
105105

106106
#if UNITY_EDITOR
107107
if (Context.SourceImporter == null)

0 commit comments

Comments
 (0)