Dawn/assets/shaders/test.frag
2021-04-05 20:46:05 +10:00

16 lines
236 B
GLSL

#version 330 core
in vec2 TexCoord;
uniform sampler2D u_Text;
out vec4 FragColor;
void main() {
vec4 color = texture(u_Text, TexCoord);
if(color.a == 0) {
FragColor = vec4(1, 1, 1, 1);
} else {
FragColor = color;
}
}