画一个太阳广告牌。 Draws a sun billboard.
仅在 3D 和哥伦布视图中支持此功能。 This is only supported in 3D and Columbus view.
示例: Example:
scene.sun = new Cesium.Sun();
另见: See:
成员 Members
获取或设置一个数字,用于控制太阳镜头光晕的“亮度”。零仅显示太阳圆盘,没有任何耀斑。使用较大的值可以使太阳周围的耀斑更加明显。 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.
-
默认值: Default Value:
1.0
确定是否显示太阳。 Determines if the sun will be shown.
-
默认值: Default Value:
true
方法 Methods
销毁该对象持有的 WebGL 资源。销毁对象可以确定性地释放 WebGL 资源,而不是依赖垃圾收集器来销毁该对象。 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:
sun = sun && sun.destroy();
另见: See:
如果该对象被销毁则返回 true;否则为假。 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.
