Skip to content

paintWeights

paintWeights(h, ny, t): [number, number, number, number]

Defined in: sdk/src/terrain/paint.ts:15

The weights of grass, dirt, snow and rock at a point of ground, by how high (0 to 1 of the terrain) and how steep it is.

number

number

Pick<TerrainData, "rockSlope" | "dirtHeight" | "snowHeight">

[number, number, number, number]