mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-01 01:30:00 -04:00
Fix sprite and spriteBake (#1122)
This commit is contained in:
parent
fdf52297d0
commit
16a658fec4
2 changed files with 5 additions and 5 deletions
fabric-renderer-api-v1/src/main/java/net/fabricmc/fabric/api/renderer/v1/mesh
fabric-renderer-indigo/src/main/java/net/fabricmc/fabric/impl/client/indigo/renderer/helper
|
@ -157,10 +157,10 @@ public interface QuadEmitter extends MutableQuadView {
|
|||
right = 1 - right;
|
||||
|
||||
case NORTH:
|
||||
pos(0, right, top, depth);
|
||||
pos(1, right, bottom, depth);
|
||||
pos(2, left, bottom, depth);
|
||||
pos(3, left, top, depth);
|
||||
pos(0, 1 - left, top, depth);
|
||||
pos(1, 1 - left, bottom, depth);
|
||||
pos(2, 1 - right, bottom, depth);
|
||||
pos(3, 1 - right, top, depth);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -104,6 +104,6 @@ public class TextureHelper {
|
|||
UVLOCKERS[Direction.NORTH.getId()] = (q, i, t) -> q.sprite(i, t, 1 - q.x(i), 1 - q.y(i));
|
||||
UVLOCKERS[Direction.SOUTH.getId()] = (q, i, t) -> q.sprite(i, t, q.x(i), 1 - q.y(i));
|
||||
UVLOCKERS[Direction.DOWN.getId()] = (q, i, t) -> q.sprite(i, t, q.x(i), 1 - q.z(i));
|
||||
UVLOCKERS[Direction.UP.getId()] = (q, i, t) -> q.sprite(i, t, q.x(i), 1 - q.z(i));
|
||||
UVLOCKERS[Direction.UP.getId()] = (q, i, t) -> q.sprite(i, t, q.x(i), q.z(i));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue