Packed font rendering

This commit is contained in:
2022-12-28 22:50:54 +00:00
parent 329e10f2d6
commit 76273e1c54
23 changed files with 211 additions and 132 deletions

View File

@@ -12,5 +12,6 @@ uniform mat4 model;
void main()
{
texcoords = vertex.xy;
texcoords.y *= -1;
gl_Position = projection * model * vec4(vertex.xy, 0.0, 1.0);
}

View File

@@ -10,5 +10,5 @@ layout (std140) uniform Projection
void main()
{
gl_Position = projection * vec4(vertex.xy, 0.0, 1.0);
TexCoords = vec2(vertex.z, 1.0 - vertex.w);
TexCoords = vertex.zw;
}