sockscape/resources/client/shaders/font/font.frag
2018-09-03 22:33:20 -05:00

14 lines
No EOL
280 B
GLSL

#version 330 core
in vec2 texCoords;
out vec4 fragColor;
uniform vec4 fontColor;
uniform sampler2D fontBitmap;
void main() {
vec4 outColor = texture(fontBitmap, texCoords);
if(outColor.xyz == vec3(0.0, 0.0, 0.0))
discard;
fragColor = fontColor * outColor;
}