SkyAtmosphere

new Cesium.SkyAtmosphere(ellipsoid)

绘制在提供的椭球体外缘周围的气氛。基于 Display of The Earth Taking Into Account Atmospheric Scattering

此功能仅在 3D 中支持。当变形为 2D 或哥伦布视图时,气氛会逐渐消失。

Name Type Default Description
ellipsoid Ellipsoid Ellipsoid.WGS84 optional 气氛绘制的椭球体。
Example:
scene.skyAtmosphere = new Cesium.SkyAtmosphere();
See:
  • Scene.skyAtmosphere

Members

atmosphereLightIntensity : number

用于计算天空大气颜色的光照强度。
Default Value: 50.0

atmosphereMieAnisotropy : number

考虑米散射的介质各向异性。

有效值在 -1.0 和 1.0 之间。

Default Value: 0.9
在天空大气的散射方程中使用的米散射系数。
Default Value: Cartesian3(21e-6, 21e-6, 21e-6)

atmosphereMieScaleHeight : number

在天空大气的散射方程中使用的米尺度高度,以米为单位。
Default Value: 3200.0

atmosphereRayleighCoefficient : Cartesian3

在天空大气的散射方程中使用的瑞利散射系数。
Default Value: Cartesian3(5.5e-6, 13.0e-6, 28.4e-6)

atmosphereRayleighScaleHeight : number

在天空大气的散射方程中使用的瑞利尺度高度,以米为单位。
Default Value: 10000.0

brightnessShift : number

应用到大气的亮度偏移。默认为 0.0(没有偏移)。 亮度偏移为 -1.0 为完全黑暗,将让太空显示出来。
Default Value: 0.0
获取绘制气氛的椭球体。
应用到大气的色调偏移。默认为 0.0(没有偏移)。 色调偏移为 1.0 表示可用色调的完整旋转。
Default Value: 0.0

perFragmentAtmosphere : boolean

每个片段计算气氛,而不是每个顶点。 这会产生更好看的气氛,但会稍微影响性能。
Default Value: false

saturationShift : number

应用到大气的饱和度偏移。默认为 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:

isDestroyed()boolean

如果此对象已被销毁,则返回 true;否则返回 false。

如果此对象已被销毁,则不应使用;调用除 isDestroyed 以外的任何函数将导致 DeveloperError 异常。
Returns:
如果此对象已被销毁,则返回 true;否则返回 false
See:
需要帮助?获得答案的最快方法是来自社区和团队 Cesium Forum.