diff options
author | Dave Parks <davep@lindenlab.com> | 2011-11-04 17:07:40 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-11-04 17:07:40 -0500 |
commit | 367d6212ae9e18c398c25fe9e11646bfc801fd90 (patch) | |
tree | a4f73bd7099a441a8d710bea8b454703e07dbce3 /indra/newview/app_settings/shaders/class1/deferred/cofF.glsl | |
parent | 785dcfe6d496bd44730b6ba0004614b2c6d04c6a (diff) |
SH-2652 Better DoF combine foo
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/cofF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/cofF.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/cofF.glsl b/indra/newview/app_settings/shaders/class1/deferred/cofF.glsl index 81f00f7d0f..56fa4e693b 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/cofF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/cofF.glsl @@ -39,6 +39,7 @@ uniform float focal_distance; uniform float blur_constant; uniform float tan_pixel_angle; uniform float magnification; +uniform float max_cof; uniform mat4 inv_proj; uniform vec2 screen_res; @@ -78,7 +79,7 @@ void main() vec4 diff = texture2DRect(diffuseRect, vary_fragcoord.xy); float sc = calc_cof(depth); - sc = min(abs(sc), 10.0); + sc = min(abs(sc), max_cof); vec4 bloom = texture2D(bloomMap, vary_fragcoord.xy/screen_res); gl_FragColor.rgb = diff.rgb + bloom.rgb; |