diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-18 13:10:59 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-18 13:10:59 -0400 |
| commit | acef4398df70b984ad6f2f403b2fa55c72219c73 (patch) | |
| tree | 34f1a4a87929d9d4aefec12c0e015ef2b8d0ccc8 /graphics.c | |
| parent | 24fb6ee3b2d6e3c68410e439c7395f5058dabce5 (diff) | |
improve text rendering
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -42,10 +42,7 @@ in vec2 o_uv;\n\ layout (location = 0) out vec4 frag_color;\n\ \n\ void main() {\n\ - float d = texture(u_texture, o_uv).r;\n\ - float aaf = fwidth(d) * 0.5f;\n\ - float alpha = smoothstep(0.5 - aaf, 0.5 + aaf, d);\n\ - frag_color = vec4(u_color, alpha);\n\ + frag_color = vec4(u_color, texture(u_texture, o_uv).r);\n\ }"; bool init_gl(client_state* state) { |
