summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/deferred
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2013-04-15 14:13:15 -0500
committerDave Parks <davep@lindenlab.com>2013-04-15 14:13:15 -0500
commit7ed3d61ded42a557b698eb6cb497a3f6e3c667e7 (patch)
tree484ea75883f2c8953f94c3b67acf89fcc2196bd1 /indra/newview/app_settings/shaders/class2/deferred
parentd8f2ecd5b3f0cb8475fa1d092cc7a315ca1e8ca9 (diff)
parent359b6cad5b8ae2a88927d53eaa12b58a126e0d1c (diff)
Automated merge with https://bitbucket.org/lindenlab/viewer-development-materials
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred')
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/multiSpotLightF.glsl4
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl4
2 files changed, 2 insertions, 6 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/multiSpotLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/multiSpotLightF.glsl
index b3ab8fd510..90b6856c5c 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/multiSpotLightF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/multiSpotLightF.glsl
@@ -213,9 +213,7 @@ void main()
vec3 lcol = color.rgb * plcol.rgb * plcol.a;
- lit = da * dist_atten * noise;
-
- lit = pow(lit, 0.7);
+ lit = pow(da,0.7) * dist_atten * noise;
col = lcol*lit*diff_tex*shadow;
amb_da += (da*0.5)*(1.0-shadow)*proj_ambiance;
diff --git a/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl
index 43fc5dbc5e..5fd6f0afb7 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl
@@ -214,9 +214,7 @@ void main()
vec3 lcol = color.rgb * plcol.rgb * plcol.a;
- lit = da * dist_atten * noise;
-
- lit = pow(lit, 0.7);
+ lit = pow(da, 0.7) * dist_atten * noise;
col = lcol*lit*diff_tex*shadow;
amb_da += (da*0.5)*(1.0-shadow)*proj_ambiance;