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

LocalLight

LocalLight(props): Element

A local light that rides the object it is mounted under: a lantern, a torch, a forge. The engine lights it from the world’s pool of local lights whenever it is among the lights that light the view most, so it compiles no shader as it comes or goes, as registerLocalLight says. For a light no view holds, or one whose values a frame writes, such as a flash that fades, register it with registerLocalLight instead.

Parameter Type
props LocalLightProps

Element