AbstractProtected_The clear color of the renderer.
Protected_Cached light data to avoid GC pressure.
Protected_Global quality settings.
ReadonlycontextPer-instance bundle of DeviceCaps/ShaderRegistry/AssetManager -- see RendererContext.
OptionalonOptional callback triggered when the GPU context is lost.
The global post processing volume/group.
Abstract ReadonlytypeThe type of the renderer.
Gets the clear color of the renderer.
Whether the underlying GPU context has been lost.
Gets the global quality settings of the renderer.
Applies the previous frame's Hierarchical-Z occlusion culling results (if ready) by setting
occlusionCulled on the tested objects. Called once per frame, before FrustumCuller.cull().
WebGPU-only (see docs/adr/0008-hzb-occlusion-culling-webgpu-only.md); a no-op on WebGL1/WebGL2
and whenever occlusion culling isn't enabled.
Destroys the renderer and releases its resources.
Extracts all lights from the scene for rendering.
The scene to extract lights from.
An object containing all extracted light data.
AbstractinitializeInitializes the renderer.
Optionalattributes: Record<string, unknown>Optionalconfig: EngineOptionsAbstractrenderAbstractsetSets the active render target for off-screen rendering. If null, the renderer targets the screen/post-processing buffer.
The target to render into.
OptionalactiveCubeFace: number
Optional. Which face (0-5) of the RenderTargetCube to render into.
AbstractsetSets the size of the render viewport.
Base class for all renderer implementations.
Backends are expected to implement defensive rendering strategies to prevent "silent failures":