Revert "feat(draw): increase the effect of GLFogFilter2
in a near field"
This reverts commit f6912b7a1da2fb68c6b7edb1565133f8fbb04c10.
This commit is contained in:
parent
0d73f3cfcb
commit
70443fe87a
@ -78,11 +78,6 @@ void main() {
|
|||||||
if (localClipZ == 1.0) {
|
if (localClipZ == 1.0) {
|
||||||
// The sky should have the fog color.
|
// The sky should have the fog color.
|
||||||
goalFogFactor = 1.0;
|
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-
|
// OpenSpades' fog model uses a Rayleigh-scattering-style wavelength-
|
||||||
|
Loading…
x
Reference in New Issue
Block a user