Ant Colony

Ants wander from the nest, laying glowing pheromone trails that fade over time and gradually converge into efficient paths toward food sources. Ants switch between "exploring" and "returning" states, steering with a lerped direction vector, and drop orange (outbound) or green (food-found) pheromone points into a 4,000-point rolling buffer whose brightness decays each frame. Up to 90 ants are rendered as a single InstancedMesh for performance.

Controls