mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:56:44 +02:00
Merge pull request #11665 from NissimHadar/hazeZone
Changed blend range from 32,000 m to 30,000m
This commit is contained in:
commit
75f8699bcc
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue