14 lines
No EOL
278 B
GLSL
14 lines
No EOL
278 B
GLSL
precision mediump float;
|
|
|
|
varying vec2 texCoords;
|
|
|
|
uniform vec4 fontColor;
|
|
uniform sampler2D fontBitmap;
|
|
|
|
void main() {
|
|
vec4 outColor = texture2D(fontBitmap, texCoords);
|
|
if(outColor.xyz == vec3(0.0, 0.0, 0.0))
|
|
discard;
|
|
|
|
gl_FragColor = fontColor * outColor;
|
|
} |