new Cesium.Sun()

画太阳告示牌. 这只支持在 3D 和 Columbus 中
Example:
scene.sun = new Cesium.Sun();
See:

Members

glowFactor : number

获取或设置一个控制太阳光照耀的“光照”出现方式的数字 成为。 零显示太阳光碟 没有任何信号弹. 对太阳周围更明显的耀斑使用更大的值.
Default Value: 1.0

show : boolean

确定太阳是否会被显示.
Default Value: true

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:
sun = sun && sun.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.