Merge remote-tracking branch 'origin/master'

This commit is contained in:
mcrcortex
2024-06-29 22:01:31 +09:00
2 changed files with 0 additions and 4 deletions

View File

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

View File

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