From acef4398df70b984ad6f2f403b2fa55c72219c73 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Sat, 18 Oct 2025 13:10:59 -0400 Subject: improve text rendering --- graphics.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'graphics.c') diff --git a/graphics.c b/graphics.c index e2f06a1..d099d2b 100644 --- a/graphics.c +++ b/graphics.c @@ -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) { -- cgit v1.2.3