From 779c651ea0e0dfdb6d416c8eda60864229b72f93 Mon Sep 17 00:00:00 2001 From: makamys Date: Sun, 9 May 2021 05:56:35 +0200 Subject: Render in two passes, no more G to sort --- src/main/java/makamys/lodmod/mixin/MixinTessellator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/makamys/lodmod/mixin/MixinTessellator.java') diff --git a/src/main/java/makamys/lodmod/mixin/MixinTessellator.java b/src/main/java/makamys/lodmod/mixin/MixinTessellator.java index 3624832..eea2a31 100644 --- a/src/main/java/makamys/lodmod/mixin/MixinTessellator.java +++ b/src/main/java/makamys/lodmod/mixin/MixinTessellator.java @@ -54,7 +54,7 @@ abstract class MixinTessellator implements ITessellator { } }*/ - public ChunkMesh toChunkMesh() { + public ChunkMesh toChunkMesh(int pass) { if(this.vertexCount % 4 != 0) { System.out.println("Error: Vertex count is not a multiple of 4"); return null; @@ -122,7 +122,7 @@ abstract class MixinTessellator implements ITessellator { return new ChunkMesh( (int)(-xOffset / 16), (int)(-yOffset / 16), (int)(-zOffset / 16), new ChunkMesh.Flags(hasTexture, hasBrightness, hasColor, hasNormals), - quadCount, quads); + quadCount, quads, pass); } else { return null; } -- cgit