THREE.JS / FOUNDATIONS 293

A flock is a compute graph.

Position, velocity, and wing phase live in storage arrays while a flocking kernel updates every bird before one instanced vertex graph turns that state into motion.

Initializing compute birds—
Preparing deterministic storage buffers and flocking kernels…

WebGPU runs two storage-buffer compute passes before the instanced vertex graph; WebGL2 is an explicitly labeled CPU/InstancedMesh reference.

LAB 293 / COMPUTE BIRDS