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
|
|
|
|
2015-11-30 09:51:27 +00:00
|
|
|
varying vec2 texcoord0;
|
2011-01-06 12:47:42 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2015-11-30 09:51:27 +00:00
|
|
|
vec4 tex = texture2D(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
|
|
|
}
|
|
|
|
gl_FragColor = tex;
|
|
|
|
}
|