From 52711f82fcf4c3ac4b4544843f26deb457aa4512 Mon Sep 17 00:00:00 2001 From: rfresh2 <89827146+rfresh2@users.noreply.github.com> Date: Tue, 1 Oct 2024 22:51:59 -0700 Subject: [PATCH] use correct blend mode on buffered component --- .../feature/render/buffered/BufferedComponent.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/xaeroplus/feature/render/buffered/BufferedComponent.java b/common/src/main/java/xaeroplus/feature/render/buffered/BufferedComponent.java index a5d2e312..bbad8ba6 100644 --- a/common/src/main/java/xaeroplus/feature/render/buffered/BufferedComponent.java +++ b/common/src/main/java/xaeroplus/feature/render/buffered/BufferedComponent.java @@ -93,7 +93,12 @@ private void renderBufferedTexture(final int textureId) { RenderSystem.disableDepthTest(); RenderSystem.depthMask(false); RenderSystem.enableBlend(); - RenderSystem.blendFunc(GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA); + RenderSystem.blendFuncSeparate( + GlStateManager.SourceFactor.SRC_ALPHA, + GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, + GlStateManager.SourceFactor.ONE, + GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA + ); RenderSystem.setShader(GameRenderer::getPositionTexShader); RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F); RenderSystem.setShaderTexture(0, textureId); @@ -103,6 +108,5 @@ private void renderBufferedTexture(final int textureId) { model.draw(modelViewMatrix); RenderSystem.depthMask(true); RenderSystem.enableDepthTest(); - RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F); } }