blob: 363833e2564ad17a629d1822d00dfec4fcea4ab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#version 330 core
layout(location=0) in vec2 aPos;
uniform mat4 Projection;
uniform mat4 LetterTransforms[32];
out vec2 TexCoords;
flat out int Index;
void main() {
gl_Position = Projection * LetterTransforms[gl_InstanceID] * vec4(aPos, 0.0, 1.0);
vec2 tex = aPos;
TexCoords = tex;
TexCoords.y = 1.0 - TexCoords.y;
Index = gl_InstanceID;
}
|