DirectionalLight

new SuperMap3D.DirectionalLight(position, options)

parallel light source
Name Type Description
position Cartesian3 Light source position
options Object optional Optional, contains the following attributes:
Name Type Default Description
targetPosition Cartesian3 Cartesian3.ZERO optional The target position determines the direction of the parallel light
color Color Color.WHITE optional Light source color
intensity Number 1 optional brightness

Members

staticSuperMap3D.DirectionalLight.color : Color

Get or set the light source color.

staticSuperMap3D.DirectionalLight.direction : Cartesian3

Get the direction of the directional light source.

staticSuperMap3D.DirectionalLight.id : Number

Get the parallel light source id.

staticSuperMap3D.DirectionalLight.intensity : Number

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

staticSuperMap3D.DirectionalLight.lightColor : Cartesian3

Get the color of the directional light source.

staticSuperMap3D.DirectionalLight.position : Cartesian3

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

staticSuperMap3D.DirectionalLight.targetPosition : Cartesian3

Get or set the target position of the directional light source to determine the direction of the directional light.