PointLight

class PointLight()

Contains properties of a point light. More information can be found here.

Index

Constructors

Properties

Constructors

PointLight.constructor()
PointLight(type: LightType, space: LightSpace, position: Point3, color: Color, power: number, decay: number): PointLight

Parameters

type: LightType

The light’s type. See [[type]].

space: LightSpace

The space in which a light is defined. See [[space]]

position: Point3

The light’s position. See [[position]].

color: Color

The 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.color

inherited

color: Color

The light’s color.

PointLight.decay
decay: number

How quickly the light will attenuate as it travels further from its source

PointLight.position

inherited

position: Point3

The 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: LightSpace

The space in which the light’s position is defined.

PointLight.type

inherited

type: LightType

The light’s type.