Merge pull request #11665 from NissimHadar/hazeZone

Changed blend range from 32,000 m to 30,000m
This commit is contained in:
Seth Alves 2017-10-24 15:22:24 -07:00 committed by GitHub
commit 75f8699bcc

View file

@ -138,7 +138,8 @@ void main(void) {
} }
// Mix with background at far range // 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); outFragColor = mix(potentialFragColor, fragColor, hazeParams.backgroundBlendValue);
} else { } else {
outFragColor = potentialFragColor; outFragColor = potentialFragColor;