aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/shaders/textmask.vert
blob: 4c678270d0e2a89fc1dbce83887bcabdb31fb4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
uniform highp mat4 matrix;
uniform highp vec2 textureScale;
uniform highp float dpr;

attribute highp vec4 vCoord;
attribute highp vec2 tCoord;

varying highp vec2 sampleCoord;

void main()
{
     sampleCoord = tCoord * textureScale;
     gl_Position = matrix * floor(vCoord * dpr + 0.5) / dpr;
}