Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit61a33237e0

README.md

fluid

Creates and drives grid fluid simulations.

create allocates the grid; the returned handle carries addSource, addForce, step, velocityTexture, destroy, and densityTexture.

Cost and memory are set by resolution alone. A 64³ grid holds seven fields — four rgba16f and three r32f — and every field ping-pongs between two textures, because a kernel samples its input while writing a storage texture and one texture cannot be both in a single dispatch.

iterations sets how many Jacobi passes converge the pressure solve. Fewer leaves the fluid slightly compressible, which reads as damped, mushy motion.