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
When not DynamicAtmosphereLightingType.NONE, the selected light source will
用于动态照明所有与大气有关的渲染效果.
-
Default Value:
DynamicAtmosphereLightingType.NONE
气温变化适用于大气。 默认为 0.0( 无移位) .
变化为1.0表示可用色调的完全旋转.
-
Default Value:
0.0
用于计算地面大气颜色的光的强度.
-
Default Value:
10.0
介质的异同位素来考虑小米的散射.
有效值在-1.0至1.0之间.
-
Default Value:
0.9
mieCoefficient : Cartesian3
地面大气散射方程中使用的米埃散射系数.
-
Default Value:
Cartesian3(21e-6, 21e-6, 21e-6)
大气散射方程中用于地面大气的米氏度高度,以米计.
-
Default Value:
3200.0
rayleighCoefficient : Cartesian3
大气散射方程中用于地面大气的雷利散射系数.
-
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
Returns
true if the atmosphere shader requires a color correct step.
| Name | Type | Description |
|---|---|---|
atmosphere |
Atmosphere | 要检查的氛围实例 |
Returns:
如果大气层遮蔽器需要正确的颜色步骤, 则为真