Appearance
类: Sun
Draws a sun billboard. <p>This is only supported in 3D and Columbus view.</p>
示例
ts
scene.sun = new Cesium.Sun();属性
show
show:
boolean
Determines if the sun will be shown.
glowFactor
glowFactor:
number
Gets or sets a number that controls how "bright" the Sun's lens flare appears to be. Zero shows just the Sun's disc without any flare. Use larger values for a more pronounced flare around the Sun.
方法
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
sun = sun && sun.destroy();构造函数
构造函数
new Sun():
Sun
返回
Sun
