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

17 lines
250 B
Text
Raw Normal View History

#version 140
uniform sampler2D sampler;
uniform vec4 geometryColor;
2011-01-06 12:47:42 +00:00
in vec2 texcoord0;
out vec4 fragColor;
2011-01-06 12:47:42 +00:00
void main()
{
vec4 tex = texture(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
}
fragColor = tex;
2011-01-06 12:47:42 +00:00
}