mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 07:50:04 +00:00
Cleanup unused freetype dependencies and old text rendering
This commit is contained in:
parent
a98d978cc6
commit
c2918daebf
16 changed files with 4 additions and 1044 deletions
|
|
@ -1,17 +0,0 @@
|
|||
#version 330 core
|
||||
|
||||
in vec2 texCoords;
|
||||
in vec4 textColor;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
uniform sampler2D uTexture;
|
||||
|
||||
void main()
|
||||
{
|
||||
float dist = texture(uTexture, texCoords).r;
|
||||
float width = fwidth(dist);
|
||||
float alpha = smoothstep(0.5f - width, 0.5f + width, dist);
|
||||
|
||||
color = vec4(textColor.rgb, textColor.a * alpha);
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
#version 330 core
|
||||
|
||||
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(aVertex, 1.0f);
|
||||
texCoords = aTexCoords;
|
||||
textColor = aColor;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue