Bloom effect parameters.
The level of MSAA sampling while the user interacts. It should be a low level so that the MSAA does not impact the framerate.
Optional
lowSet 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.
Enable or disable the MSAA. If disabled, MapRenderingManager
will use the renderer provided
in the render method to render the scene.
Outline effect parameters.
Sepia effect parameters.
The higher level of MSAA sampling for a last frame to render, when the camera is static. It can be a high level, providing high quality renders requiring few tens of seconds, since no frame is expected to immediately follow in the requestAnimationFrame. It is still limited by zooming, since zooming is not requestAnimationFrame-based and can lead to stuttering if the render time is too long, except on desktop Mac, where mouse interaction already implements some damping. Higher levels of sampling may lead to noticeable color banding, visible in areas with a slight color gradient, like large areas or the sky background.
Vignette effect parameters.
The method to call to render the map. This method depends on an isStaticFrame
boolean that
notifies the pass manager to switch to a higher level render quality for the last frame.
The ThreeJS WebGLRenderer instance to render the map with.
Whether the frame to render is static or dynamic. Selects level of antialiasing.
Optional
time: numberOptional time argument provided by the requestAnimationFrame, to pass to sub-passes.
The resize method to extend in Pass implementations to resize the render targets to match the size of the visible canvas. It should be called on resize events.
Width to resize to.
Height to resize to.
Updating the outline rebuilds the outline materials of every outlined mesh.
outline options from the @xyzmaps/harp-datasource-protocol#Theme.
Generated using TypeDoc
The
MapRenderingManager
class manages the map rendering (as opposed to text) by dispatching the render call to a set of internal Pass instances.Remarks
It provides an API to modify some of the rendering processes like the antialiasing behaviour at runtime.