Fixed LineOutlines rendering incorrectly

This commit is contained in:
simibubi 2023-05-08 10:03:47 +02:00
parent da35b6cd63
commit 85a53f6966

View file

@ -56,9 +56,11 @@ public abstract class Outline {
poseStack.pushPose();
TransformStack.cast(poseStack)
.translate(start)
.rotateY(hAngle)
.rotateX(vAngle);
bufferCuboidLine(poseStack.last(), consumer, start, Direction.NORTH, length, width, color, lightmap, disableNormals);
bufferCuboidLine(poseStack.last(), consumer, Vector3f.ZERO, Direction.SOUTH, length, width, color, lightmap,
disableNormals);
poseStack.popPose();
}