From 96e373b6e00624569194816a9f3280885f8af0e0 Mon Sep 17 00:00:00 2001 From: supersurviveur Date: Sun, 20 Sep 2026 12:32:19 +0200 Subject: [PATCH] feat: improve colors when using distance estimate --- src/shaders/colorize.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shaders/colorize.wgsl b/src/shaders/colorize.wgsl index 7f194d1..90aaf04 100644 --- a/src/shaders/colorize.wgsl +++ b/src/shaders/colorize.wgsl @@ -160,7 +160,7 @@ fn fs_main(@builtin(position) pos: vec4) -> @location(0) vec4 { let interior_frac = d.b; let t = fract(ci * u.color_scale + u.color_offset); - var col = palette(u.palette_id, t) * de; + var col = palette(u.palette_id, t) * sqrt(de); // Anti-alias the set boundary: fade toward black by the fraction of the // pixel's sub-samples that landed in the interior. col = col * (1.0 - interior_frac);