Changed blend range from 32,000 m to 30,000m

This commit is contained in:
Nissim Hadar 2017-10-24 13:17:09 -07:00
parent fad0dde550
commit f81675e3b4

View file

@ -138,7 +138,8 @@ void main(void) {
}
// Mix with background at far range
if (distance > 32000.0) {
const float BLEND_DISTANCE = 30000.0;
if (distance > BLEND_DISTANCE) {
outFragColor = mix(potentialFragColor, fragColor, hazeParams.backgroundBlendValue);
} else {
outFragColor = potentialFragColor;