From 4ba2b1ca1ff6617728eb1a39b78aa017302e0a9d Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Thu, 18 Sep 2025 10:52:59 +1000 Subject: [PATCH] more returns --- src/main/resources/assets/voxy/shaders/lod/gl46/quads.frag | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/resources/assets/voxy/shaders/lod/gl46/quads.frag b/src/main/resources/assets/voxy/shaders/lod/gl46/quads.frag index 63ad81a3..d5d0db28 100644 --- a/src/main/resources/assets/voxy/shaders/lod/gl46/quads.frag +++ b/src/main/resources/assets/voxy/shaders/lod/gl46/quads.frag @@ -133,11 +133,13 @@ void main() { if (any(notEqual(clamp(tile, vec2(0), vec2((interData.x>>8)&0xFu, (interData.x>>12)&0xFu)), tile))) { discard; + return; } //Check the minimum bounding texture and ensure we are greater than it if (gl_FragCoord.z < texelFetch(depthTex, ivec2(gl_FragCoord.xy), 0).r) { discard; + return; } @@ -147,6 +149,7 @@ void main() { //TODO: FIXME, basicly what this do is sample the exact pixel (no lod) for discarding, this stops mipmapping fucking it over #ifndef DEBUG_RENDER discard; + return; #endif }