diff options
author | Dave Parks <davep@lindenlab.com> | 2011-05-04 16:44:10 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-05-04 16:44:10 -0500 |
commit | 5d33a55c08be0a2bd1a5f6185039754ed46379d0 (patch) | |
tree | a9035e2ed5086fba7bf0835817250c7a59a0a4fa /indra/newview/app_settings/shaders | |
parent | f3b0b5f3f1654a1df30d4516aca328f3add31fa0 (diff) |
SH-1455 Faster, better, more reliable disabling of DoF effect when edit menu is open and when effect is opted out of.
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl b/indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl new file mode 100644 index 0000000000..ab48d08bbb --- /dev/null +++ b/indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl @@ -0,0 +1,24 @@ +/** + * @file postDeferredF.glsl + * + * $LicenseInfo:firstyear=2007&license=viewerlgpl$ + * $/LicenseInfo$ + */ + +#version 120 + +#extension GL_ARB_texture_rectangle : enable + +uniform sampler2DRect diffuseRect; +uniform sampler2D bloomMap; + +uniform vec2 screen_res; +varying vec2 vary_fragcoord; + +void main() +{ + vec4 diff = texture2DRect(diffuseRect, vary_fragcoord.xy); + + vec4 bloom = texture2D(bloomMap, vary_fragcoord.xy/screen_res); + gl_FragColor = diff + bloom; +} |