PointLight
Constructors
-
PointLight.constructor() - PointLight(type:
LightType, space:LightSpace, position:Point3, color:Color, power: number, decay: number):PointLightParameters
type:
LightTypeThe light’s type. See [[type]].space:
LightSpaceThe space in which a light is defined. See [[space]]position:
Point3The light’s position. See [[position]].color:
ColorThe light’s color. See [[color]].power: number
The light’s power. See [[power]].decay: number
The light’s power. See [[decay]].Returns:
PointLight
Properties
-
PointLight.decay - decay: number
How quickly the light will attenuate as it travels further from its source
-
PointLight.position inherited
position:Point3The light’s position in the scene. See [[LightType.Directional]] for information on how the position is interpreted for directional lights.
-
PointLight.power - power: number
How bright the light is
-
PointLight.space inherited
space:LightSpaceThe space in which the light’s position is defined.