text.frag 184 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
varying vec2 tex_coord;
uniform sampler2D FontTexture;
uniform vec3 color;

void main (void)
{
	float lum = texture2D(FontTexture, tex_coord).s;
	gl_FragColor = vec4(color,0.0)*lum;
}