mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 22:43:56 +01:00
Fix sprite UVs being messed up
This commit is contained in:
parent
ae4e4e79f5
commit
05b82b50ca
@ -8,8 +8,8 @@ public final class 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user