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.
Parameters
Section titled “Parameters”radius
Section titled “radius”number
leafSize
Section titled “leafSize”number
Returns
Section titled “Returns”number