Class: Sun

Sun

new Sun()

The sun is only displayed in 3D scenes.

See:
Example
scene.sun = new SuperMap3D.Sun();

Members

glowFactorNumber

Get or set the brightness of solar flares. 0 means there are no flares.

Default Value:
1.0

showBoolean

Whether to display the sun.

Default Value:
true

Methods

destroy(){undefined}

Destroy the WebGL resources held by the object. Destroying an object can release WebGL resources deterministically, rather than relying on a garbage collector to destroy the object. Once the object is destroyed, it cannot be used again; Calling any function other than isDestroyed will result in a Developer Error exception. Therefore, please assign the return value (undefined) to the object using the method shown in the example.

See:
Throws:

The object has been destroyed, i.e. destroy() has been called.

Type
DeveloperError
Returns:
Type Description
undefined
Example
sun = sun && sun.destroy();

isDestroyed(){Boolean}

If the object has been destroyed, return true; Otherwise, return false. If the object has been destroyed, it should not be used; Calling any function other than isDestroyed will result in a Developer Error exception.

See:
Returns:
Type Description
Boolean If the object has been destroyed, it is true; Otherwise, it is false.