Renderer · interface
SeaState
How rough the sea is for a given wind.
Explained in Hello world.
interface SeaStateimport type { SeaState } from '@driftengine/core';In depth
Wind does not push existing waves around — it builds them. A calm sea is nearly flat with no whitecaps; a strong wind raises steep crests that break. Steering the swell without changing its size would leave the water equally choppy in a dead calm and a gale, which is the giveaway that the weather is decoration rather than a cause.
Properties
| Name | Type | Description |
|---|---|---|
steepness | number | Multiplier on the Gerstner steepness the surface was authored with. |
foam | number | How readily crests break into foam, 0 for none. |