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.
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.
User data name attribute assigned to created mesh.
User data name attribute assigned to created mesh.
Returns the current atmosphere status, enabled or disabled.
Use this method to change the setup in runtime without defining corresponding theme setup.
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.
Disposes allocated resources.
Sets the atmosphere depending on the {@link @here/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 {@link @here/harp-datasource-protocol#Theme} instance.
Check if map anchors have already atmosphere effect added.
MapAnchors to check.
Generated using TypeDoc
Class that provides MapView's atmospheric scattering effect.