Moon

new Cesium.Moon(options)

在 3D 中绘制月球。
Name Type Description
options object optional 包含以下属性的对象:
Name Type Default Description
show boolean true optional 确定是否渲染月球。
textureUrl string buildModuleUrl('Assets/Textures/moonSmall.jpg') optional 月球纹理。
ellipsoid Ellipsoid Ellipsoid.MOON optional 月球椭球体。
onlySunLighting boolean true optional 使用太阳作为唯一光源。
Example:
scene.moon = new Cesium.Moon();
See:

Members

获取定义月球形状的椭球体。
Default Value: Ellipsoid.MOON

onlySunLighting : boolean

使用太阳作为唯一光源。
Default Value: true
确定是否显示月球。
Default Value: true

textureUrl : string

月球纹理。
Default Value: buildModuleUrl('Assets/Textures/moonSmall.jpg')

Methods

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.
Throws:
  • DeveloperError : This object was destroyed, i.e., destroy() was called.
Example:
moon = moon && moon.destroy();
See:

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.
Returns:
true if this object was destroyed; otherwise, false.
See:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.