Creates and adds Atmosphere
effects to the scene.
The MapAnchors instance where the effect will be added.
The camera used to render entire scene.
The geo-projection used to transform geo coordinates to cartesian space.
The capabilities of the WebGL renderer.
Optional
m_updateCallback: (() => void)The optional callback to that should be called whenever atmosphere
configuration changes, may be used to inform related components (MapView
) to redraw.
The optional atmosphere configuration variant enum [[AtmosphereVariant]], which denotes where the atmosphere scattering effect should be applied, it may be ground or sky atmosphere only or most realistic for both, which is chosen by default.
The optional material variant to be used, mainly for testing and tweaking purposes.
Currently works only with globe projection.
Static
GroundUser data name attribute assigned to created mesh.
Static
SkyUser data name attribute assigned to created mesh.
Returns the current atmosphere status, enabled or disabled.
Allows to enable/disable the atmosphere effect, regardless of the theme settings.
Use this method to change the setup in runtime without defining corresponding theme setup.
A boolean that specifies whether the atmosphere should be enabled or disabled.
Sets the atmosphere depending on the @xyzmaps/harp-datasource-protocol#Theme instance provided.
This function is called when a theme is loaded. Atmosphere is added only if the theme contains a atmosphere definition with a:
color
property, used to set the atmosphere color.A @xyzmaps/harp-datasource-protocol#Theme instance.
Static
isCheck if map anchors have already atmosphere effect added.
MapAnchors to check.
Generated using TypeDoc
Class that provides MapView's atmospheric scattering effect.