Skip to content

levelsFor

levelsFor(radius, leafSize): number

Defined in: sdk/src/terrain/sphere.ts:91

How many levels a planet needs so that the finest node is about leafSize metres a side (to the nearest power of two): the top level’s node is a whole face.

number

number

number