diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-04-10 17:33:19 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-06-21 12:29:09 +0000 |
commit | 55db3890f44c7bef9a6ecb2b2f3bf31e288a3cd8 (patch) | |
tree | 440c030ab4d4230e10b545c0547bf911374975eb /src/quickshapes/shaders/radialgradient.vert | |
parent | 3c14450a3e08fdaf6fb4933e354e17e4944a084f (diff) |
Move QtQuick.Shapes implementation to qtquickshapes, privately exported
This change moves the implementation of QtQuick.Shapes into an own
qt module, where classes are privately exported.
In this way Shapes QML types can be internally (= from other Qt
modules) instantiated also from cpp.
Change-Id: I428f981f0a1f3083e6571cbeaffa706fd8ef7254
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quickshapes/shaders/radialgradient.vert')
-rw-r--r-- | src/quickshapes/shaders/radialgradient.vert | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/quickshapes/shaders/radialgradient.vert b/src/quickshapes/shaders/radialgradient.vert new file mode 100644 index 0000000000..3350b0675a --- /dev/null +++ b/src/quickshapes/shaders/radialgradient.vert @@ -0,0 +1,13 @@ +attribute vec4 vertexCoord; +attribute vec4 vertexColor; + +uniform mat4 matrix; +uniform vec2 translationPoint; + +varying vec2 coord; + +void main() +{ + coord = vertexCoord.xy - translationPoint; + gl_Position = matrix * vertexCoord; +} |