summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAF.glsl
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-11-07 12:34:05 -0600
committerDave Parks <davep@lindenlab.com>2011-11-07 12:34:05 -0600
commita6e40e6e02600cb47299dc9903400720786f72f0 (patch)
tree2118cfa7cf57465e41aab13c97778ed1939995ed /indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAF.glsl
parent0a43fdd07e3b084ce230086c032ccef79f1df429 (diff)
SH-2652 Slightly slower DoF (quality), apply FXAA *after* DoF, fix for some render targets not getting allocated when needed.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAF.glsl7
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAF.glsl b/indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAF.glsl
index 7136d412ea..c66a6e5b48 100644
--- a/indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAF.glsl
+++ b/indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAF.glsl
@@ -29,17 +29,14 @@
out vec4 gl_FragColor;
#endif
-uniform sampler2D glowMap;
-uniform sampler2DRect screenMap;
+uniform sampler2DRect diffuseRect;
uniform vec2 screen_res;
VARYING vec2 vary_tc;
void main()
{
- vec3 col = texture2D(glowMap, vary_tc).rgb +
- texture2DRect(screenMap, vary_tc*screen_res).rgb;
-
+ vec3 col = texture2DRect(diffuseRect, vary_tc*screen_res).rgb;
gl_FragColor = vec4(col.rgb, dot(col.rgb, vec3(0.299, 0.587, 0.144)));
}