Atmosphere

new Cesium.Atmosphere()

3D Tiles 和模型用于渲染天空大气、地面大气和雾的通用大气设置。

此类不要与 SkyAtmosphere 混淆,后者负责渲染天空。

虽然大气设置会影响雾的颜色,但请参阅 Fog 来控制雾的渲染方式。

Examples:
// Turn on dynamic atmosphere lighting using the sun direction
scene.atmosphere.dynamicLighting = Cesium.DynamicAtmosphereLightingType.SUNLIGHT;
// Turn on dynamic lighting using whatever light source is in the scene
scene.light = new Cesium.DirectionalLight({
  direction: new Cesium.Cartesian3(1, 0, 0)
});
scene.atmosphere.dynamicLighting = Cesium.DynamicAtmosphereLightingType.SCENE_LIGHT;
// Adjust the color of the atmosphere effects.
scene.atmosphere.hueShift = 0.4; // Cycle 40% around the color wheel
scene.atmosphere.brightnessShift = 0.25; // Increase the brightness
scene.atmosphere.saturationShift = -0.1; // Desaturate the colors
See:

Members

brightnessShift : number

应用于大气的亮度偏移。默认值为 0.0(无偏移)。 亮度偏移为 -1.0 表示完全黑暗,将使太空可见。
Default Value: 0.0
当不为 DynamicAtmosphereLightingType.NONE 时,选定的光源将 用于动态照亮所有与大气相关的渲染效果。
Default Value: DynamicAtmosphereLightingType.NONE
应用于大气的色调偏移。默认值为 0.0(无偏移)。 色调偏移为 1.0 表示可用色调的完整旋转。
Default Value: 0.0

lightIntensity : number

用于计算地面大气颜色的光照强度。
Default Value: 10.0

mieAnisotropy : number

Mie 散射需要考虑的介质各向异性。

有效值介于 -1.0 和 1.0 之间。

Default Value: 0.9
地面大气的散射方程中使用的 Mie 散射系数。
Default Value: Cartesian3(21e-6, 21e-6, 21e-6)

mieScaleHeight : number

地面大气的散射方程中使用的 Mie 标高,单位为米。
Default Value: 3200.0
地面大气的散射方程中使用的 Rayleigh 散射系数。
Default Value: Cartesian3(5.5e-6, 13.0e-6, 28.4e-6)

rayleighScaleHeight : number

地面大气的散射方程中使用的 Rayleigh 标高,单位为米。
Default Value: 10000.0

saturationShift : number

应用于大气的饱和度偏移。默认值为 0.0(无偏移)。 饱和度偏移为 -1.0 表示单色。
Default Value: 0.0

Methods

static Cesium.Atmosphere.requiresColorCorrect(atmosphere)boolean

如果大气着色器需要颜色校正步骤,则返回 true
Name Type Description
atmosphere Atmosphere 要检查的大气实例
Returns:
如果大气着色器需要颜色校正步骤则为 true
需要帮助?获取答案的最快方式是在 Cesium 论坛 上向社区和团队提问。