Appearance
KBE3D / KBCore / Cesium / Atmosphere
类: Atmosphere
Common atmosphere settings used by 3D Tiles and models for rendering sky atmosphere, ground atmosphere, and fog.
<p> This class is not to be confused with SkyAtmosphere, which is responsible for rendering the sky. </p> <p> While the atmosphere settings affect the color of fog, see Fog to control how fog is rendered. </p>
Examples
ts
// Turn on dynamic atmosphere lighting using the sun direction
scene.atmosphere.dynamicLighting = Cesium.DynamicAtmosphereLightingType.SUNLIGHT;ts
// 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;ts
// 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属性
lightIntensity
lightIntensity:
number
The intensity of the light that is used for computing the ground atmosphere color.
rayleighCoefficient
rayleighCoefficient:
Cartesian3
The Rayleigh scattering coefficient used in the atmospheric scattering equations for the ground atmosphere.
mieCoefficient
mieCoefficient:
Cartesian3
The Mie scattering coefficient used in the atmospheric scattering equations for the ground atmosphere.
rayleighScaleHeight
rayleighScaleHeight:
number
The Rayleigh scale height used in the atmospheric scattering equations for the ground atmosphere, in meters.
mieScaleHeight
mieScaleHeight:
number
The Mie scale height used in the atmospheric scattering equations for the ground atmosphere, in meters.
mieAnisotropy
mieAnisotropy:
number
The anisotropy of the medium to consider for Mie scattering. <p> Valid values are between -1.0 and 1.0. </p>
hueShift
hueShift:
number
The hue shift to apply to the atmosphere. Defaults to 0.0 (no shift). A hue shift of 1.0 indicates a complete rotation of the hues available.
saturationShift
saturationShift:
number
The saturation shift to apply to the atmosphere. Defaults to 0.0 (no shift). A saturation shift of -1.0 is monochrome.
brightnessShift
brightnessShift:
number
The brightness shift to apply to the atmosphere. Defaults to 0.0 (no shift). A brightness shift of -1.0 is complete darkness, which will let space show through.
dynamicLighting
dynamicLighting:
DynamicAtmosphereLightingType
When not DynamicAtmosphereLightingType.NONE, the selected light source will be used for dynamically lighting all atmosphere-related rendering effects.
方法
requiresColorCorrect()
staticrequiresColorCorrect(atmosphere:Atmosphere):boolean
Returns <code>true</code> if the atmosphere shader requires a color correct step.
参数
atmosphere
Atmosphere
The atmosphere instance to check
返回
boolean
true if the atmosphere shader requires a color correct step
构造函数
构造函数
new Atmosphere():
Atmosphere
返回
Atmosphere
