Skip to content

Commit

Permalink
fix: wrong texture name in Texture Transform check
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Jan 13, 2023
1 parent 695232d commit a54b2cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static void ValidateMaterialKeywords(Material material)

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

0 comments on commit a54b2cc

Please sign in to comment.