Documentation - v19.16.0-dev
    Preparing search index...

    Options of Renderer.create.

    interface RendererOptions {
        backend?: BackendPreference;
        container?: HTMLElement;
        scene: Scene;
    }
    Index

    Properties

    The backend wanted (see detectBackend): auto by default, WebGPU when the browser grants an adapter, else WebGL2; webgl2 forces WebGL2.

    container?: HTMLElement

    The page element the renderer draws in: it puts its canvas there, and replaces it when the backend changes (a canvas drawn with WebGL2 cannot draw with WebGPU, and back). Without one, the caller places Renderer.canvas, again after each Renderer.setBackend.

    scene: Scene

    The objects drawn, the only ones: their settings (Renderer.settings) are the renderer's too.