Internal
rendererInterfaces through which each ViewObject shows/hides/highlights/selects/xrays/colorizes its SceneObject within the Renderer that's configured on its Viewer.
Internal
Attaches a SceneModel to this Renderer.
This method attaches various hooks to the elements within the SceneModel, through which they can upload state updates to the Renderer.
Then, when we make any state updates to those components, they will upload the updates into the Renderer.
You must first attach a View with Renderer.attachView before you can attach a SceneModel.
void
Internal
Attaches a @xeokit/viewer!View to this Renderer.
The Renderer will then begin rendering each SceneModel previously or subsequently created with Scene.createModel , for the new View.
You can only attach as many Views as indicated in Capabilities.maxViews, as returned by Renderer.getCapabilities.
You must attach a View before you can attach a SceneModel.
The View to attach.
void
Internal
Clears the renderer for the given view.
Handle to the View, returned earlier by Renderer.attachView.
void
Internal
Detaches a SceneModel from this Renderer.
Detaches and destroys the @xeokit/scene!RendererModel, @xeokit/scene!RendererObject and @xeokit/scene!RendererMesh, @xeokit/scene!RendererTexture instances that were attached in @xeokit/viewer!Renderer.attachSceneModel.
The SceneModel
void
Internal
Detaches the given @xeokit/viewer!View from this Renderer.
The Renderer will then cease rendering for that View.
The View to detach.
void
Internal
Detaches the Viewer that is currently attached, if any.
void
Internal
Gets if a new frame needs to be rendered for the given View.
Handle to the View, returned earlier by Renderer.attachView.
boolean
Internal
Picks a ViewerObject within a View.
Handle to the View, returned earlier by Renderer.attachView.
Picking parameters.
Optional
pickResult: PickResultPicking results, when caller wants to manage them externally.
Internal
Renders a frame for a View.
Handle to the View, returned earlier by Renderer.attachView.
Rendering params.
Optional
force?: booleanTrue to force a render, else only render if needed.
Internal
Enable/disable edge enhancement for the given View.
Handle to the View, returned earlier by Renderer.attachView.
Whether to enable or disable edges for the View.
void
Internal
Indicates that the renderers needs to render a new frame for the given View.
Optional
viewIndex: numberHandle to the View, returned earlier by Renderer.attachView.
void
Internal
Triggers a rebuild of the shaders within this Renderer for the given View.
Handle to the View, returned earlier by Renderer.attachView.
void
Internal
Enable/disable physically-based rendering (PBR) for the given View.
Handle to the View, returned earlier by Renderer.attachView.
Whether to enable or disable PBR for the View.
void
Internal
Enable/disable scaleable ambient obscurrance SAO for the given View.
Handle to the View, returned earlier by Renderer.attachView.
Whether to enable or disable SAO for the View.
void
Internal
Enable/disable rendering of transparent objects for the given View.
Handle to the View, returned earlier by Renderer.attachView.
Whether to enable or disable transparent objects for the View.
void
Defines the contract for the rendering strategy used internally within a Viewer.
A Viewer uses an implementation of this internally to allocate and render geometry and materials using an available browser 3D graphics API, such as WebGL or WebGPU.
Usage