DirectionalLight

new Cesium.DirectionalLight(position, options)

Parallel light source
Name Type Description
position Cartesian3 Light source position
options Object optional Optional, with the following attributes:
Name Type Default Description
targetPosition Cartesian3 Cartesian3.ZERO optional Target position, determining the direction of parallel light
color Color Color.WHITE optional Light source color
intensity Number 1 optional brightness

Members

staticCesium.DirectionalLight.color : Color

Gets or sets the color of the light.

staticCesium.DirectionalLight.direction : Cartesian3

Get the direction of the parallel light source.

staticCesium.DirectionalLight.id : Number

Get the parallel source id.

staticCesium.DirectionalLight.intensity : Number

Gets or sets the light intensity of the parallel source.

staticCesium.DirectionalLight.lightColor : Cartesian3

Get the color of the parallel light source.

staticCesium.DirectionalLight.position : Cartesian3

Gets or sets the position of the parallel light source, using the world coordinate system.

staticCesium.DirectionalLight.targetPosition : Cartesian3

Gets or sets the target position of the parallel light source to determine the direction of the parallel light.