From f89ebf6882fb3823dea85e180cdf567b5a050c6c Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 29 Nov 2026 11:54:41 +0100 Subject: [PATCH] feat(atlas): unvisited regions of a visited country almost clear when zoomed in Zoomed in, a country with visited regions kept about a fifth of its colour under its other regions. It now keeps about a twentieth, as in the regions view, so only the regions really visited carry the country's colour. --- client/src/components/AtlasGlobe/globeShaders.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/components/AtlasGlobe/globeShaders.ts b/client/src/components/AtlasGlobe/globeShaders.ts index 49d033863..d73d0768b 100644 --- a/client/src/components/AtlasGlobe/globeShaders.ts +++ b/client/src/components/AtlasGlobe/globeShaders.ts @@ -137,8 +137,9 @@ void main() { a *= 1.0 - smoothstep(u_inkR - 0.01, u_inkR, d); } // A country whose regions are on screen steps back so its regions read; one with - // visited regions (fx.a) steps far back, so the regions really visited stand out. - if (u_mode == 0 && fx.b > 0.5) a *= 1.0 - (fx.a > 0.5 ? 0.82 : 0.32) * u_regionFade; + // visited regions (fx.a) all but disappears behind them, as in the regions view, + // so only the regions really visited carry its colour. + if (u_mode == 0 && fx.b > 0.5) a *= 1.0 - (fx.a > 0.5 ? 0.96 : 0.32) * u_regionFade; vec3 base = u_land * (u_mode == 2 ? 1.0 : u_dimBase); vec3 col = mix(base, st.rgb, a); if (fx.r > 0.5) {