Builtin Library
- ..
- README.md534 B
- bindings.yaml233 B
- shader.wgsl7.0 KB
README.md
curl_noise_update
Advects particles along a curl-noise field, so they swirl instead of falling straight. A drop-in replacement for the default particle update: same bindings, same state layout.
Pass it to a particle system as its update shader:
particles.create { updateShader = asset.resolve("~.demo.curl_noise_update", "computeShader") }
Bindings
| name | kind |
|---|---|
particles | buffer (read_write, f32) |
vertices | buffer (read_write, u32) |
params | buffer (read_write, f32) |