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
.
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
.
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
.
Return whether the MSAA is enabled.
Enable or disable the MSAA. If disabled, MapRenderingManager
will use the renderer provided
in the MapRenderingManager.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.
The resize function to call on resize events to resize the render targets. It shall include
the resize methods of all the sub-passes used in MapRenderingManager
.
New width to use.
New height to use.
Generated using TypeDoc
The implementation of IMapRenderingManager to instantiate in MapView and manage the map rendering.