bc5978b759
Provide both 1.10 and 1.40 shaders. Differential Revision: https://phabricator.kde.org/D18757
16 lines
250 B
GLSL
16 lines
250 B
GLSL
#version 140
|
|
uniform sampler2D sampler;
|
|
uniform vec4 geometryColor;
|
|
|
|
in vec2 texcoord0;
|
|
|
|
out vec4 fragColor;
|
|
|
|
void main()
|
|
{
|
|
vec4 tex = texture(sampler, texcoord0);
|
|
if (tex.a != 1.0) {
|
|
tex = geometryColor;
|
|
}
|
|
fragColor = tex;
|
|
}
|