File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
src/app/(main)/community/events/map Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -158,16 +158,9 @@ void main() {
158158 vec2 delta = abs(fragPx - center);
159159 bool insideSquare = delta.x <= squareHalf && delta.y <= squareHalf;
160160 bool isSeaCell = markerType <= 0.5 && landCoverage < 0.5;
161- bool shouldRenderHalo = !insideSquare || isSeaCell;
162- if (shouldRenderHalo) {
163- if (haloIntensity <= 0.0) {
164- discard;
165- }
166- float haloAlpha = clamp(haloIntensity, 0.0, 1.0);
167- color = mix(uSeaColor, uHaloColor, haloAlpha);
168- outColor = vec4(color, 1.0);
169- return;
170- }
161+ float haloAlpha = clamp(haloIntensity, 0.0, 1.0);
162+ color = (isSeaCell || !insideSquare) ? uSeaColor : color;
163+ color = mix(color, uHaloColor, haloAlpha);
171164 outColor = vec4(color, 1.0);
172165}
173166`
You can’t perform that action at this time.
0 commit comments