Class: Moon

Moon

new Moon(optionsopt)

Draws the Moon in 3D.
Parameters:
Name Type Attributes Description
options Object <optional>
Object with the following properties:
Properties
Name Type Attributes Default Description
show Boolean <optional>
true Determines whether the moon will be rendered.
textureUrl String <optional>
buildModuleUrl('Assets/Textures/moonSmall.jpg') The moon texture.
ellipsoid Ellipsoid <optional>
Ellipsoid.MOON The moon ellipsoid.
onlySunLighting Boolean <optional>
true Use the sun as the only light source.
Source:
See:
Example
scene.moon = new Cesium.Moon();

Members

(readonly) ellipsoid :Ellipsoid

Get the ellipsoid that defines the shape of the moon.
Type:
Default Value:
Source:

onlySunLighting :Boolean

Use the sun as the only light source.
Type:
  • Boolean
Default Value:
  • true
Source:

show :Boolean

Determines if the moon will be shown.
Type:
  • Boolean
Default Value:
  • true
Source:

textureUrl :String

The moon texture.
Type:
  • String
Default Value:
  • buildModuleUrl('Assets/Textures/moonSmall.jpg')
Source:

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 than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.
Source:
See:
Throws:
This object was destroyed, i.e., destroy() was called.
Type
DeveloperError
Returns:
Type
undefined
Example
moon = moon && moon.destroy();

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 than isDestroyed will result in a DeveloperError exception.
Source:
See:
Returns:
true if this object was destroyed; otherwise, false.
Type
Boolean