diff options
Diffstat (limited to 'src/quick/scenegraph/shaders/textmask.frag')
-rw-r--r-- | src/quick/scenegraph/shaders/textmask.frag | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/quick/scenegraph/shaders/textmask.frag b/src/quick/scenegraph/shaders/textmask.frag new file mode 100644 index 0000000000..7715688ecc --- /dev/null +++ b/src/quick/scenegraph/shaders/textmask.frag @@ -0,0 +1,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); +}
\ No newline at end of file |