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

uniform sampler2D _qt_texture;
uniform lowp vec4 color;

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