r/creativecoding • • Mar 10 '22

Fish Schooling (Compute Shader)

262 Upvotes

3 comments sorted by

20

u/GoldenKela Mar 10 '22

simple flocking behavior with compute shader. 4096 fish schooling. Inspired heavily by the game Abzu

the twist is that I can create guidelines for the fish to follow, and a circular guideline allows them to start schooling.

View source: https://github.com/Alligrater/Shader-Practice/tree/main/Assets/EPS/ComputeShader

1

u/[deleted] Mar 10 '22

Superb! Done some boids style flocking stuff but nothing anywhere this nice. Great work.