other config change, set roofed dimension max distance to 64

This commit is contained in:
Leonardo
2021-10-07 17:37:02 +02:00
parent 78ab4b8598
commit 443da5eede
4 changed files with 14 additions and 6 deletions
@@ -241,8 +241,11 @@ public class LodRenderer
Matrix4f modelViewMatrix = offsetTheModelViewMatrix(mcMatrixStack, partialTicks);
// required for setupFog and setupProjectionMatrix
farPlaneBlockDistance = LodConfig.CLIENT.graphics.lodChunkRenderDistance.get() * LodUtil.CHUNK_WIDTH;
if(lodDim.dimension.hasCeiling())
farPlaneBlockDistance = Math.max(LodConfig.CLIENT.graphics.lodChunkRenderDistance.get(), 64)* LodUtil.CHUNK_WIDTH;
else
farPlaneBlockDistance = LodConfig.CLIENT.graphics.lodChunkRenderDistance.get() * LodUtil.CHUNK_WIDTH;
setupProjectionMatrix(mcProjectionMatrix, partialTicks);
// commented out until we can add shaders to handle lighting
//setupLighting(lodDim, partialTicks);