2022-06-21 23:16:14 -05:00
|
|
|
#version 330 core
|
|
|
|
in vec2 texcoords;
|
2023-05-31 17:33:04 -05:00
|
|
|
in vec4 fcolor;
|
|
|
|
|
2022-06-21 23:16:14 -05:00
|
|
|
out vec4 color;
|
2023-05-31 17:33:04 -05:00
|
|
|
|
2022-06-21 23:16:14 -05:00
|
|
|
uniform sampler2D image;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2023-05-31 17:33:04 -05:00
|
|
|
color = fcolor * texture(image, texcoords);
|
2022-06-21 23:16:14 -05:00
|
|
|
|
|
|
|
if (color.a <= 0.1f)
|
|
|
|
discard;
|
2023-02-16 16:13:07 -06:00
|
|
|
}
|