Change to light balance in ALS space shader
This commit is contained in:
parent
5bb90ec228
commit
403e18728a
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue