# FFT ocean surface

> A displaced ocean surface driven by a real inverse FFT. A Phillips spectrum evolves in frequency space, two compute passes run a shared-memory radix-2 IFFT into a displacement field, and a procedural grid rides it with per-pixel normals, foam and a Fresnel sky reflection under a tunable sunset. Orbit with the mouse; tweak the sea from the panel.

- Author: [VGPU](https://21st.dev/@vgpu)
- Library: VGPU
- License: MIT
- Tags: Ocean
- Live preview: https://21st.dev/@vgpu/components/fft-ocean-surface

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/vgpu/fft-ocean-surface?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/ocean.md
