1
0
Fork 0

Reduce ALS surface light core desaturation for better color recognition (suggested by HHS)

This commit is contained in:
Thorsten Renk 2016-01-10 09:42:04 +02:00
parent 2cf6cf4a93
commit 7ab9b4be4f

View file

@ -162,7 +162,7 @@ void main()
//vec4 texel = light_sprite(gl_TexCoord[0].st,transmission, noise);
float intensity = light_sprite(gl_TexCoord[0].st,transmission, noise);
vec3 light_color = gl_Color.rgb;
light_color = mix(light_color, vec3 (1.0, 1.0, 1.0), intensity * intensity);
light_color = mix(light_color, vec3 (1.0, 1.0, 1.0), 0.5 * intensity * intensity);
gl_FragColor = vec4 (clamp(light_color.rgb,0.0,1.0), intensity * transmission * dist_att);