From 194cf672ee3ef527e5c6a6014fd9d3f13b8dd530 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Wed, 22 Jan 2025 08:07:47 +1000 Subject: [PATCH] lower value + extra debug --- .../me/cortex/voxy/client/config/VoxyConfigScreenFactory.java | 2 +- src/main/resources/assets/voxy/shaders/lod/gl46/quads.frag | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/voxy/client/config/VoxyConfigScreenFactory.java b/src/main/java/me/cortex/voxy/client/config/VoxyConfigScreenFactory.java index 3bf8af0d..72ecd02a 100644 --- a/src/main/java/me/cortex/voxy/client/config/VoxyConfigScreenFactory.java +++ b/src/main/java/me/cortex/voxy/client/config/VoxyConfigScreenFactory.java @@ -66,7 +66,7 @@ public class VoxyConfigScreenFactory implements ModMenuApi { .setDefaultValue(DEFAULT.ingestEnabled) .build()); - category.addEntry(entryBuilder.startIntSlider(Text.translatable("voxy.config.general.subDivisionSize"), config.subDivisionSize, 30, 256) + category.addEntry(entryBuilder.startIntSlider(Text.translatable("voxy.config.general.subDivisionSize"), config.subDivisionSize, 25, 256) .setTooltip(Text.translatable("voxy.config.general.subDivisionSize.tooltip")) .setSaveConsumer(val -> config.subDivisionSize = val) .setDefaultValue(DEFAULT.subDivisionSize) 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 3ad24c2f..c0ea4b4e 100644 --- a/src/main/resources/assets/voxy/shaders/lod/gl46/quads.frag +++ b/src/main/resources/assets/voxy/shaders/lod/gl46/quads.frag @@ -23,7 +23,9 @@ void main() { //vec4 colour = solidColour; vec4 colour = texture(blockModelAtlas, uv + baseUV, ((flags>>1)&1u)*-4.0); if ((flags&1u) == 1 && colour.a <= 0.25f) { + #ifndef DEBUG_RENDER discard; + #endif } //Conditional tinting, TODO: FIXME: REPLACE WITH MASK OR SOMETHING, like encode data into the top bit of alpha