standingWaterIsSampled

function standingWaterIsSampled
universe/src/terrain.ts:553
standingWaterIsSampled(surface: SurfaceParameters) → boolean

Whether a body's standing water is sampled into Heightfield.water — a drainage graph exists — rather than being the one datum a body with a sea and no graph has. The mesh builder is handed a datum only in the second case.

Through drains rather than drainageGraph: the streamer asks this once a patch on the thread that draws, and building the graph to learn whether there is one is fifty to a hundred milliseconds of stall.

surfaceSurfaceParameters
Undocumented
Returnsboolean