kwin/effects/startupfeedback/data/1.10/blinking-startup-fragment.glsl
Kai Uwe Broulik bc5978b759 [effects/startupfeedback] Fix shader
Provide both 1.10 and 1.40 shaders.

Differential Revision: https://phabricator.kde.org/D18757
2019-02-05 13:28:14 +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;
}