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

PointLightProps

A PointLight’s props. Each one sets its field on the handle when it changes, so a field a frame writes holds until its prop changes, as React Three Fiber applies three’s.

  • Pick<ThreeElements["group"], "position" | "name" | "visible">
Property Type Default value Description
color? ColorRepresentation white, three's -
dayShare? number 1, lit all day The share of intensity it burns at by day, 0 to 1: whole at night, blended by the look’s night share. A share under 0.45 rises toward it under overcast weather, so a lamp reads lit in the rain. A lamp sets 0.05.
decay? number 2 How its light falls off with distance, three’s: 2 is physical.
distance number undefined Metres at which the light reaches zero, and past which, with 4 m to spare, it leaves the view and its slot. 0 reaches without limit, as three’s does, and never leaves the view.
flicker? number 0 How much it flickers, 0 to 1: smooth noise at 2.6 a second, its intensity times 1 ± 0.85 of this. An emissive tied to it with useEmissive flickers with it.
intensity? number 1, three's Candela, three’s unit.
priority? number 3 How much it counts when more lights are in view than the pool holds: each step down counts as 1.5 m nearer the camera’s focus. Luminati gives fires 0, torches 1, lampposts 2 and windows 3.
ref? Ref<PointLightObject> undefined -