From 3c28ed5601b6d6eee95004c03ad27e3ce9069557 Mon Sep 17 00:00:00 2001 From: Leonardo Date: Sun, 22 Aug 2021 16:06:30 +0200 Subject: [PATCH] small fix to fog --- src/main/java/com/seibel/lod/proxy/ClientProxy.java | 2 +- .../java/com/seibel/lod/render/LodRenderer.java | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/seibel/lod/proxy/ClientProxy.java b/src/main/java/com/seibel/lod/proxy/ClientProxy.java index 2b3277727..b5d7e4d3d 100644 --- a/src/main/java/com/seibel/lod/proxy/ClientProxy.java +++ b/src/main/java/com/seibel/lod/proxy/ClientProxy.java @@ -147,7 +147,7 @@ public class ClientProxy LodConfig.CLIENT.distanceGenerationMode.set(DistanceGenerationMode.FEATURES); LodConfig.CLIENT.allowUnstableFeatureGeneration.set(false); - LodConfig.CLIENT.lodChunkRenderDistane.set(96); + LodConfig.CLIENT.lodChunkRenderDistane.set(128); LodConfig.CLIENT.lodDistanceCalculatorType.set(DistanceCalculatorType.QUADRATIC); LodConfig.CLIENT.lodQuality.set(1); LodConfig.CLIENT.allowUnstableFeatureGeneration.set(false); diff --git a/src/main/java/com/seibel/lod/render/LodRenderer.java b/src/main/java/com/seibel/lod/render/LodRenderer.java index 73e1ee615..591c19b1c 100644 --- a/src/main/java/com/seibel/lod/render/LodRenderer.java +++ b/src/main/java/com/seibel/lod/render/LodRenderer.java @@ -437,7 +437,7 @@ public class LodRenderer // the multipliers are percentages // of the regular view distance. - if (fogDistance == FogDistance.NEAR) + if (fogDistance == FogDistance.FAR) { // the reason that I wrote fogEnd then fogStart backwards // is because we are using fog backwards to how @@ -446,18 +446,17 @@ public class LodRenderer if (fogQuality == FogQuality.FANCY) { - RenderSystem.fogEnd(farPlaneBlockDistance * 1.75f); - RenderSystem.fogStart(farPlaneBlockDistance * 1.95f); + RenderSystem.fogStart(farPlaneBlockDistance * 1.21f); + RenderSystem.fogEnd(farPlaneBlockDistance * 1.41f); } else if (fogQuality == FogQuality.FAST) { // for the far fog of the normal chunks // to start right where the LODs' end use: // end = 0.8f, start = 1.5f - - RenderSystem.fogEnd(farPlaneBlockDistance * 1.5f); - RenderSystem.fogStart(farPlaneBlockDistance * 2.0f); + RenderSystem.fogStart(farPlaneBlockDistance * 1.5f); + RenderSystem.fogEnd(farPlaneBlockDistance * 2.0f); } - } else if (fogDistance == FogDistance.FAR) + } else if (fogDistance == FogDistance.NEAR) { if (fogQuality == FogQuality.FANCY) {