drainageLookup

function drainageLookup
universe/src/drainage.ts:1255
drainageLookup(graph: DrainageGraph, sketch: TerrainSketch, direction: Vec3) → Vec3

The direction a sample is looked up at: the sample's own, bent by a warp of a fraction of a cell, so the chords between nodes read as meanders. The same three noise reads the strip field spent on its warp, and the drainage seed is theirs.

graphDrainageGraph
Undocumented
sketchTerrainSketch
Undocumented
directionVec3
Undocumented
ReturnsVec3