summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/cofF.glsl
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-03-26 15:41:27 -0500
committerDave Parks <davep@lindenlab.com>2012-03-26 15:41:27 -0500
commit654dd60ca7310db940e09065a3f6e7fec377c956 (patch)
treed401b682f18da1c5dfbea261ed5da05665d5ab81 /indra/newview/app_settings/shaders/class1/deferred/cofF.glsl
parentb187aeb8f177bd76e792652e773617beff18b47b (diff)
parentce0f455b7cb5a5d45e7682e4a4180b577eda3c5a (diff)
merge
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/cofF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/cofF.glsl8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/cofF.glsl b/indra/newview/app_settings/shaders/class1/deferred/cofF.glsl
index e612efba61..ccbc3c557c 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/cofF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/cofF.glsl
@@ -26,7 +26,9 @@
#extension GL_ARB_texture_rectangle : enable
#ifdef DEFINE_GL_FRAGCOLOR
-out vec4 gl_FragColor;
+out vec4 frag_color;
+#else
+#define frag_color gl_FragColor
#endif
uniform sampler2DRect diffuseRect;
@@ -83,6 +85,6 @@ void main()
sc = max(sc, -max_cof);
vec4 bloom = texture2D(bloomMap, vary_fragcoord.xy/screen_res);
- gl_FragColor.rgb = diff.rgb + bloom.rgb;
- gl_FragColor.a = sc/max_cof*0.5+0.5;
+ frag_color.rgb = diff.rgb + bloom.rgb;
+ frag_color.a = sc/max_cof*0.5+0.5;
}