TerrainPassOptions beta
Interface of @v12-engine/engine
export interface TerrainPassOptionsWhat terrainPass takes: the parameters of the generator it reads where they are not given here
Members
hills
hills?: number;How many cells a hill is across, about: the parameter hills, or 24
levels
levels?: number;How many cliff levels the ground rises through, 1 (flat) to 4: the parameter levels, or 2
ramps
ramps?: boolean;Whether ramps are cut so that every part of the ground can be walked to: yes when left out
rampWidth
rampWidth?: number;How wide a ramp is, in cells: 3 when left out
roughness
roughness?: number;How much the ground rolls within a level, 0..1: the parameter roughness, or 0.4
shape
shape?: (x: number, z: number, noise: number, map: GameMap) => number;The lie of the land, where it is not the noise's alone: the ground's value at a point (high is high), made from the point, the plateau noise there (0..1) and the map; the levels and the water are cut from the values as ever (the lowest share water). A bay (basinShape: the corners high, a sea in the middle, an island in it), a valley, a ridge: a shape of the game's own
water
water?: number;How much of the map is under water, 0..1: the parameter water, or 0.15