Bugfix for incorrect lighting in overcast weather
This commit is contained in:
parent
1a169d6de3
commit
19c57ca01d
2 changed files with 6 additions and 1 deletions
|
@ -196,6 +196,11 @@
|
||||||
<type>float</type>
|
<type>float</type>
|
||||||
<value><use>overcast</use></value>
|
<value><use>overcast</use></value>
|
||||||
</uniform>
|
</uniform>
|
||||||
|
<uniform>
|
||||||
|
<name>hazeLayerAltitude</name>
|
||||||
|
<type>float</type>
|
||||||
|
<value><use>lthickness</use></value>
|
||||||
|
</uniform>
|
||||||
<uniform>
|
<uniform>
|
||||||
<name>eye_alt</name>
|
<name>eye_alt</name>
|
||||||
<type>float</type>
|
<type>float</type>
|
||||||
|
|
|
@ -78,7 +78,7 @@ if (earthShade < 0.5)
|
||||||
|
|
||||||
|
|
||||||
float MieFactor = dot(normalize(lightFull), normalize(relPos));
|
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
|
// get a reflection vector for cube map
|
||||||
|
|
Loading…
Add table
Reference in a new issue