threejs-spectral-ocean
Installation
SKILL.md
Spectral Ocean
Build a dimensioned random sea from directional variance density to one displaced, shaded surface. The spectral domain is a horizontally homogeneous periodic patch with one mean depth and one dispersion relation per cascade.
1. Gate the representation
Choose from the required observable, not the desired look:
| Observable | Owner |
|---|---|
| A few authored modes or exact cheap CPU queries | Parametric waves in $threejs-water-optics |
| Bounded disturbances or explicit walls | Bounded heightfield in $threejs-water-optics |
| Broad stochastic directional sea | This spectral FFT skill |
| Depth-varying refraction, diffraction, breaking, run-up, or wet/dry fronts | Coastal branch in $threejs-water-optics; this skill may supply offshore forcing |
| Overturning, entrained air, jets, or three-dimensional vortices | External free-surface solver |