From 862afc498e152599d309dd221ae32108bb22df22 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Fri, 25 Apr 2025 16:37:24 +1000 Subject: [PATCH] Start prep for temporal --- .../cortex/voxy/client/config/VoxyConfig.java | 2 +- .../section/MDICSectionRenderer.java | 54 ++++++++++--------- .../voxy/shaders/lod/gl46/bindings.glsl | 2 +- .../assets/voxy/shaders/lod/gl46/prep.comp | 1 + 4 files changed, 32 insertions(+), 27 deletions(-) diff --git a/src/main/java/me/cortex/voxy/client/config/VoxyConfig.java b/src/main/java/me/cortex/voxy/client/config/VoxyConfig.java index bb8f53da..71dbab7b 100644 --- a/src/main/java/me/cortex/voxy/client/config/VoxyConfig.java +++ b/src/main/java/me/cortex/voxy/client/config/VoxyConfig.java @@ -27,7 +27,7 @@ public class VoxyConfig implements OptionStorage { public boolean ingestEnabled = true; public int sectionRenderDistance = 16; public int serviceThreads = Math.max(Runtime.getRuntime().availableProcessors()/2, 1); - public float subDivisionSize = 128; + public float subDivisionSize = 64; public boolean renderVanillaFog = false; public boolean renderStatistics = false; diff --git a/src/main/java/me/cortex/voxy/client/core/rendering/section/MDICSectionRenderer.java b/src/main/java/me/cortex/voxy/client/core/rendering/section/MDICSectionRenderer.java index 045a23a9..c4874b07 100644 --- a/src/main/java/me/cortex/voxy/client/core/rendering/section/MDICSectionRenderer.java +++ b/src/main/java/me/cortex/voxy/client/core/rendering/section/MDICSectionRenderer.java @@ -112,6 +112,10 @@ public class MDICSectionRenderer extends AbstractSectionRenderer{ for (int i = 0; i < 5; i++) { @@ -217,31 +246,6 @@ public class MDICSectionRenderer extends AbstractSectionRenderer lines) { super.addDebug(lines); diff --git a/src/main/resources/assets/voxy/shaders/lod/gl46/bindings.glsl b/src/main/resources/assets/voxy/shaders/lod/gl46/bindings.glsl index 4a0b0db3..e47e4295 100644 --- a/src/main/resources/assets/voxy/shaders/lod/gl46/bindings.glsl +++ b/src/main/resources/assets/voxy/shaders/lod/gl46/bindings.glsl @@ -63,8 +63,8 @@ layout(binding = DRAW_COUNT_BUFFER_BINDING, std430) restrict buffer DrawCommandC uint opaqueDrawCount; uint translucentDrawCount; + uint temporalOpaqueDrawCount; - uint pad_A; DrawCommand cullDrawIndirectCommand; }; #endif diff --git a/src/main/resources/assets/voxy/shaders/lod/gl46/prep.comp b/src/main/resources/assets/voxy/shaders/lod/gl46/prep.comp index 0b5be2af..7a72b35b 100644 --- a/src/main/resources/assets/voxy/shaders/lod/gl46/prep.comp +++ b/src/main/resources/assets/voxy/shaders/lod/gl46/prep.comp @@ -14,6 +14,7 @@ void main() { opaqueDrawCount = 0; translucentDrawCount = 0; + temporalOpaqueDrawCount = 0; cullDrawIndirectCommand.count = 6*2*3; cullDrawIndirectCommand.instanceCount = sectionCount;