diff options
author | Oz Linden <oz@lindenlab.com> | 2011-05-17 18:47:51 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-05-17 18:47:51 -0400 |
commit | cb936d097fd40c743895cb35fce6b292c66e5210 (patch) | |
tree | c554c33c7576aa567ca2b32ad06ee9af83977059 /indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl | |
parent | 32313dd3c6396324ea8f13285a69c01f38fe1cfc (diff) | |
parent | bd37b14e9217935b9d70faf04c835c9d4aeda9c7 (diff) |
pull back fix for STORM-1260 from beta branch
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl')
-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; +} |