1
0
Fork 0

Change to light balance in ALS space shader

This commit is contained in:
Thorsten Renk 2015-10-09 19:48:37 +03:00
parent 5bb90ec228
commit 403e18728a

View file

@ -227,20 +227,17 @@ void main (void)
//vec3 sky_blue = normalize (vec3 (0.17, 0.52, 0.87));
//intensity = length(light_ambient.rgb);
//light_ambient.rgb = mix(light_ambient.rgb, intensity * sky_blue, alt_desat_factor);
intensity = length(light_diffuse.rgb);
light_diffuse.rgb = mix(light_diffuse.rgb, intensity * vec3 (1.0,1.0,1.0), alt_desat_factor);
if (darkmap_enabled == 1)
{
float diffuse_reduction = mix(1.0,lightmapTexel.a, darkmap_factor);
light_diffuse.rgb = light_diffuse.rgb * diffuse_reduction;
}
light_diffuse.rgb = clamp(light_diffuse.rgb, 0.0, 1.2);
/// END light