kwin/effects/startupfeedback/data/blinking-startup-fragment.glsl

14 lines
226 B
Text
Raw Normal View History

uniform sampler2D sampler;
uniform vec4 geometryColor;
2011-01-06 12:47:42 +00:00
varying vec2 texcoord0;
2011-01-06 12:47:42 +00:00
void main()
{
vec4 tex = texture2D(sampler, texcoord0);
2011-01-06 12:47:42 +00:00
if (tex.a != 1.0) {
tex = geometryColor;
2011-01-06 12:47:42 +00:00
}
gl_FragColor = tex;
}