new Moon(options)
Draws the Moon in 3D.
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Object with the following properties:
|
Example:
scene.moon = new Cesium.Moon();
See:
Source:
Scene/Moon.js, line 50
Members
-
readonlyellipsoid :Ellipsoid
-
Get the ellipsoid that defines the shape of the moon.
-
Default Value:
Ellipsoid.MOONSource: Scene/Moon.js, line 104 -
onlySunLighting :Boolean
-
Use the sun as the only light source.
-
Default Value:
trueSource: Scene/Moon.js, line 80 -
show :Boolean
-
Determines if the moon will be shown.
-
Default Value:
trueSource: Scene/Moon.js, line 64 -
textureUrl :String
-
The moon texture.
-
Default Value:
buildModuleUrl('Assets/Textures/moonSmall.jpg')Source: Scene/Moon.js, line 71
Methods
-
destroy() → undefined
-
Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.
Once an object is destroyed, it should not be used; calling any function other thanisDestroyedwill result in aDeveloperErrorexception. Therefore, assign the return value (undefined) to the object as done in the example.Returns:
Throws:
-
DeveloperError : This object was destroyed, i.e., destroy() was called.
Example:
moon = moon && moon.destroy();See:
Source: Scene/Moon.js, line 178 -
-
isDestroyed() → Boolean
-
Returns true if this object was destroyed; otherwise, false.
If this object was destroyed, it should not be used; calling any function other thanisDestroyedwill result in aDeveloperErrorexception.Returns:
trueif this object was destroyed; otherwise,false.See:
Source: Scene/Moon.js, line 157
