# Particles ocean

A deep-water surface driven by a real inverse FFT. A Phillips spectrum evolves in frequency space, Stockham passes produce a displacement field, and half a million particles ride the waves through an HDR bloom chain.

## Download

Download the complete verified example source:

```bash
npx vgpu examples pull fft-ocean --out ./fft-ocean
```

## Explore

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

## Included files

- `index.tsx`
- `renderer.ts`
- `ocean-graph.ts`
- `tuning.ts`
- `camera.ts`
- `ocean-common.wgsl`
- `noise.wgsl`
- `initial-spectrum.wgsl`
- `spectrum.wgsl`
- `ifft-stage.wgsl`
- `normal-foam.wgsl`
- `particles.wgsl`
- `bloom-bright.wgsl`
- `bloom-blur.wgsl`
- `bloom-composite.wgsl`
- `present.wgsl`
