aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/shaders/24bittextmask.frag
blob: 5c21e202f9c5375f78445728f530b0eea107b923 (plain)
1
2
3
4
5
6
7
8
9
10
varying highp vec2 sampleCoord;

uniform lowp sampler2D _qt_texture;
uniform lowp float color; // just the alpha, really...

void main()
{
    lowp vec4 glyph = texture2D(_qt_texture, sampleCoord);
    gl_FragColor = vec4(glyph.rgb * color, glyph.a);
}