new Moon()
Draw a three-dimensional moon.
| Name | Type | Default | Description |
|---|---|---|---|
options.show |
Boolean | true |
optional
Determine whether to render the moon. |
options.textureUrl |
String | buildModuleUrl('Assets/Textures/moonSmall.jpg') |
optional
The texture of the moon. |
options.ellipsoid |
Ellipsoid | Ellipsoid.MOON |
optional
Lunar ellipsoid. |
options.onlySunLighting |
Boolean | true |
optional
Using the sun as the sole source of light. |
- See:
Example
scene.moon = new SuperMap3D.Moon();
Members
-
readonly ellipsoidEllipsoid
-
Obtain an ellipsoid that determines the shape of the moon.
- Default Value:
Ellipsoid.MOON
onlySunLightingBoolean
Using the sun as the sole source of light.
- Default Value: true
showBoolean
Determine whether to display the moon.
- Default Value: true
textureUrlString
The texture of the moon.
- Default Value: buildModuleUrl('Assets/Textures/moonSmall.jpg')
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
moon = moon && moon.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.