Appearance
KBE3D / KBCore / Cesium / SkyAtmosphere
类: SkyAtmosphere
An atmosphere drawn around the limb of the provided ellipsoid. Based on Display of The Earth Taking Into Account Atmospheric Scattering. <p> This is only supported in 3D. Atmosphere is faded out when morphing to 2D or Columbus view. </p>
示例
ts
scene.skyAtmosphere = new Cesium.SkyAtmosphere();参数
The ellipsoid that the atmosphere is drawn around.
属性
show
show:
boolean
Determines if the atmosphere is shown.
perFragmentAtmosphere
perFragmentAtmosphere:
boolean
Compute atmosphere per-fragment instead of per-vertex. This produces better looking atmosphere with a slight performance penalty.
atmosphereLightIntensity
atmosphereLightIntensity:
number
The intensity of the light that is used for computing the sky atmosphere color.
atmosphereRayleighCoefficient
atmosphereRayleighCoefficient:
Cartesian3
The Rayleigh scattering coefficient used in the atmospheric scattering equations for the sky atmosphere.
atmosphereMieCoefficient
atmosphereMieCoefficient:
Cartesian3
The Mie scattering coefficient used in the atmospheric scattering equations for the sky atmosphere.
atmosphereRayleighScaleHeight
atmosphereRayleighScaleHeight:
number
The Rayleigh scale height used in the atmospheric scattering equations for the sky atmosphere, in meters.
atmosphereMieScaleHeight
atmosphereMieScaleHeight:
number
The Mie scale height used in the atmospheric scattering equations for the sky atmosphere, in meters.
atmosphereMieAnisotropy
atmosphereMieAnisotropy:
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.
ellipsoid
readonlyellipsoid:Ellipsoid
Gets the ellipsoid the atmosphere is drawn around.
方法
isDestroyed()
isDestroyed():
boolean
Returns true if this object was destroyed; otherwise, false. <br /><br /> If this object was destroyed, it should not be used; calling any function other than <code>isDestroyed</code> will result in a DeveloperError exception.
返回
boolean
true if this object was destroyed; otherwise, false.
destroy()
destroy():
void
Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object. <br /><br /> Once an object is destroyed, it should not be used; calling any function other than <code>isDestroyed</code> will result in a DeveloperError exception. Therefore, assign the return value (<code>undefined</code>) to the object as done in the example.
返回
void
示例
ts
skyAtmosphere = skyAtmosphere && skyAtmosphere.destroy();构造函数
构造函数
new SkyAtmosphere(
ellipsoid?:Ellipsoid):SkyAtmosphere
参数
ellipsoid?
返回
SkyAtmosphere
