The constructor of MapRenderingManager
.
Width of the frame buffer.
Height of the frame buffer.
The pixelRatio
determines the resolution of the internal
WebGLRenderTarget
. Values between 0.5 and window.devicePixelRatio
can be tried to give
good results. A value of undefined
disables the low res render pass. The value should not
be larger thanwindow.devicePixelRatio
.
Bloom effect parameters.
Outline effect parameters.
Sepia effect parameters.
Vignette effect parameters.
Return the sampling level defined during continuous rendering.
Set the level of sampling while the user interacts.
The sampling level.
The lowResPixelRatio
determines the resolution of the internal WebGLRenderTarget
. Values
between 0.5 and window.devicePixelRatio
can be tried to give good results. A value of
undefined
disables the low res render pass. The value should not be larger than
window.devicePixelRatio
.
Set a pixelRatio
for dynamic rendering (i.e. during animations). If a value is specified,
the LowResRenderPass
will be employed to used to render the scene into a lower resolution
render target, which will then be rendered to the screen.
Return whether the MSAA is enabled.
Enable or disable the MSAA. If disabled, MapRenderingManager
will use the renderer provided
in the render method to render the scene.
If true
, MSAA is enabled, disabled otherwise.
Return the sampling level defined for rendering static frames.
Set the sampling level for rendering static frames.
The sampling level.
The method to call to render the map with the MapRenderingManager
instance. It contains the
chain of sub-passes that can transfer the write and read buffers, and other sheer rendering
conditions as disabling AA when a high DPI device is in use.
The ThreeJS WebGLRenderer instance to render the map with.
The ThreeJS Scene instance containing the map objects to render.
The ThreeJS Camera instance to render the scene through.
Whether the frame to render is static or dynamic. Selects level of antialiasing.
Updating the outline rebuilds the outline materials of every outlined mesh.
outline options from the @xyzmaps/harp-datasource-protocol#Theme.
Generated using TypeDoc
The implementation of IMapRenderingManager to instantiate in MapView and manage the map rendering.