2023-11-30 23:36:23 +00:00
|
|
|
#version 330 core
|
|
|
|
out vec4 color;
|
|
|
|
in vec2 tex_coord;
|
|
|
|
|
2023-12-05 16:18:36 +00:00
|
|
|
uniform sampler2D sampler;
|
2023-11-30 23:36:23 +00:00
|
|
|
|
|
|
|
void main() {
|
2023-12-05 16:18:36 +00:00
|
|
|
color = texture(sampler, tex_coord);
|
2023-12-03 10:55:15 +00:00
|
|
|
// color = vec4(1.0, 0.0, 0.0, 1.0);
|
2023-11-30 23:36:23 +00:00
|
|
|
|
|
|
|
if (color.a < 0.1)
|
|
|
|
discard;
|
|
|
|
}
|