DirectionalLight

class wv.DirectionalLight()

Contains properties of a directional light. More information can be found here. See [[LightType.Directional]] for information on how the position is interpreted for directional lights.

Index

Constructors

Properties

Constructors

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

Parameters

type: LightType

space: LightSpace

position: Point3

color: Color

Returns: DirectionalLight

Properties

wv.DirectionalLight.color

inherited

color: Color

The light’s color.

wv.DirectionalLight.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.

wv.DirectionalLight.space

inherited

space: LightSpace

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

wv.DirectionalLight.type

inherited

type: LightType

The light’s type.