File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/app/(main)/community/events/map Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,12 @@ void main() {
102102 vec2 markerCenter = markerCellCenter(marker, fragPx);
103103 float dist = length(fragPx - markerCenter);
104104 float innerRadius = baseHalfSquare + 0.4 * uCell;
105- float outerRadius = innerRadius + 2.25 * uCell;
105+ float outerRadius = innerRadius + 2.0 * uCell;
106106 float radiusDiff = max(outerRadius - innerRadius, 0.0001);
107107 float t = clamp((dist - innerRadius) / radiusDiff, 0.0, 1.0);
108- float cubicEaseOut = 1.0 - pow(1.0 - t, 3.0);
109- float halo = (1.0 - cubicEaseOut) * strength;
108+ float logFalloff = 1.0 - log(1.0 + t * 9.0) / log(10.0);
109+ float minOpacity = 0.5;
110+ float halo = minOpacity * logFalloff * strength;
110111 haloIntensity = max(haloIntensity, halo);
111112 }
112113 }
You can’t perform that action at this time.
0 commit comments