Firefly Forest

A swarm of bioluminescent fireflies drifts and flocks through a moonlit night forest. Each firefly blends a boids-style flocking model (cohesion, separation, alignment) with a slowly drifting attractor point and trunk-avoidance steering, so the swarm feels alive rather than scripted. Glow is faked with additive-blended sprites plus a sparse subset of real THREE.PointLights for performance, while a layered sine/noise flicker function drives per-firefly brightness independently.

Swarm Controls