diff --git a/build.gradle b/build.gradle index e3e76ea8..3c25ff10 100644 --- a/build.gradle +++ b/build.gradle @@ -105,8 +105,8 @@ dependencies { include(runtimeOnly "org.lwjgl:lwjgl-lmdb:$lwjglVersion:natives-linux") include(runtimeOnly "org.lwjgl:lwjgl-zstd:$lwjglVersion:natives-linux") - //include(implementation 'org.rocksdb:rocksdbjni:8.10.0') - //include(implementation 'redis.clients:jedis:5.1.0') - implementation 'org.rocksdb:rocksdbjni:8.10.0' - implementation 'redis.clients:jedis:5.1.0' + include(implementation 'org.rocksdb:rocksdbjni:8.10.0') + include(implementation 'redis.clients:jedis:5.1.0') + //implementation 'org.rocksdb:rocksdbjni:8.10.0' + //implementation 'redis.clients:jedis:5.1.0' } \ No newline at end of file diff --git a/src/main/java/me/cortex/voxy/client/core/model/ModelTextureBakery.java b/src/main/java/me/cortex/voxy/client/core/model/ModelTextureBakery.java index db430992..1e782ed8 100644 --- a/src/main/java/me/cortex/voxy/client/core/model/ModelTextureBakery.java +++ b/src/main/java/me/cortex/voxy/client/core/model/ModelTextureBakery.java @@ -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); diff --git a/src/main/resources/voxy.mixins.json b/src/main/resources/voxy.mixins.json index 032cc746..e1847197 100644 --- a/src/main/resources/voxy.mixins.json +++ b/src/main/resources/voxy.mixins.json @@ -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" - ] + } }