sockscape/resources/client/shaders/font/font.frag

14 lines
278 B
GLSL
Raw Normal View History

2018-09-13 22:11:09 +00:00
precision mediump float;
varying vec2 texCoords;
2018-08-29 21:33:28 +00:00
uniform vec4 fontColor;
uniform sampler2D fontBitmap;
void main() {
2018-09-13 22:11:09 +00:00
vec4 outColor = texture2D(fontBitmap, texCoords);
2018-08-29 21:33:28 +00:00
if(outColor.xyz == vec3(0.0, 0.0, 0.0))
2018-09-04 03:33:20 +00:00
discard;
2018-08-29 21:33:28 +00:00
2018-09-13 22:11:09 +00:00
gl_FragColor = fontColor * outColor;
2018-08-29 21:33:28 +00:00
}