Atmosphere

new Cesium.Atmosphere()

3D 瓦片和模型用于渲染天空大气、地面大气和雾的常见大气设置。

不要将此类与负责渲染天空的 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

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

有效值介于 -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
地面大气的大气散射方程中使用的瑞利散射系数。
Default Value: Cartesian3(5.5e-6, 13.0e-6, 28.4e-6)

rayleighScaleHeight : number

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

saturationShift : number

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

Methods

static Cesium.Atmosphere.requiresColorCorrect(atmosphere)boolean

Returns true if the atmosphere shader requires a color correct step.
Name Type Description
atmosphere Atmosphere The atmosphere instance to check
Returns:
true if the atmosphere shader requires a color correct step
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.