mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 07:40:06 +00:00
Scalable fonts using freetype-gl
This commit is contained in:
parent
ec8e2643ff
commit
289ed430c7
8 changed files with 400 additions and 181 deletions
|
|
@ -1,11 +1,17 @@
|
|||
#version 330 core
|
||||
layout (location = 0) in vec4 vertex;
|
||||
|
||||
layout (location = 0) in vec3 aVertex;
|
||||
layout (location = 1) in vec2 aTexCoords;
|
||||
layout (location = 2) in vec4 aColor;
|
||||
|
||||
out vec2 texCoords;
|
||||
out vec4 textColor;
|
||||
|
||||
uniform mat4 projection;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = projection * vec4(vertex.xy, 0.0f, 1.0f);
|
||||
texCoords = vertex.zw;
|
||||
gl_Position = projection * vec4(aVertex, 1.0f);
|
||||
texCoords = aTexCoords;
|
||||
textColor = aColor;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue