aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/shaders/styledtext.vert
blob: 3ad9497b65b8ffd8c734672ff26d4ea88ba4858b (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 * vCoord;
}