Repository navigation
API Interface WaterSample
Defined in: src/engine/render/water/WaterSurface.ts:20
The water surface at a point, in world space.
breaking: number;Defined in: src/engine/render/water/WaterSurface.ts:30
0–1: how much the waves break there, where a baked depth map makes them shoal (ADR 0663); 0 in deep water.
height: number;Defined in: src/engine/render/water/WaterSurface.ts:22
World-space height of the surface above (x, z).
normal: Vector3;Defined in: src/engine/render/water/WaterSurface.ts:24
World-space unit normal of the surface there.
velocity: Vector3;Defined in: src/engine/render/water/WaterSurface.ts:26
World-space velocity of the water there (units per second): the waves' orbital motion (ADR 0663).
waveHeight: number;Defined in: src/engine/render/water/WaterSurface.ts:28
Crest-to-trough height the waves reach there, in world units (twice their summed amplitudes, after shoaling).
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference