diff options
author | Dave Parks <davep@lindenlab.com> | 2010-03-05 10:49:52 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-03-05 10:49:52 -0600 |
commit | 69befdfb34db1a18170de5e75f3076e4cbe5dc53 (patch) | |
tree | 6ba4598889a21a315a66a6ede1e3f9c368e7e11e /indra/newview/app_settings/shaders/class2/deferred | |
parent | c52ed438fb84c59435867c8752e04095a2a598ef (diff) |
Fix for sun specular highlights showing up in shadow when diffuse ambiance greater than 0.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl index 531f7376a3..249ac7ef9b 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl @@ -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); |