DirectionalLight

new Cesium.DirectionalLight(position, options)

Parallel light source
Name Type Description
position Cartesian3 Light source position
options Object optional Light source position
Name Type Default Description
targetPosition Cartesian3 Cartesian3.ZERO optional Target position, determine 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 source.

staticCesium.DirectionalLight.direction : Cartesian3

Get the direction of the parallel light source.

staticCesium.DirectionalLight.id : Number

Get the id of the directional light source.

staticCesium.DirectionalLight.intensity : Number

Gets or sets the light intensity of the parallel light source.

staticCesium.DirectionalLight.lightColor : Cartesian3

Get the color of the directional light source.

staticCesium.DirectionalLight.position : Cartesian3

Get or set the position of the parallel light source, using the world coordinate system.

staticCesium.DirectionalLight.targetPosition : Cartesian3

Get or set the target position of the parallel light source and determine the direction of the parallel light.