# Interactive Fluid

A compact pressure-projected fluid solver with velocity advection, colorful dye, and pointer or touch stirring.

## Download

Download the complete verified example source:

```bash
npx vgpu examples pull fluid --out ./fluid
```

## Explore

- [Interactive example](https://vgpu.sh/examples/fluid)
- [Fullscreen preview](https://vgpu.sh/preview/fluid)
- [Complete source](https://vgpu.sh/examples/fluid/source.md)

## Included files

- `index.tsx`
- `renderer.ts`
- `pointer-input.ts`
- `simulation.ts`
- `fluid-common.wgsl`
- `advect-velocity.wgsl`
- `curl.wgsl`
- `vorticity.wgsl`
- `divergence.wgsl`
- `pressure.wgsl`
- `project.wgsl`
- `advect-dye.wgsl`
- `display.wgsl`
