Rendering to two canvases (HTMLCanvasElement) using one shared luma.gl
Device.
The example uses
makeAnimationLoop()so its lifecycle matches the rest of the examples.Each frame draws into two
PresentationContexts backed by the same sharedDevice.Resize the window to see each
PresentationContexttrack the canvas size change automatically.On WebGL the shared device renders through an
OffscreenCanvas, then presents into the visible canvases.
Initializing device...