Add a advanced graphics option to use a extended near clip plain

This prevents some overdraw issues but causes LODs in the ocean to render incorrectly.
This commit is contained in:
James Seibel
2021-10-25 22:20:00 -05:00
parent 936a3a7ece
commit 4ad081e0c6
2 changed files with 12 additions and 2 deletions
@@ -568,7 +568,7 @@ public class LodRenderer
Matrix4f.perspective(
getFov(partialTicks, true),
(float) this.mc.getWindow().getScreenWidth() / (float) this.mc.getWindow().getScreenHeight(),
vanillaBlockRenderedDistance / 5,
LodConfig.CLIENT.graphics.advancedGraphicsOption.useExtendedNearClipPlane.get() ? vanillaBlockRenderedDistance / 5 : 1,
farPlaneBlockDistance * LodUtil.CHUNK_WIDTH / 2);
// get Minecraft's un-edited projection matrix