summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-05-04 15:43:21 -0500
committerDave Parks <davep@lindenlab.com>2011-05-04 15:43:21 -0500
commitf3b0b5f3f1654a1df30d4516aca328f3add31fa0 (patch)
tree9d9ba2a6a325004dfd43e5928683d50356864bfc /indra/newview/app_settings/shaders/class1/deferred
parentbce7b4f0980c3d5e8697a48487721097d732e9f3 (diff)
CTS-537 Apply tweak from Tofu Buzzard.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/postDeferredF.glsl8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/postDeferredF.glsl b/indra/newview/app_settings/shaders/class1/deferred/postDeferredF.glsl
index f377685045..77f1b2224c 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/postDeferredF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/postDeferredF.glsl
@@ -57,11 +57,11 @@ void dofSampleNear(inout vec4 diff, inout float w, float cur_sc, vec2 tc)
float sc = calc_cof(d);
- float wg = 1.0;
+ float wg = 0.25;
vec4 s = texture2DRect(diffuseRect, tc);
// de-weight dull areas to make highlights 'pop'
- wg *= s.r+s.g+s.b;
+ wg += s.r+s.g+s.b;
diff += wg*s;
@@ -77,11 +77,11 @@ void dofSample(inout vec4 diff, inout float w, float min_sc, float cur_depth, ve
if (sc > min_sc //sampled pixel is more "out of focus" than current sample radius
|| d < cur_depth) //sampled pixel is further away than current pixel
{
- float wg = 1.0;
+ float wg = 0.25;
vec4 s = texture2DRect(diffuseRect, tc);
// de-weight dull areas to make highlights 'pop'
- wg *= s.r+s.g+s.b;
+ wg += s.r+s.g+s.b;
diff += wg*s;