Sun

绘制太阳广告牌。

仅支持 3D 和 Columbus 视图。

Example:
scene.sun = new Cesium.Sun();
See:

Members

glowFactor : number

获取或设置一个数字,用于控制太阳镜头光晕的"亮度"。 零值仅显示太阳圆盘,没有任何光晕。 使用较大的值可获得太阳周围更明显的光晕效果。
Default Value: 1.0
确定是否显示太阳。
Default Value: true

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 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:
sun = sun && sun.destroy();

 
See:

isDestroyed()boolean

Returns true if this object was destroyed; otherwise, false.

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.