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.
This commit is contained in:
Maurice
2026-11-29 11:54:41 +01:00
parent 14443a17be
commit f89ebf6882
@@ -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) {