new Moon()
Draws the Moon in 3D.
Name | Type | Default | Description |
---|---|---|---|
options.show |
Boolean |
true
|
optional Determines whether the moon will be rendered. |
options.textureUrl |
String |
buildModuleUrl('Assets/Textures/moonSmall.jpg')
|
optional The moon texture. |
options.ellipsoid |
Ellipsoid |
Ellipsoid.MOON
|
optional The moon ellipsoid. |
options.onlySunLighting |
Boolean |
true
|
optional Use the sun as the only light source. |
Example:
scene.moon = new Cesium.Moon();
Source:
Scene/Moon.js, line 45
Members
-
ellipsoid :Ellipsoid
-
The moon ellipsoid.
-
Default Value:
Ellipsoid.MOON
Source: Scene/Moon.js, line 73 -
onlySunLighting :Boolean
-
Use the sun as the only light source.
-
Default Value:
true
Source: Scene/Moon.js, line 80 -
show :Boolean
-
Determines if the moon will be shown.
-
Default Value:
true
Source: Scene/Moon.js, line 59 -
textureUrl :String
-
The moon texture.
-
Default Value:
buildModuleUrl('Assets/Textures/moonSmall.jpg')
Source: Scene/Moon.js, line 66
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 thanisDestroyed
will result in aDeveloperError
exception. 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 157 -
-
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 thanisDestroyed
will result in aDeveloperError
exception.Returns:
true
if this object was destroyed; otherwise,false
.See:
Source: Scene/Moon.js, line 134