调整扫描盘渲染模式

This commit is contained in:
17146 2024-12-31 20:37:05 +08:00
parent 3ceb498a9b
commit 0ad7452ba8

View file

@ -127,6 +127,12 @@ public class FuMO25Screen extends AbstractContainerScreen<FuMO25Menu> {
var poseStack = guiGraphics.pose();
poseStack.pushPose();
RenderSystem.disableDepthTest();
RenderSystem.depthMask(false);
RenderSystem.enableBlend();
RenderSystem.setShader(GameRenderer::getPositionTexShader);
RenderSystem.blendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
int i = (this.width - this.imageWidth) / 2;
int j = (this.height - this.imageHeight) / 2;