Fix near clip plane on Lod only mode
This commit is contained in:
@@ -148,6 +148,10 @@ public class RenderUtil
|
||||
// in James' testing a near clip plane distance of 2 blocks is enough to allow the fragment
|
||||
// culling to take effect instead of seeing the near clip plane.
|
||||
float nearClipDist = 2f; //MC_RENDER.getRenderDistance() * LodUtil.CHUNK_WIDTH / 4.0f; //getNearClipPlaneDistanceInBlocks(partialTicks);
|
||||
if (Config.Client.Advanced.Debugging.lodOnlyMode.get())
|
||||
{
|
||||
nearClipDist = 0.1f;
|
||||
}
|
||||
|
||||
int farPlaneDistanceInBlocks = RenderUtil.getFarClipPlaneDistanceInBlocks();
|
||||
float farClipDist = (float) ((farPlaneDistanceInBlocks + LodUtil.REGION_WIDTH) * Math.sqrt(2));
|
||||
|
||||
Reference in New Issue
Block a user