Skip to content

Commit

Permalink
rm unnecessary forced texture transform setting
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed May 7, 2023
1 parent 9a1ba49 commit a42b431
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,6 @@ public static void ValidateMaterialKeywords(Material material)

if (material.HasProperty("emissiveFactor"))
material.globalIlluminationFlags = MaterialEditor.FixupEmissiveFlag(material.GetColor("emissiveFactor"), material.globalIlluminationFlags);

if (!material.IsKeywordEnabled("_TEXTURE_TRANSFORM_ON") && material.HasProperty("baseColorTexture"))
{
if (material.GetTextureScale("baseColorTexture") != Vector2.one || material.GetTextureOffset("baseColorTexture") != Vector2.zero)
{
SetKeyword(material, "_TEXTURE_TRANSFORM", true);
}
}
}

public static void SetKeyword(Material material, string keyword, bool state)
Expand Down

0 comments on commit a42b431

Please sign in to comment.