Skip to content

API Interface WaterSample

github-actions[bot] edited this page Nov 24, 2026 · 3 revisions

Interface: WaterSample

Defined in: src/engine/render/water/WaterSurface.ts:13

The water surface at a point, in world space.

Properties

height

height: number;

Defined in: src/engine/render/water/WaterSurface.ts:15

World-space height of the surface above (x, z).


normal

normal: Vector3;

Defined in: src/engine/render/water/WaterSurface.ts:17

World-space unit normal of the surface there.

Clone this wiki locally