Revert "feat(draw): increase the effect of GLFogFilter2 in a near field"

This reverts commit f6912b7a1da2fb68c6b7edb1565133f8fbb04c10.
This commit is contained in:
yvt 2021-06-06 23:17:36 +09:00
parent 0d73f3cfcb
commit 70443fe87a

View File

@ -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-