From 51f1197c9f514f1333202e84a312ac575f322d2f Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sat, 27 Dec 2025 12:52:26 +1000 Subject: [PATCH] attempt to fix blending --- .../voxy/client/core/model/bakery/ModelTextureBakery.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/cortex/voxy/client/core/model/bakery/ModelTextureBakery.java b/src/main/java/me/cortex/voxy/client/core/model/bakery/ModelTextureBakery.java index 627e32cc..fd9b8b34 100644 --- a/src/main/java/me/cortex/voxy/client/core/model/bakery/ModelTextureBakery.java +++ b/src/main/java/me/cortex/voxy/client/core/model/bakery/ModelTextureBakery.java @@ -27,6 +27,7 @@ import org.lwjgl.opengl.GL14; import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL14C.glBlendFuncSeparate; import static org.lwjgl.opengl.GL30.*; +import static org.lwjgl.opengl.GL40.glBlendFuncSeparatei; import static org.lwjgl.opengl.GL45.glTextureBarrier; import com.mojang.blaze3d.vertex.PoseStack; @@ -200,8 +201,9 @@ public class ModelTextureBakery { glEnable(GL_DEPTH_TEST); glEnable(GL_CULL_FACE); if (layer == ChunkSectionLayer.TRANSLUCENT) { - glEnable(GL_BLEND); - glBlendFuncSeparate(GL_ONE_MINUS_DST_ALPHA, GL_DST_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); + glEnablei(GL_BLEND, 0); + glDisablei(GL_BLEND, 1); + glBlendFuncSeparatei(0, GL_ONE_MINUS_DST_ALPHA, GL_DST_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); } else { glDisable(GL_BLEND);//FUCK YOU INTEL (screams), for _some reason_ discard or something... JUST DOESNT WORK?? //glBlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ONE);