summaryrefslogtreecommitdiff
path: root/src/quick/scenegraph/shaders/textmask.vert
blob: 7f418b08954141d5b95fec9cb408183a37593137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
uniform highp mat4 modelViewMatrix;
uniform highp mat4 projectionMatrix;
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;
     vec4 xformed = modelViewMatrix * vCoord;
     gl_Position = projectionMatrix * vec4(floor(xformed.xyz * dpr + 0.5) / dpr, xformed.w);
}