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

attribute highp vec4 vCoord;
attribute highp vec2 tCoord;

uniform highp vec2 shift;

varying highp vec2 sampleCoord;
varying highp vec2 shiftedSampleCoord;

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