SkyAtmosphere

new SuperMap3D.SkyAtmosphere(ellipsoid)

Atmospheric effects around the edges of the sphere. based on Accurate Atmospheric Scattering show.

Only supported in 3D scenes, when changing to 2D scenes, the atmosphere will fade out

Name Type Default Description
ellipsoid Ellipsoid Ellipsoid.WGS84 optional An ellipsoid surrounding the atmosphere.
Example:
scene.skyAtmosphere = new SuperMap3D.SkyAtmosphere();
See:
  • Scene.skyAtmosphere

Members

brightnessShift : Number

Atmospheric brightness variation Default value is 0.0. -1 means all black.
Default Value: 0.0

readonlyellipsoid : Ellipsoid

Get the sphere surrounded by the atmosphere

hueShift : Number

Adjusts the tone of the atmosphere. The default value is 0.0 . 1.0 means the exact opposite hue.
Default Value: 0.0

saturationShift : Number

Adjusts the saturation of the atmosphere. The default value is 0.0 -1.0 means monochrome.
Default Value: 0.0

show : Boolean

Determines whether to enable atmosphere.
Default Value: true

Methods

destroy()undefined

Destroys the WebGL resource for this object.

Once destroyed, it cannot be used. Calling any function other than isDestroyed will result in a DeveloperError exception.
Returns:
Throws:
Example:
skyAtmosphere = skyAtmosphere && skyAtmosphere.destroy();
See:

isDestroyed()Boolean

Returns true if the object is destroyed, false otherwise.

Should not be used if the object is destroyed, calling any function other than isDestroyed will result in a DeveloperError exception.
Returns:
true if the object was destroyed, false otherwise.
See: