Documentation - v20.0.0-dev
    Preparing search index...

    Options of Renderer.create.

    interface RendererOptions {
        backend?: BackendPreference;
        canvas: HTMLCanvasElement;
        scene: Scene;
    }
    Index

    Properties

    Properties

    The backend wanted, by default the scene's setting (settings.renderer.backend): auto, WebGPU when the browser can draw with it, else WebGL2; webgpu falls back to WebGL2 too.

    canvas: HTMLCanvasElement

    Where it draws, the caller's: placed and styled by it. A canvas keeps the backend it first drew with: drawing with another one needs another canvas.

    scene: Scene

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