diff options
Diffstat (limited to 'src/quick/scenegraph/shaders/textmask.vert')
-rw-r--r-- | src/quick/scenegraph/shaders/textmask.vert | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/quick/scenegraph/shaders/textmask.vert b/src/quick/scenegraph/shaders/textmask.vert new file mode 100644 index 0000000000..1f45e9cf71 --- /dev/null +++ b/src/quick/scenegraph/shaders/textmask.vert @@ -0,0 +1,13 @@ +uniform highp mat4 matrix; +uniform highp vec2 textureScale; + +attribute highp vec4 vCoord; +attribute highp vec2 tCoord; + +varying highp vec2 sampleCoord; + +void main() +{ + sampleCoord = tCoord * textureScale; + gl_Position = matrix * vCoord; +} |