diff options
Diffstat (limited to 'examples/quick/scenegraph/twotextureproviders/shaders/xorblender.vert')
-rw-r--r-- | examples/quick/scenegraph/twotextureproviders/shaders/xorblender.vert | 17 |
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; } |