minor tweaks

This commit is contained in:
mcrcortex
2024-02-09 15:03:47 +10:00
parent 137396b0ac
commit 2aaed386c4
3 changed files with 12 additions and 13 deletions

View File

@@ -122,9 +122,6 @@ public class ModelTextureBakery {
-1,-1,0,1,
}), VertexSorter.BY_Z);
glClearColor(0,0,0,0);
glClearDepth(1);
glBindFramebuffer(GL_FRAMEBUFFER, this.framebuffer.id);
RenderLayer renderLayer = null;
@@ -136,6 +133,10 @@ public class ModelTextureBakery {
renderLayer.startDrawing();
glClearColor(0,0,0,0);
glClearDepth(1);
glBindFramebuffer(GL_FRAMEBUFFER, this.framebuffer.id);
glEnable(GL_STENCIL_TEST);
glDepthRange(0, 1);
glDepthMask(true);

View File

@@ -8,13 +8,11 @@
"minecraft.MixinClientChunkManager",
"minecraft.MixinDebugHud",
"minecraft.MixinMinecraftClient",
"minecraft.MixinWorldRenderer"
"minecraft.MixinWorldRenderer",
"sodium.MixinOcclusionCuller",
"sodium.MixinSodiumWorldRender"
],
"injectors": {
"defaultRequire": 1
},
"mixins": [
"sodium.MixinOcclusionCuller",
"sodium.MixinSodiumWorldRender"
]
}
}