Fixed bug causing atm leaking.

This commit is contained in:
Jonathas Costa
2019-08-18 11:50:22 -04:00
parent a1bc6d585d
commit 701afc7daf
2 changed files with 1 additions and 2 deletions
@@ -202,7 +202,6 @@ private:
float _hdrExposure = 3.7f;
float _gamma = 0.95f;
float _maxWhite = 5.0f;
float _hue = 1.f;
float _saturation = 1.f;
float _value = 1.f;
@@ -615,7 +615,7 @@ void main() {
pixelDepth *= 0.001;
positionObjectsCoords.xyz *= 0.001;
if (dot(position.xyz, vec3(1.0)) > 0.0 && (pixelDepth < offset)) {
if (pixelDepth < offset) {
// ATM Occluded - Something in fron of ATM.
atmosphereFinalColor += color;
} else {