PointLightObject
What a PointLight’s ref holds: the light in the scene, which a game
moves and writes each frame as it would three’s, whether or not it holds
one of the pool’s slots. A prop that changes writes its field; a field a
frame writes holds until the next.
Extends
Section titled “Extends”Object3D
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PointLightObject():
PointLightObject
This creates a new Object3D object.
Returns
Section titled “Returns”PointLightObject
Inherited from
Section titled “Inherited from”Object3D.constructor
Properties
Section titled “Properties”
readonlycolor:Color
Its colour, linear, as three’s.
dayShare
Section titled “dayShare”dayShare:
number=1
The share of intensity it burns at by day, 0 to 1.
decay:
number=2
How its light falls off with distance, three’s: 2 is physical.
distance
Section titled “distance”distance:
number=1
Metres at which its light reaches zero.
flicker
Section titled “flicker”flicker:
number=0
How much it flickers, 0 to 1.
flickerFactor
Section titled “flickerFactor”flickerFactor:
number=1
The factor its flicker multiplies it by this frame, 1 when still. Read it, never write it.
intensity
Section titled “intensity”intensity:
number=1
Candela, three’s unit.
isDrawn
Section titled “isDrawn”isDrawn:
boolean=false
Whether it holds a slot and lights the scene this frame. Read it, never write it.
isPointLightObject
Section titled “isPointLightObject”
readonlyisPointLightObject:true=true
priority
Section titled “priority”priority:
number=3
Which light keeps a slot when more are in view than the pool holds: each step down counts as 1.5 m nearer.
seed:
number=0
What its flicker’s noise starts from. Read it, never write it.
worldPosition
Section titled “worldPosition”
readonlyworldPosition:Vector3
Where it stands in the world this frame. Read it, never write it.