Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

DetailLevel

A level of detail for an InstancedModel: a cheaper model a copy draws in place of the nearer ones once the camera is far enough away, as a level of three’s LOD is.

Property Type Description
castShadow? boolean Whether this level’s copies cast the sun’s shadow, such as none for far cards. Left out, the InstancedModel’s castShadow.
distance number Metres from the camera from which a copy draws this model: a finite number above 0, one no other level shares.
material? ModelMaterial What this level’s copies wear, as material is for the nearest. Left out, the material its model registered with, or the file’s own.
model string A name given to registerModel, or a path the game serves: the far form, such as a tree of a few crossed cards.