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 | 372212ae764a32bf667d3cb4cf5b99e6c6147b0f (patch) | |
tree | 5258f28749effb4906317f655efd25a0f15d9228 /indra/newview/app_settings/shaders/class2/deferred | |
parent | 3ea01fb66e75ec6da1cee994da37ef461af66a48 (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); |