Skip to content

Commit

Permalink
fix(rendering): clipping plane on LoD 0 (#4524)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrueckert authored Feb 19, 2021
1 parent 0c05487 commit a3bb91e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void setBobbingVerticalOffsetFactor(float f) {

private void updateFarClippingDistance() {
float distance = renderingConfig.getViewDistance().getChunkDistance().x() * Chunks.SIZE_X * (1 << (int) renderingConfig.getChunkLods());
zFar = Math.max(distance, 500) * 2;
zFar = Math.max(distance, 600) * 2;
// distance is an estimate of how far away the farthest chunks are, and the minimum bound is to ensure that the sky is visible.
}

Expand Down

0 comments on commit a3bb91e

Please sign in to comment.