Fix small color mismatch in skydome code
This commit is contained in:
parent
f2c81c9dcb
commit
ccfcfad7db
1 changed files with 2 additions and 2 deletions
|
@ -253,12 +253,12 @@ color = mix(color, terrainHazeColor ,smoothstep(hazeBlendAngle + ctterrain, 0.0+
|
||||||
|
|
||||||
// mix fog the skydome with the right amount of haze
|
// mix fog the skydome with the right amount of haze
|
||||||
|
|
||||||
// this is for the terrain drawn
|
hColor *= eqColorFactor;
|
||||||
hColor = max(hColor.rgb, minLight.rgb);
|
hColor = max(hColor.rgb, minLight.rgb);
|
||||||
|
|
||||||
hColor = clamp(hColor,0.0,1.0);
|
hColor = clamp(hColor,0.0,1.0);
|
||||||
|
|
||||||
color = mix((eqColorFactor * hColor)+secondary_light * fog_backscatter(avisibility),color, transmission);
|
color = mix(hColor+secondary_light * fog_backscatter(avisibility),color, transmission);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue