1
0
Fork 0

Bugfix for incorrect lighting in overcast weather

This commit is contained in:
Thorsten Renk 2015-03-16 11:00:15 +02:00
parent 1a169d6de3
commit 19c57ca01d
2 changed files with 6 additions and 1 deletions

View file

@ -196,6 +196,11 @@
<type>float</type>
<value><use>overcast</use></value>
</uniform>
<uniform>
<name>hazeLayerAltitude</name>
<type>float</type>
<value><use>lthickness</use></value>
</uniform>
<uniform>
<name>eye_alt</name>
<type>float</type>

View file

@ -78,7 +78,7 @@ if (earthShade < 0.5)
float MieFactor = dot(normalize(lightFull), normalize(relPos));
Mie = smoothstep(0.9,1.0, MieFactor) * earthShade * earthShade;
Mie = smoothstep(0.9,1.0, MieFactor) * earthShade * earthShade * scattering;
// get a reflection vector for cube map