prosperon/source/shaders/textfrag.glsl
2023-05-12 18:22:05 +00:00

16 lines
273 B
GLSL

#version 330 core
in vec2 TexCoords;
in vec3 fColor;
out vec4 color;
uniform sampler2D text;
void main()
{
color = vec4(fColor.xyz, texture(text, TexCoords).r);
// color = vec4(1.f, 1.f, 1.f, texture(text, TexCoords).r);
if (color.a <= 0.1f)
discard;
}