Merge pull request #52 from Xenthio/NoOceanSeams

Fiix very noticable overlap with large bodies of water.
This commit is contained in:
MCRcortex
2024-06-01 15:23:42 +10:00
committed by GitHub
2 changed files with 0 additions and 4 deletions

View File

@@ -200,9 +200,7 @@ public class Gl46FarWorldRenderer extends AbstractFarWorldRenderer<Gl46Viewport>
this.lodShader.bind();
this.bindResources(viewport);
glDepthMask(false);
glMultiDrawElementsIndirectCountARB(GL_TRIANGLES, GL_UNSIGNED_SHORT, 400_000 * 4 * 5, 4, this.geometry.getSectionCount(), 0);
glDepthMask(true);
glEnable(GL_CULL_FACE);
glBindVertexArray(0);

View File

@@ -159,9 +159,7 @@ public class NvMeshFarWorldRenderer extends AbstractFarWorldRenderer<NvMeshViewp
this.translucent.bind();
this.bindResources(viewport);
glDepthMask(false);
glDrawMeshTasksNV(0, this.geometry.getSectionCount());
glDepthMask(true);
glEnable(GL_CULL_FACE);
glBindVertexArray(0);