aboutsummaryrefslogtreecommitdiff
path: root/graphics.c
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-10-18 13:10:59 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-10-18 13:10:59 -0400
commitacef4398df70b984ad6f2f403b2fa55c72219c73 (patch)
tree34f1a4a87929d9d4aefec12c0e015ef2b8d0ccc8 /graphics.c
parent24fb6ee3b2d6e3c68410e439c7395f5058dabce5 (diff)
improve text rendering
Diffstat (limited to 'graphics.c')
-rw-r--r--graphics.c5
1 files changed, 1 insertions, 4 deletions
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) {