new SkyAtmosphere(ellipsoid)
The atmospheric effect at the edge of the sphere. Based on Accurate Atmospheric Scattering display.
Only supported in 3D scenes, the atmosphere will fade out when transitioning to a 2D scene.
| Name | Type | Default | Description |
|---|---|---|---|
ellipsoid |
Ellipsoid | Ellipsoid.WGS84 |
optional
An ellipsoid surrounding the atmosphere. |
Example
scene.skyAtmosphere = new SuperMap3D.SkyAtmosphere();
Members
-
brightnessShiftNumber
-
The default value for atmospheric brightness change is 0.0. -1 represents all black.
- Default Value: 0.0
readonly ellipsoidEllipsoid
Obtain the sphere surrounded by the atmosphere
hueShiftNumber
Adjust the color tone of the atmosphere. The default value is 0.0. 1.0 represents completely opposite color tones.
- Default Value: 0.0
saturationShiftNumber
Adjust the saturation of the atmosphere. The default value of 0.0-1.0 indicates monochrome.
- Default Value: 0.0
showBoolean
Determine whether to activate the atmosphere.
- Default Value: true
Methods
-
destroy(){undefined}
-
Destroy the WebGL resources of this object. Once destroyed, it cannot be used. Calling any function other than isDestroyed will result in a Developer Error exception.
Throws:
-
When the object is destroyed, destroy() is called
- Type
- DeveloperError
Returns:
Type Description undefined Example
skyAtmosphere = skyAtmosphere && skyAtmosphere.destroy(); -
-
isDestroyed(){Boolean}
-
If the object is destroyed, return true; otherwise, return false. If the object is destroyed, it should not be used, calling any function other than isDestroyed will result in a Developer Error exception.
Returns:
Type Description Boolean If the object is destroyed, it is true; otherwise, it is false.