summaryrefslogtreecommitdiff
path: root/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'shaders')
-rw-r--r--shaders/ui.frag.glsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/shaders/ui.frag.glsl b/shaders/ui.frag.glsl
index 2284fa0b..d0967309 100644
--- a/shaders/ui.frag.glsl
+++ b/shaders/ui.frag.glsl
@@ -13,6 +13,9 @@ layout(location = 0) out vec4 o_col;
void main() {
float a = texture(u_atlas, v_uv).r;
+ // stb_truetype is unhinted. A small coverage lift counters its grey edge
+ // halo without turning the atlas into hard-edged bitmap text.
+ a = pow(a, 0.8);
vec3 col = mix(v_bg, v_fg, a);
o_col = vec4(col, 1.0);
}