diff options
author | Dave Parks <davep@lindenlab.com> | 2010-11-29 11:54:34 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-11-29 11:54:34 -0600 |
commit | afa2999f067097cf833bce1517a3e75ccd20a32a (patch) | |
tree | 7724cdbb35c4f126e7352d7bbb6e02e74abe8424 /indra/newview/app_settings | |
parent | 3d83c6501e07a33ad04a6f049dd462089f818fb8 (diff) |
Tweak DoF bloom gradient.
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/postDeferredF.glsl | 8 |
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 eec44d9d42..4503dc9003 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/postDeferredF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/postDeferredF.glsl @@ -75,11 +75,11 @@ void main() float w = 1.0; float fd = far_focal_distance; - float sc = clamp(depth[0]/fd, 0.0, -8.0/fd); - sc = min(sc, 8.0); + float sc = far_focal_distance - depth[0]; + sc /= near_focal_distance-far_focal_distance; - //fd = depth[0]*0.5; - + sc = min(sc, 8.0); + while (sc > 1.0) { do_aa = false; |