Files
cudoku/shaders/font.frag
T

12 lines
228 B
GLSL
Raw Normal View History

2023-09-12 03:21:18 +02:00
#version 330 core
2023-11-21 06:45:54 +02:00
in vec2 v_TexCoords;
2023-09-12 03:21:18 +02:00
out vec4 FragColor;
uniform sampler2D text;
uniform vec4 textColor;
2023-09-12 03:21:18 +02:00
void main() {
2023-11-21 06:45:54 +02:00
vec4 sampled = vec4(1.0, 1.0, 1.0, texture(text, v_TexCoords).r);
FragColor = textColor * sampled;
2023-09-12 03:21:18 +02:00
}