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:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.