diff options
Diffstat (limited to 'src/quick/scenegraph/shaders/32bitcolortext.frag')
-rw-r--r-- | src/quick/scenegraph/shaders/32bitcolortext.frag | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/quick/scenegraph/shaders/32bitcolortext.frag b/src/quick/scenegraph/shaders/32bitcolortext.frag new file mode 100644 index 0000000000..6fdb6e6aeb --- /dev/null +++ b/src/quick/scenegraph/shaders/32bitcolortext.frag @@ -0,0 +1,9 @@ +varying highp vec2 sampleCoord; + +uniform sampler2D _qt_texture; +uniform lowp float color; // just the alpha, really... + +void main() +{ + gl_FragColor = texture2D(_qt_texture, sampleCoord) * color; +} |