OverlayLightingRenderer
Defined in: lighting/src/OverlayLightingRenderer.ts:46
Draws ambient colour plus radial lights into an offscreen buffer, then multiplies that buffer over the scene.
Coloured lights tint every surface they reach. Occluders are registered in the world for custom renderers but do not cast shadows in this renderer.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OverlayLightingRenderer(
context,options?):OverlayLightingRenderer
Defined in: lighting/src/OverlayLightingRenderer.ts:59
Parameters
Section titled “Parameters”context
Section titled “context”options?
Section titled “options?”OverlayLightingRendererOptions = {}
Returns
Section titled “Returns”OverlayLightingRenderer
Methods
Section titled “Methods”destroy()
Section titled “destroy()”destroy():
void
Defined in: lighting/src/OverlayLightingRenderer.ts:121
Release every resource owned by this scene’s backend.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”render()
Section titled “render()”render(
frame):void
Defined in: lighting/src/OverlayLightingRenderer.ts:109
Synchronize the backend with the world’s current lights and view.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void