ghostty/shaders/text-atlas.f.glsl
Mitchell Hashimoto 684fb64705 use a font atlas!
2022-04-04 22:24:02 -07:00

13 lines
202 B
GLSL

#version 330 core
in vec2 TexCoords;
in vec4 VertexColor;
uniform sampler2D text;
void main()
{
float a = texture(text, TexCoords).r;
gl_FragColor = vec4(VertexColor.rgb, VertexColor.a*a);
}