在 3D 中绘制月球。
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
optional
包含以下属性的对象:
|
Example:
scene.moon = new Cesium.Moon();
See:
Members
readonly ellipsoid : Ellipsoid
获取定义月球形状的椭球体。
-
Default Value:
Ellipsoid.MOON
使用太阳作为唯一光源。
-
Default Value:
true
确定是否显示月球。
-
Default Value:
true
月球纹理。
-
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
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:
Returns true if this object was destroyed; otherwise, false.
If this object was destroyed, it should not be used; calling any function other than
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.
