Ocean Waves: Wind Spectrum & Shoaling (2D)
2D linear-wave-theory ocean model: a Pierson-Moskowitz-style wind spectrum sums real sinusoidal components, each solved through the exact dispersion relation across a sloping seafloor, so shoaling and wave breaking emerge from the physics instead of being scripted.
This 2D companion rebuilds ocean waves from first principles instead of orbiting a decorative shader surface: a wind-shaped Pierson-Moskowitz-style spectrum of five real sinusoids is summed across a cross-section that shoals from 50 m of open water to a shore depth you control, each component's wavenumber solved through the exact dispersion relation at every point so that shoaling, wave steepening and breaking all emerge from energy-flux conservation rather than being scripted, while a floating buoy traces the circular-to-elliptical orbit real linear wave theory predicts as the water shallows.
2D linear-wave-theory ocean model: a Pierson-Moskowitz-style wind spectrum sums real sinusoidal components, each solved through the exact dispersion relation across a sloping seafloor, so shoaling and wave breaking emerge from the physics instead of being scripted.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install