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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
LocalLightProps |
Returns
Section titled “Returns”Element