graphics/05-opengl/assets/shaders/fragment.glsl

14 lines
224 B
Plaintext
Raw Normal View History

2023-11-30 23:36:23 +00:00
#version 330 core
out vec4 color;
in vec2 tex_coord;
uniform sampler2D texture1;
void main() {
color = texture(texture1, tex_coord);
// color = vec4(1.0, 0.0, 0.0, 1.0);
2023-11-30 23:36:23 +00:00
if (color.a < 0.1)
discard;
}