Skip to content

Commit 752bc2f

Browse files
committed
Lower opacity
1 parent 5169b92 commit 752bc2f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/app/(main)/community/events/map/shaders.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)