summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-12-02 09:40:20 -0600
committerDave Parks <davep@lindenlab.com>2011-12-02 09:40:20 -0600
commita8cb28cb2c589a658900243f98c5c017b9a638c8 (patch)
tree8cb9576053ae1a4dfd2a9ea409a279697fa19719 /indra/newview/app_settings/shaders/class2
parent45d3e147aca316df59506053c4de5f4239287ee7 (diff)
SH-1912 Tweak based on QA/resident feedback
Diffstat (limited to 'indra/newview/app_settings/shaders/class2')
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl3
1 files changed, 2 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 d905e76df8..97f3063a9e 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
@@ -316,7 +316,8 @@ void main()
//add environmentmap
vec3 env_vec = env_mat * refnormpersp;
- col += textureCube(environmentMap, env_vec).rgb * max(spec.a-diffuse.a-0.2, 0.0);
+ col = mix(col.rgb, textureCube(environmentMap, env_vec).rgb,
+ max(spec.a-diffuse.a*2.0, 0.0));
}
col = atmosLighting(col);