2019-02-05 12:28:14 +00:00
|
|
|
#version 140
|
2011-02-17 17:44:52 +00:00
|
|
|
uniform sampler2D sampler;
|
2015-11-30 09:51:27 +00:00
|
|
|
uniform vec4 geometryColor;
|
2011-01-06 12:47:42 +00:00
|
|
|
|
2019-02-05 12:28:14 +00:00
|
|
|
in vec2 texcoord0;
|
|
|
|
|
|
|
|
out vec4 fragColor;
|
2011-01-06 12:47:42 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2019-02-05 12:28:14 +00:00
|
|
|
vec4 tex = texture(sampler, texcoord0);
|
2011-01-06 12:47:42 +00:00
|
|
|
if (tex.a != 1.0) {
|
2015-11-30 09:51:27 +00:00
|
|
|
tex = geometryColor;
|
2011-01-06 12:47:42 +00:00
|
|
|
}
|
2019-02-05 12:28:14 +00:00
|
|
|
fragColor = tex;
|
2011-01-06 12:47:42 +00:00
|
|
|
}
|