Moon

new Cesium.Moon(options)

在三维场景中绘制月球。
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

readonlyellipsoid : Ellipsoid

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

onlySunLighting : Boolean

使用太阳作为唯一的光源。
Default Value: true

show : Boolean

是否显示月球。
Default Value: true

textureUrl : String

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

Methods

destroy()

销毁此对象持有的WebGL资源。 销毁一个对象允许WebGL资源的确定性释放,而不是依赖于垃圾收集器来销毁这个对象。

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

isDestroyed()Boolean

如果该对象没被销毁,返回false。

如果该对象已经被销毁, 使用isDestroyed 会触发 DeveloperError 异常。
Returns:
false
See: