diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-07-28 11:54:44 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-07-29 15:40:27 +0000 |
commit | 5e8347fdbab98d721f031634a9f6c8b217072d34 (patch) | |
tree | ca507e39d1ffb058e6c622d17e19e1b236531f05 /src/imports/shapes/shaders/blit.frag | |
parent | 182983943b76bc0e40ff7693853ef2262323fa80 (diff) |
Move shapes-related shaders to under the shapes plugin
Do not leave them in quick/items' qrc.
Change-Id: I12360a54caa368219a7a80645f92af66aa9de9ba
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/shapes/shaders/blit.frag')
-rw-r--r-- | src/imports/shapes/shaders/blit.frag | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/imports/shapes/shaders/blit.frag b/src/imports/shapes/shaders/blit.frag new file mode 100644 index 0000000000..505f0db179 --- /dev/null +++ b/src/imports/shapes/shaders/blit.frag @@ -0,0 +1,9 @@ +varying highp vec2 qt_TexCoord0; + +uniform sampler2D source; +uniform lowp float qt_Opacity; + +void main() +{ + gl_FragColor = texture2D(source, qt_TexCoord0) * qt_Opacity; +} |