From f73543f45d3a59ef6e4f115631ba405c3c083359 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Wed, 10 Jun 2026 21:38:47 +0100 Subject: [PATCH] Fix anti-aliasing --- src/graphics/rendering/shaders/distance-fs-100.glsl | 2 +- src/graphics/rendering/shaders/distance-fs.glsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/rendering/shaders/distance-fs-100.glsl b/src/graphics/rendering/shaders/distance-fs-100.glsl index f1442cc..11e6e39 100644 --- a/src/graphics/rendering/shaders/distance-fs-100.glsl +++ b/src/graphics/rendering/shaders/distance-fs-100.glsl @@ -24,5 +24,5 @@ void main() { {functionCalls} - gl_FragColor = vec4(color.rgb, minDistance * 8.0); + gl_FragColor = vec4(color.rgb, minDistance * 8.0 + 0.125); } diff --git a/src/graphics/rendering/shaders/distance-fs.glsl b/src/graphics/rendering/shaders/distance-fs.glsl index 5f56e11..a91f871 100644 --- a/src/graphics/rendering/shaders/distance-fs.glsl +++ b/src/graphics/rendering/shaders/distance-fs.glsl @@ -33,7 +33,7 @@ void main() { #if FLOAT_LINEAR_ENABLED distanceValue = minDistance; #else - distanceValue = minDistance * 8.0; + distanceValue = minDistance * 8.0 + 0.125; #endif fragmentColor = color;