hexnando/shaders/text.frag
2023-10-15 18:28:20 +02:00

12 lines
229 B
GLSL

#version 330 core
in vec2 texuv;
out vec4 color;
uniform sampler2D text;
uniform vec3 text_color;
void main()
{
vec4 sampled = vec4(1.0, 1.0, 1.0, texture(text, texuv).r);
color = vec4(text_color, 1.0) * sampled;
}