围绕所提供椭球体边缘的大气。基于
Accurate Atmospheric Scattering
在GPU宝石2。
This is only supported in 3D. Atmosphere is faded out when morphing to 2D or Columbus view.
Name | Type | Default | Description |
---|---|---|---|
ellipsoid |
Ellipsoid |
Ellipsoid.WGS84
|
optional 大气围绕的椭球体。 |
- Scene.skyAtmosphere
Example:
scene.skyAtmosphere = new Cesium.SkyAtmosphere();
Demo:
See:
Members
应用于大气的亮度偏移。默认为0.0(无移位)。
亮度偏移-1.0是完全黑暗的,这将使空间显现出来。
-
Default Value:
0.0
readonly ellipsoid : Ellipsoid
获取大气所围绕的椭球体。
应用于大气的色调变化。默认为0.0(无移位)。
色调偏移1.0表示可用色调的完全旋转。
-
Default Value:
0.0
计算每个碎片的大气,而不是每个顶点。
这会产生更好看的氛围,但性能会受到轻微的影响。
-
Default Value:
false
适用于大气的饱和位移。默认为0.0(无移位)。
饱和度偏移-1.0是单色的。
-
Default Value:
0.0
确定是否显示大气。
-
Default Value:
true
Methods
销毁此对象持有的WebGL资源。销毁一个对象允许确定性 释放WebGL资源,而不是依赖垃圾回收器销毁此对象。 一旦一个对象被销毁,就不应该使用它;调用除
isDestroyed
将导致DeveloperError
异常。因此,
如示例所示,将返回值(undefined
)分配给对象。Throws:
-
DeveloperError :此对象已销毁,即调用destroy()。
Example:
skyAtmosphere = skyAtmosphere && skyAtmosphere.destroy();
See:
Returns:
如果此对象被销毁,则为
true
;否则为false
。