SkyAtmosphere

new Cesium.SkyAtmosphere(ellipsoid)

绘制在指定椭球体边缘的大气层。基于 考虑大气散射的地球显示

该功能仅支持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:
Example:
skyAtmosphere = skyAtmosphere && skyAtmosphere.destroy();
See:

isDestroyed()boolean

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

如果对象已销毁,则不应再使用;调用除isDestroyed之外的任何函数都会导致DeveloperError异常。
Returns:
如果此对象已销毁则返回true,否则返回false
See:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.