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

attribute highp vec4 vCoord;
attribute highp vec2 tCoord;

varying highp vec2 sampleCoord;
varying highp vec2 shiftedSampleCoord;

void main()
{
     sampleCoord = tCoord * textureScale;
     shiftedSampleCoord = (tCoord - shift) * textureScale;
     gl_Position = matrix * floor(vCoord + 0.5);
}