Skip to content

Commit

Permalink
Fixed issue with sprites not drawing properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
h-sigma committed Feb 9, 2021
1 parent 5f6962c commit 9fb5cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PvCustomizer/Editor/Scripts/PvCustomizerGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private static void SetTiling(Material material, Rect texCoords, Vector2 texSize
Vector2 inverseTexSize = new Vector2(1 / texSize.x, 1 / texSize.y);
Vector2 uvScale = texCoords.size * inverseTexSize;
SetTiling(material,
new Rect(texCoords.position * inverseTexSize, new Vector2(1 / uvScale.x, 1 / uvScale.y)));
new Rect(texCoords.position * inverseTexSize, new Vector2(uvScale.x, uvScale.y)));
}

private static void ResetTiling(Material material)
Expand Down

0 comments on commit 9fb5cf3

Please sign in to comment.