PointLight

new SuperMap3D.PointLight(position, options)

point Light
Name Type Description
position Cartesian3 location of point Light
options Object optional Optional, contains the following attributes
Name Type Default Description
color Color Color.WHITE optional Light source color, default white
cutoffDistance Number 10 optional The diffusion distance of the point light source, the default is 10 meters
decay Number 1 optional Point light source attenuation factor, the smaller the attenuation with the distance, the brighter it is
intensity Number 2 optional Point Light Intensity

Members

staticSuperMap3D.PointLight.color : Color

Get or set the color of the light source, the default is white.

staticSuperMap3D.PointLight.cutoffDistance : Number

Get or set the diffusion distance of the point light source, the default is 10 meters.

staticSuperMap3D.PointLight.decay : Number

Get or set the point light source attenuation factor, the smaller the attenuation with the distance, the brighter it is.

staticSuperMap3D.PointLight.id : Number

Get the point light source id.

staticSuperMap3D.PointLight.intensity : Number

Get or set point light intensity.

staticSuperMap3D.PointLight.lightColor : Color

Get the point light source color

staticSuperMap3D.PointLight.position : Cartesian3

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