Skip to content

Commit

Permalink
Fix sprite UVs being messed up
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Oct 6, 2024
1 parent ae4e4e7 commit 05b82b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ private VertexTransformations() {
}

public static void retexture(MutableVertexList vertexList, int index, TextureAtlasSprite sprite) {
vertexList.u(index, sprite.getU(vertexList.u(index) * 16));
vertexList.v(index, sprite.getV(vertexList.v(index) * 16));
vertexList.u(index, sprite.getU(vertexList.u(index)));
vertexList.v(index, sprite.getV(vertexList.v(index)));
}

public static void retexture(MutableVertexList vertexList, TextureAtlasSprite sprite) {
Expand Down

0 comments on commit 05b82b5

Please sign in to comment.