aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/twotextureproviders/shaders/xorblender.vert
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-04-07 17:01:07 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-04-29 08:42:17 +0200
commite25bd7a3b76107eb3da3e1eb4e8667ce99b4d20a (patch)
tree45dbfd25b89aa867d9913cb0bc477508f1997b0a /examples/quick/scenegraph/twotextureproviders/shaders/xorblender.vert
parent1465ca26c62605634afdf7b2c9e8ecbfc2397dae (diff)
Remove leftover legacy shader files in scenegraph example
Task-number: QTBUG-82997 Change-Id: Icc328394154d7b352c9f47184c2f906d5afa4d44 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'examples/quick/scenegraph/twotextureproviders/shaders/xorblender.vert')
-rw-r--r--examples/quick/scenegraph/twotextureproviders/shaders/xorblender.vert17
1 files changed, 12 insertions, 5 deletions
diff --git a/examples/quick/scenegraph/twotextureproviders/shaders/xorblender.vert b/examples/quick/scenegraph/twotextureproviders/shaders/xorblender.vert
index ac9f1364d6..41000bde04 100644
--- a/examples/quick/scenegraph/twotextureproviders/shaders/xorblender.vert
+++ b/examples/quick/scenegraph/twotextureproviders/shaders/xorblender.vert
@@ -1,12 +1,19 @@
-attribute highp vec4 aVertex;
-attribute highp vec2 aTexCoord;
+#version 440
-uniform highp mat4 qt_Matrix;
+layout(location = 0) in vec4 aVertex;
+layout(location = 1) in vec2 aTexCoord;
-varying highp vec2 vTexCoord;
+layout(location = 0) out vec2 vTexCoord;
+
+layout(std140, binding = 0) uniform buf {
+ mat4 qt_Matrix;
+ float qt_Opacity;
+} ubuf;
+
+out gl_PerVertex { vec4 gl_Position; };
void main()
{
- gl_Position = qt_Matrix * aVertex;
+ gl_Position = ubuf.qt_Matrix * aVertex;
vTexCoord = aTexCoord;
}