Skip to content

selectSphereNodes

selectSphereNodes(p, ex, ey, ez, levels?): SphereNode[]

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

The nodes to draw for an eye at (ex, ey, ez) in the planet’s space, coarse to fine. Every point of the planet is covered by exactly one node: a node nearer the eye than the level below’s range is split into its four children, and the six faces’ top nodes are where it begins.

SphereTreeParams

number

number

number

number = ...

SphereNode[]