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
应用于大气的亮度偏移。默认值为 0.0(无偏移)。
亮度偏移为 -1.0 表示完全黑暗,将使太空可见。
-
Default Value:
0.0
dynamicLighting : DynamicAtmosphereLightingType
当不为 DynamicAtmosphereLightingType.NONE 时,选定的光源将
用于动态照亮所有与大气相关的渲染效果。
-
Default Value:
DynamicAtmosphereLightingType.NONE
应用于大气的色调偏移。默认值为 0.0(无偏移)。
色调偏移为 1.0 表示可用色调的完整旋转。
-
Default Value:
0.0
用于计算地面大气颜色的光照强度。
-
Default Value:
10.0
Mie 散射需要考虑的介质各向异性。
有效值介于 -1.0 和 1.0 之间。
-
Default Value:
0.9
mieCoefficient : Cartesian3
地面大气的散射方程中使用的 Mie 散射系数。
-
Default Value:
Cartesian3(21e-6, 21e-6, 21e-6)
地面大气的散射方程中使用的 Mie 标高,单位为米。
-
Default Value:
3200.0
rayleighCoefficient : Cartesian3
地面大气的散射方程中使用的 Rayleigh 散射系数。
-
Default Value:
Cartesian3(5.5e-6, 13.0e-6, 28.4e-6)
地面大气的散射方程中使用的 Rayleigh 标高,单位为米。
-
Default Value:
10000.0
应用于大气的饱和度偏移。默认值为 0.0(无偏移)。
饱和度偏移为 -1.0 表示单色。
-
Default Value:
0.0
Methods
如果大气着色器需要颜色校正步骤,则返回
true。
| Name | Type | Description |
|---|---|---|
atmosphere |
Atmosphere | 要检查的大气实例 |
Returns:
如果大气着色器需要颜色校正步骤则为 true
