craterField

function craterField
universe/src/craters.ts:127
craterField(sketch: TerrainSketch, grammar: SurfaceGrammar, direction: Vec3) → number

The crater field's contribution at a direction, meters.

Summed over every lattice level in the sketch and soft-limited by the caller, because craters overlap and a basin inside a basin would otherwise punch through the mantle.

sketchTerrainSketch
Undocumented
grammarSurfaceGrammar
Undocumented
directionVec3
Undocumented
Returnsnumber