aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/lodmod/mixin/MixinTessellator.java
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2021-05-09 05:56:35 +0200
committermakamys <makamys@outlook.com>2021-05-09 05:58:34 +0200
commit779c651ea0e0dfdb6d416c8eda60864229b72f93 (patch)
treebcb1a375da0e55213bf6f885d7de188c32b2ed53 /src/main/java/makamys/lodmod/mixin/MixinTessellator.java
parent16ccbfa46653164630e73b6e43e707f86131c718 (diff)
downloadNeodymium-779c651ea0e0dfdb6d416c8eda60864229b72f93.tar.gz
Neodymium-779c651ea0e0dfdb6d416c8eda60864229b72f93.tar.bz2
Neodymium-779c651ea0e0dfdb6d416c8eda60864229b72f93.zip
Render in two passes, no more G to sort
Diffstat (limited to 'src/main/java/makamys/lodmod/mixin/MixinTessellator.java')
-rw-r--r--src/main/java/makamys/lodmod/mixin/MixinTessellator.java4
1 files changed, 2 insertions, 2 deletions
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;
}