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

销毁此对象所持有的 WebGL 资源。销毁对象允许以确定的方式释放 WebGL 资源,而不是依赖垃圾收集器来销毁此对象。

一旦对象被销毁,就不应再使用;调用除 isDestroyed 以外的任何函数将导致 DeveloperError 异常。因此, 将返回值(undefined)赋值给对象,如示例所示。
Throws:
Example:
moon = moon && moon.destroy();
See:

isDestroyed()boolean

如果该对象已被销毁,则返回 true;否则返回 false。

如果该对象已被销毁,则不应再使用;调用除 isDestroyed 以外的任何函数将导致 DeveloperError 异常。
Returns:
如果该对象已被销毁,则返回 true;否则返回 false
See:
需要帮助?获得答案的最快方法是来自社区和团队 Cesium Forum.