blob: ac62e7b642fb6a5e203a7961f071196a0fa9e7c3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
varying highp vec2 sampleCoord;
uniform lowp sampler2D texture;
uniform lowp float color; // just the alpha, really...
void main()
{
lowp vec4 glyph = texture2D(texture, sampleCoord);
gl_FragColor = vec4(glyph.rgb * color, glyph.a);
}
|