new Cesium.Moon(options)

以三维画月.
Name Type Description
options object optional 下列属性的对象 :
Name Type Default Description
show boolean true optional Determines whether the moon will be rendered.
textureUrl string 建模Url('Assets/Textures/ NT 0 ') optional 月色纹理.
ellipsoid Ellipsoid Ellipsoid.MOON optional The moon ellipsoid.
onlySunLighting boolean true optional Use the sun as the only light source.
Example:
scene.moon = new Cesium.Moon();
See:

Members

readonly ellipsoid : 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()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic 释放 WebGL 资源,而不是依赖垃圾收集器来摧毁此对象.

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

如果此对象被销毁, 返回真实; 否则, 错误 .

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.