From 6b80d068f28b0532ed461766877b425f0fada030 Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Tue, 18 Nov 2025 00:16:18 +0100 Subject: [PATCH] Render hover halo over not under squares --- src/app/(main)/community/events/map/shaders.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/app/(main)/community/events/map/shaders.ts b/src/app/(main)/community/events/map/shaders.ts index a213ba3dfa..fab651139f 100644 --- a/src/app/(main)/community/events/map/shaders.ts +++ b/src/app/(main)/community/events/map/shaders.ts @@ -158,16 +158,9 @@ void main() { vec2 delta = abs(fragPx - center); bool insideSquare = delta.x <= squareHalf && delta.y <= squareHalf; bool isSeaCell = markerType <= 0.5 && landCoverage < 0.5; - bool shouldRenderHalo = !insideSquare || isSeaCell; - if (shouldRenderHalo) { - if (haloIntensity <= 0.0) { - discard; - } - float haloAlpha = clamp(haloIntensity, 0.0, 1.0); - color = mix(uSeaColor, uHaloColor, haloAlpha); - outColor = vec4(color, 1.0); - return; - } + float haloAlpha = clamp(haloIntensity, 0.0, 1.0); + color = (isSeaCell || !insideSquare) ? uSeaColor : color; + color = mix(color, uHaloColor, haloAlpha); outColor = vec4(color, 1.0); } `