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

View File

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