Light

class Light()

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

Index

Constructors

Properties

Constructors

Light.constructor()
Light(type: LightType, space: LightSpace, position: Point3, color: Color): Light

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]].

Returns: Light

Properties

Light.color
color: Color

The light’s color.

Light.position
position: Point3

The light’s position in the scene. See [[LightType.Directional]] for information on how the position is interpreted for directional lights.

Light.space
space: LightSpace

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

Light.type
type: LightType

The light’s type.