Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Renderer, camera and scene state the split borrows for one render() call.

    interface BorrowedState {
        cameraMask: number;
        autoClear: boolean;
        scale: number | undefined;
        background: Texture<unknown, TextureEventMap> | Color | null;
    }
    Index
    cameraMask: number
    autoClear: boolean
    scale: number | undefined

    undefined on WebGPURenderer, which has no transmission scale.

    background: Texture<unknown, TextureEventMap> | Color | null

    The scene's background, taken away for passes B and C: three FORCES a clear at the start of every render() whose scene has a colour background (both renderers, autoClear notwithstanding), and a texture background would be redrawn over the data. Pass A keeps it, so the frame is still cleared to the configured colour.