Appearance
KBE3D / KBCore / Cesium / Moon
类: Moon
Draws the Moon in 3D.
示例
ts
scene.moon = new Cesium.Moon();参数
Object with the following properties:
参数
Determines whether the moon will be rendered.
参数
The moon texture.
参数
The moon ellipsoid.
参数
Use the sun as the only light source.
属性
show
show:
boolean
Determines if the moon will be shown.
textureUrl
textureUrl:
string
The moon texture.
onlySunLighting
onlySunLighting:
boolean
Use the sun as the only light source.
ellipsoid
readonlyellipsoid:Ellipsoid
Get the ellipsoid that defines the shape of the moon.
方法
isDestroyed()
isDestroyed():
boolean
Returns true if this object was destroyed; otherwise, false. <br /><br /> If this object was destroyed, it should not be used; calling any function other than <code>isDestroyed</code> will result in a DeveloperError exception.
返回
boolean
true if this object was destroyed; otherwise, false.
destroy()
destroy():
void
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. <br /><br /> Once an object is destroyed, it should not be used; calling any function other than <code>isDestroyed</code> will result in a DeveloperError exception. Therefore, assign the return value (<code>undefined</code>) to the object as done in the example.
返回
void
示例
ts
moon = moon && moon.destroy();构造函数
构造函数
new Moon(
options?: {show?:boolean;textureUrl?:string;ellipsoid?:Ellipsoid;onlySunLighting?:boolean; }):Moon
参数
options?
show?
boolean
textureUrl?
string
ellipsoid?
onlySunLighting?
boolean
返回
Moon
