SkyAtmosphere

external class SkyAtmosphere(val ellipsoid: Ellipsoid = definedExternally)(source)

An atmosphere drawn around the limb of the provided ellipsoid. Based on Display of The Earth Taking Into Account Atmospheric Scattering.

This is only supported in 3D. Atmosphere is faded out when morphing to 2D or Columbus view.

scene.skyAtmosphere = new SkyAtmosphere();

See also

Constructors

Link copied to clipboard
constructor(ellipsoid: Ellipsoid = definedExternally)

Properties

Link copied to clipboard

The intensity of the light that is used for computing the sky atmosphere color.

Link copied to clipboard

The anisotropy of the medium to consider for Mie scattering.

Link copied to clipboard

The Mie scattering coefficient used in the atmospheric scattering equations for the sky atmosphere.

Link copied to clipboard

The Mie scale height used in the atmospheric scattering equations for the sky atmosphere, in meters.

Link copied to clipboard

The Rayleigh scattering coefficient used in the atmospheric scattering equations for the sky atmosphere.

Link copied to clipboard

The Rayleigh scale height used in the atmospheric scattering equations for the sky atmosphere, in meters.

Link copied to clipboard

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.

Link copied to clipboard

The ellipsoid that the atmosphere is drawn around. Default value - Ellipsoid.WGS84

Link copied to clipboard

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.

Link copied to clipboard

Compute atmosphere per-fragment instead of per-vertex. This produces better looking atmosphere with a slight performance penalty.

Link copied to clipboard

The saturation shift to apply to the atmosphere. Defaults to 0.0 (no shift). A saturation shift of -1.0 is monochrome.

Link copied to clipboard

Determines if the atmosphere is shown.

Functions

Link copied to clipboard
fun destroy()

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.

Link copied to clipboard

Returns true if this object was destroyed; otherwise, false.