SkyAtmosphere

new SuperMap3D.SkyAtmosphere(ellipsoid)

球体边缘的大气效果。基于 Accurate Atmospheric Scattering 显示。

仅在3D场景中支持,变为2D场景时,大气会淡出

Name Type Default Description
ellipsoid Ellipsoid Ellipsoid.WGS84 optional 围绕大气的椭球体。
Example:
scene.skyAtmosphere = new SuperMap3D.SkyAtmosphere();
See:
  • Scene.skyAtmosphere

Members

brightnessShift : Number

大气的亮度变化 默认值0.0。 -1表示全黑。
Default Value: 0.0

readonlyellipsoid : Ellipsoid

获取大气所围绕的球体

hueShift : Number

调整大气的色调。 默认值为 0.0 。 1.0表示完全相反的色调。
Default Value: 0.0

saturationShift : Number

调整大气的饱和度。默认值为0.0 -1.0表示单色。
Default Value: 0.0

show : Boolean

确定是否开启大气。
Default Value: true

Methods

destroy()undefined

销毁此对象的WebGL资源。

一旦被销毁就不能被使用调用isDestroyed以外的任何函数都会导致 DeveloperError异常。
Returns:
Throws:
Example:
skyAtmosphere = skyAtmosphere && skyAtmosphere.destroy();
See:

isDestroyed()Boolean

如果对象被摧毁则返回true 否则返回false。

如果对象被摧毁,则不应使用,调用isDestroyed 以外任何函数都会导致DeveloperError 异常。
Returns:
如果对象被摧毁则为true 否则为false
See: