diff options
author | makamys <makamys@outlook.com> | 2022-06-20 05:27:59 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-20 05:27:59 +0200 |
commit | 7dff285521818b4c39666f1b6619dfc895ae885a (patch) | |
tree | 1d4aa60c0eb8f9889e306389fd9906e7e2de3002 /src/main/java | |
parent | 89458da5809b660381aa4843d1c2a6925e471c2e (diff) | |
download | Neodymium-7dff285521818b4c39666f1b6619dfc895ae885a.tar.gz Neodymium-7dff285521818b4c39666f1b6619dfc895ae885a.tar.bz2 Neodymium-7dff285521818b4c39666f1b6619dfc895ae885a.zip |
Fix OptiFine fast render compat
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/makamys/neodymium/renderer/ChunkMesh.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java index 54af47b..c89129c 100644 --- a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java +++ b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java @@ -80,9 +80,9 @@ public class ChunkMesh extends Mesh { int zOffset = wr.posZ; boolean fr = MixinConfigPlugin.isOptiFinePresent() && Neodymium.ofFastRender; - int tessellatorXOffset = fr ? xOffset : 0; - int tessellatorYOffset = fr ? yOffset : 0; - int tessellatorZOffset = fr ? zOffset : 0; + int tessellatorXOffset = fr ? 0 : xOffset; + int tessellatorYOffset = fr ? 0 : yOffset; + int tessellatorZOffset = fr ? 0 : zOffset; boolean optimize = Config.simplifyChunkMeshes; @@ -92,7 +92,7 @@ public class ChunkMesh extends Mesh { List<MeshQuad> quads = new ArrayList<>(); for(int quadI = 0; quadI < t.vertexCount / 4; quadI++) { - MeshQuad quad = new MeshQuad(t.rawBuffer, quadI * 32, flags, wr.posX, wr.posY, wr.posZ); + MeshQuad quad = new MeshQuad(t.rawBuffer, quadI * 32, flags, tessellatorXOffset, tessellatorYOffset, tessellatorZOffset); //if(quad.bUs[0] == quad.bUs[1] && quad.bUs[1] == quad.bUs[2] && quad.bUs[2] == quad.bUs[3] && quad.bUs[3] == quad.bVs[0] && quad.bVs[0] == quad.bVs[1] && quad.bVs[1] == quad.bVs[2] && quad.bVs[2] == quad.bVs[3] && quad.bVs[3] == 0) { // quad.deleted = true; //} |