Work
bevy_fft
GPU Fast Fourier Transforms and real-time water for Bevy: an FFT ocean, shallow-water and dispersive wave solvers, and one water surface that draws them all.
- Year
- Source
- mate-h/bevy_fft
RustBevyWGSLCompute

Notes
bevy_fft runs forward and inverse 2D FFTs in compute shaders on Bevy's render graph, on square power-of-two grids up to 4096 × 4096. On top of that sits a full water stack:
- FFT ocean with Tessendorf-style cascades, finite-depth dispersion, TMA spectra, swell and whitecap foam.
- Shallow water on a staggered GPU grid with a terrain bed, wetting and drying, and open borders forced by the ocean.
- Dispersive waves for boat wakes and ripples, combining bulk shallow water with Airy surface waves.
- One shared water surface: every solver writes into the same camera-centred LOD textures, so a single material draws them all and they blend at their edges.
- Water optics: refraction, screen-space reflection, caustics, advected foam, an underwater view and the waterline.
- Floating bodies with voxelized hulls whose buoyancy and drag come from the live water on the GPU.