From 7975e3816c9a0b1d73c5f78f8c6a5f6d9b98e6ba Mon Sep 17 00:00:00 2001 From: mcrcortex <{ID}+{username}@users.noreply.github.com> Date: Sun, 18 Feb 2024 20:46:39 +1000 Subject: [PATCH] Removed expicit dependency on iris --- .../java/me/cortex/voxy/client/core/VoxelCore.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/cortex/voxy/client/core/VoxelCore.java b/src/main/java/me/cortex/voxy/client/core/VoxelCore.java index 9925378d..66f1f7c1 100644 --- a/src/main/java/me/cortex/voxy/client/core/VoxelCore.java +++ b/src/main/java/me/cortex/voxy/client/core/VoxelCore.java @@ -20,10 +20,14 @@ import net.minecraft.util.Identifier; import net.minecraft.world.World; import net.minecraft.world.chunk.WorldChunk; import org.joml.Matrix4f; +import org.lwjgl.opengl.GL11; import java.io.File; import java.util.*; +import static org.lwjgl.opengl.GL30C.GL_DRAW_FRAMEBUFFER_BINDING; +import static org.lwjgl.opengl.GL30C.GL_FRAMEBUFFER; + //Core class that ingests new data from sources and updates the required systems //3 primary services: @@ -138,10 +142,10 @@ public class VoxelCore { //this.renderer.getModelManager().updateEntry(0, Blocks.COMPARATOR.getDefaultState()); //this.renderer.getModelManager().updateEntry(0, Blocks.OAK_LEAVES.getDefaultState()); - var fb = Iris.getPipelineManager().getPipelineNullable().getSodiumTerrainPipeline().getTerrainSolidFramebuffer(); - fb.bind(); + //var fb = Iris.getPipelineManager().getPipelineNullable().getSodiumTerrainPipeline().getTerrainSolidFramebuffer(); + //fb.bind(); - int boundFB = GlStateManager.getBoundFramebuffer(); + int boundFB = GL11.glGetInteger(GL_DRAW_FRAMEBUFFER_BINDING); this.postProcessing.setup(MinecraftClient.getInstance().getFramebuffer().textureWidth, MinecraftClient.getInstance().getFramebuffer().textureHeight, boundFB); //TODO: FIXME: since we just bound the post processing FB the depth information isnt