new Moon
Draws the Moon in 3D.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
options.show |
Boolean |
<optional> |
true | Determines whether the moon will be rendered. |
options.textureUrl |
String |
<optional> |
buildModuleUrl('Assets/Textures/moonSmall.jpg') | The moon texture. |
options.ellipsoid |
Ellipsoid |
<optional> |
Ellipsoid.MOON | The moon ellipsoid. |
options.onlySunLighting |
Boolean |
<optional> |
true | Use the sun as the only light source. |
Example
scene.moon = new Cesium.Moon();
Source:
Members
-
ellipsoid :Ellipsoid
-
The moon ellipsoid.
- Default Value:
- Ellipsoid.MOON
-
onlySunLighting :Boolean
-
Use the sun as the only light source.
- Default Value:
- true
-
show :Boolean
-
Determines if the moon will be shown.
- Default Value:
- true
-
textureUrl :String
-
The moon texture.
- Default Value:
- buildModuleUrl('Assets/Textures/moonSmall.jpg')
Methods
-
destroy
-
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 a DeveloperError exception. Therefore, assign the return value (undefined
) to the object as done in the example.Throws:
DeveloperError : This object was destroyed, i.e., destroy() was called.Returns:
Example
moon = moon && moon.destroy();
See:
-
isDestroyed
-
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 a DeveloperError exception.Returns:
Booleantrue
if this object was destroyed; otherwise,false
.See: