SOF/renderer/shaders/font.frag
FroggyGreen b3e114c2a1 Font rendering
Text boxes may be created where the text is left, center, or right
aligned.
2024-07-13 21:31:23 -05:00

14 lines
313 B
GLSL

#version 460
layout(location = 0) in vec4 fragColor;
layout(location = 1) in vec2 fragTex;
layout(location = 0) out vec4 outColor;
layout(set = 1, binding = 0) uniform sampler2D texSampler;
void main()
{
vec4 sampled = vec4(1.0, 1.0, 1.0, texture(texSampler, fragTex).r);
outColor = fragColor * sampled;
}