From 70443fe87ae649bfd15d98d3edaf8eff142999d0 Mon Sep 17 00:00:00 2001 From: yvt Date: Sun, 6 Jun 2021 23:17:36 +0900 Subject: [PATCH] Revert "feat(draw): increase the effect of `GLFogFilter2` in a near field" This reverts commit f6912b7a1da2fb68c6b7edb1565133f8fbb04c10. --- Resources/Shaders/PostFilters/Fog2.fs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Resources/Shaders/PostFilters/Fog2.fs b/Resources/Shaders/PostFilters/Fog2.fs index 43c01844..8bc1c4e8 100644 --- a/Resources/Shaders/PostFilters/Fog2.fs +++ b/Resources/Shaders/PostFilters/Fog2.fs @@ -78,11 +78,6 @@ void main() { if (localClipZ == 1.0) { // The sky should have the fog color. goalFogFactor = 1.0; - } else { - // Increase the fog factor near the camera so that the effect is more - // visible without lowering the visibility of near-fog-distance objects. - goalFogFactor = mix(goalFogFactor, sqrt(goalFogFactor), - (1.0 - goalFogFactor) * (1.0 - goalFogFactor) * 0.5); } // OpenSpades' fog model uses a Rayleigh-scattering-style wavelength-