summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/interface/clipF.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/interface/clipF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/interface/clipF.glsl8
1 files changed, 2 insertions, 6 deletions
diff --git a/indra/newview/app_settings/shaders/class1/interface/clipF.glsl b/indra/newview/app_settings/shaders/class1/interface/clipF.glsl
index ac2bc8703b..ee2d652f32 100644
--- a/indra/newview/app_settings/shaders/class1/interface/clipF.glsl
+++ b/indra/newview/app_settings/shaders/class1/interface/clipF.glsl
@@ -23,16 +23,12 @@
* $/LicenseInfo$
*/
-#ifdef DEFINE_GL_FRAGCOLOR
out vec4 frag_color;
-#else
-#define frag_color gl_FragColor
-#endif
uniform vec4 color;
uniform vec4 clip_plane;
-VARYING vec3 vary_position;
+in vec3 vary_position;
void main()
@@ -42,5 +38,5 @@ void main()
discard;
}
- frag_color = color;
+ frag_color = max(color, vec4(0));
}