2020-11-12 23:13:29 +08:00
|
|
|
#version 330
|
2020-11-12 20:36:24 +08:00
|
|
|
|
2020-11-12 23:13:29 +08:00
|
|
|
uniform sampler2D texture;
|
|
|
|
|
2020-11-13 02:35:16 +08:00
|
|
|
in vec4 color;
|
2020-11-12 23:13:29 +08:00
|
|
|
in vec2 texcoord;
|
|
|
|
|
|
|
|
out vec4 fragColor;
|
2020-11-12 20:36:24 +08:00
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
2020-11-13 02:35:16 +08:00
|
|
|
fragColor = color * texture2D( texture, texcoord.xy);
|
|
|
|
if (fragColor.a==0.0) discard;
|
2020-11-12 20:36:24 +08:00
|
|
|
}
|