new SkyAtmosphere(ellipsoid)
球体边缘的大气效果。 基于Accurate Atmospheric Scattering显示。
仅在三维场景中支持,变为二维场景时,大气会淡出。
| Name | Type | Default | Description |
|---|---|---|---|
ellipsoid |
Ellipsoid | Ellipsoid.WGS84 |
可选
围绕大气的椭球体。 |
Example
scene.skyAtmosphere = new SuperMap3D.SkyAtmosphere();
Members
-
brightnessShiftNumber
-
大气的亮度变化 默认值0.0。 -1表示全黑。
- Default Value: 0.0
readonly ellipsoidEllipsoid
获取大气所围绕的球体
hueShiftNumber
调整大气的色调。 默认值为 0.0 。 1.0表示完全相反的色调。
- Default Value: 0.0
saturationShiftNumber
调整大气的饱和度。默认值为0.0 -1.0表示单色。
- Default Value: 0.0
showBoolean
确定是否开启大气。
- Default Value: true
Methods
-
destroy(){undefined}
-
销毁此对象的WebGL资源。
一旦被销毁就不能被使用调用isDestroyed以外的任何函数都会导致DeveloperError异常。Throws:
-
该对象被销毁即调用了destroy()
- Type
- DeveloperError
Returns:
Type Description undefined Example
skyAtmosphere = skyAtmosphere && skyAtmosphere.destroy(); -
-
isDestroyed(){Boolean}
-
如果对象被摧毁则返回true 否则返回false。
如果对象被摧毁,则不应使用,调用isDestroyed以外任何函数都会导致DeveloperError异常。Returns:
Type Description Boolean 如果对象被摧毁则为 true否则为false。