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
天空大气的大气散射方程中使用的 Mie 散射系数。
Default Value: Cartesian3(21e-6, 21e-6, 21e-6)

atmosphereMieScaleHeight : number

天空大气的大气散射方程中使用的 Mie 比例高度,以米为单位。
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
Determines if the atmosphere is shown.
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.