Fix for sun specular highlights showing up in shadow when diffuse ambiance greater than 0.

meow-7.2.2
Dave Parks 2010-03-05 10:49:52 -06:00
parent 60dde53d72
commit f2e6f26e20
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ void main()
{
vec3 ref = normalize(reflect(pos.xyz, norm.xyz));
float sa = dot(ref, vary_light.xyz);
col.rgb += vary_SunlitColor*scol*spec.rgb*texture2D(lightFunc, vec2(sa, spec.a)).a;
col.rgb += vary_SunlitColor*scol_ambocc.r*spec.rgb*texture2D(lightFunc, vec2(sa, spec.a)).a;
}
col = atmosLighting(col);