Tool Open source

web-ocean

web-ocean is a real-time ocean renderer written from scratch for WebGPU, without a game engine or rendering library. It simulates waves with six cascaded Tessendorf FFT fields, a fetch-limited JONSWAP wind spectrum, directional spreading, swell, capillary dispersion, and choppy displacement; a 17-level CDLOD quadtree provides the surface mesh. Shading includes whitecaps derived from surface folds, persistent camera-centered foam maps, anisotropic sun glitter, turbid water, sky reflections, and a physically based atmosphere with two cloud layers. The scene is rendered in HDR with 4x MSAA, bloom, AgX tone mapping, and dithering, and is viewed through a free camera with adjustable wind, swell, choppiness, foam, sun, haze, clouds, exposure, and bloom settings. The project can be opened directly from a self-contained HTML file in a recent Chrome browser with WebGPU, or run from source with npm; it is licensed under MIT.

View repository Visit site Mentioned in 1 video ↓

What web-ocean is used for

1 use taken from transcripts — each links to the moment in the video.

  • Renders a moving ocean in your browser using WebGPU with no game engine or rendering library — simulated waves form white caps, sunlight glitters on the surface, and a free camera lets you fly over the water with adjustable wind, swell, and lighting. Ships as one self-contained HTML file.

Videos mentioning web-ocean

1 in the library.