From 98f6cea86a2c3d71262376cd23b755f2690544dc Mon Sep 17 00:00:00 2001 From: James Seibel Date: Thu, 23 Apr 2026 17:09:24 -0500 Subject: [PATCH] Fix near clip plane to close with shaders --- .../seibel/distanthorizons/core/util/RenderUtil.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/util/RenderUtil.java b/core/src/main/java/com/seibel/distanthorizons/core/util/RenderUtil.java index 30c22169d..807fe6ca7 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/util/RenderUtil.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/util/RenderUtil.java @@ -123,7 +123,16 @@ public class RenderUtil // At low render distances this hides the vanilla RD border int chunkRenderDistance = MC_RENDER.getRenderDistance(); - if (chunkRenderDistance <= 2) + + if (IRIS_ACCESSOR != null + && IRIS_ACCESSOR.isShaderPackInUse()) + { + // shaders handle the near clip plane/overdraw differently, best to play it + // safe and have the plane really close otherwise + // there might be cutouts on the screen edges + overdraw = 0.2f; + } + else if (chunkRenderDistance <= 2) { overdraw = 0.2f; }