1
0
Fork 0

Bugfix - restore deep shade model for ALS terrain

This commit is contained in:
Thorsten Renk 2014-12-16 13:39:49 +02:00
parent b40ffa8fed
commit 1ad83ec6e5

View file

@ -262,7 +262,7 @@ light_ambient = light_ambient * ((1.0+steepness)/2.0 * 1.2 + (1.0-steepness)/2.0
// deeper shadows when there is lots of direct light
float shade_depth = 1.0 * smoothstep (0.6,0.95,ground_scattering) * (1.0-smoothstep(0.1,0.5,overcast)) * smoothstep(0.4,1.5,earthShade);
shade_depth = 0.0;
light_ambient.rgb = light_ambient.rgb * (1.0 - shade_depth);
light_diffuse.rgb = light_diffuse.rgb * (1.0 + 1.2 * shade_depth);