summaryrefslogtreecommitdiffstats
path: root/src/Runtime/ogl-runtime/res/effectlib/distancefieldtext_core.vert
blob: 2dc198f4ffd4ca7a69050d6ddb98b7532a96e9bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
in vec3 vCoord;
in vec2 tCoord;

out vec2 sampleCoord;

uniform mat4 mvp;
uniform int textureWidth;
uniform int textureHeight;
uniform float fontScale;

void main()
{
    sampleCoord = tCoord * vec2(1.0 / float(textureWidth), 1.0 / float(textureHeight));
    gl_Position = mvp * vec4(vCoord, 1.0);
}