Fix time keyframe lines rendering below timeline

This commit is contained in:
Jonas Herzig
2024-06-25 10:30:43 +02:00
parent d70e41006d
commit 2b2ab2ba8b
3 changed files with 21 additions and 10 deletions

View File

@@ -254,7 +254,7 @@ public class PathPreviewRenderer extends EventRegistrations {
buffer.begin(GL11.GL_LINES, VertexFormats.POSITION_COLOR);
//#endif
emitLine(buffer, Vector3f.sub(pos1, view, null), Vector3f.sub(pos2, view, null), color);
emitLine(new MatrixStack(), buffer, Vector3f.sub(pos1, view, null), Vector3f.sub(pos2, view, null), color);
//#if MC>=11700
//$$ RenderSystem.setShader(GameRenderer::getRenderTypeLinesShader);
@@ -350,7 +350,7 @@ public class PathPreviewRenderer extends EventRegistrations {
buffer.begin(GL11.GL_LINES, VertexFormats.POSITION_COLOR);
//#endif
emitLine(buffer, new Vector3f(0, 0, 0), new Vector3f(0, 0, 2), 0x00ff00aa);
emitLine(new MatrixStack(), buffer, new Vector3f(0, 0, 0), new Vector3f(0, 0, 2), 0x00ff00aa);
//#if MC>=11700
//$$ RenderSystem.applyModelViewMatrix();