kwin/effects/startupfeedback/data/blinking-startup-fragment.glsl
Martin Gräßlin 712e46e468 [effects] Port startupfeedback to shader trait api
The blinking shader is adjusted to use a shader trait vertex shader
and gets generated with a shader trait variant.

Overall the code is simplified to ensure that we always have a shader
bound with the correct mvp matrix when rendering the icon.
2016-01-25 14:11:54 +01:00

13 lines
226 B
GLSL

uniform sampler2D sampler;
uniform vec4 geometryColor;
varying vec2 texcoord0;
void main()
{
vec4 tex = texture2D(sampler, texcoord0);
if (tex.a != 1.0) {
tex = geometryColor;
}
gl_FragColor = tex;
}