mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-19 14:03:20 +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
|
||||
if (distance > 32000.0) {
|
||||
const float BLEND_DISTANCE = 30000.0;
|
||||
if (distance > BLEND_DISTANCE) {
|
||||
outFragColor = mix(potentialFragColor, fragColor, hazeParams.backgroundBlendValue);
|
||||
} else {
|
||||
outFragColor = potentialFragColor;
|
||||
|
|
Loading…
Reference in a new issue