aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/shaders/textmask.vert
blob: 1692159d2c7d013d06c08d64c34ec883f52dae83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
     vec3 dprSnapPos = floor(vCoord.xyz * dpr + 0.5) / dpr;
     gl_Position = matrix * vec4(dprSnapPos, vCoord.w);
}