OptionalstrengthOptionalchopLateral chop strength (λ in the Jacobian). Scales the xz lateral displacement Tessendorf-style — gives the asymmetric breaking-wave profile rather than smooth rolling swell. Default 1.4.
OptionalfoamJacobian foam threshold — max(0, foamThreshold − J) is written
into the FFT output's alpha channel for the surface shader to
modulate foam intensity. Default 1.0 (foam where J < 1, i.e.
surface starts compressing).
OptionalNGrid size along one axis. Power of two recommended. Default 64.
OptionaltileSide length of the spatial tile in meters. Default 128.
OptionalwindWind speed (m/s). Drives the Phillips spectrum's L = V²/g. Default 12.
OptionalwindUnit-vector wind direction in world XZ. Default (1, 0).
OptionalamplitudeOverall amplitude scaling. Default 0.0008 — tuned for tileSize 128
and windSpeed 12 to produce a wave field with ~0.5 m peak waves.
OptionalcapillaryCapillary suppression length (meters). Damps waves shorter than this to prevent jagged high-frequency noise that the discrete grid can't resolve. Default 0.5.
OptionalseedSeed for the Box-Muller Gaussian sampler — pass a fixed integer to reproduce the same spectrum across runs. Default uses Math.random.
Per-vertex strength of the FFT heightfield contribution. Default 1.