interface WebGLRendererParameters {
    alpha?: boolean;
    antialias?: boolean;
    canvas?: HTMLCanvasElement | OffscreenCanvas;
    context?: WebGLRenderingContext;
    depth?: boolean;
    failIfMajorPerformanceCaveat?: boolean;
    logarithmicDepthBuffer?: boolean;
    powerPreference?: string;
    precision?: string;
    premultipliedAlpha?: boolean;
    preserveDrawingBuffer?: boolean;
    stencil?: boolean;
}

Properties

alpha?: boolean

default is false.

antialias?: boolean

default is false.

canvas?: HTMLCanvasElement | OffscreenCanvas

A Canvas where the renderer draws its output.

context?: WebGLRenderingContext
depth?: boolean

default is true.

failIfMajorPerformanceCaveat?: boolean

default is false.

logarithmicDepthBuffer?: boolean

default is false.

powerPreference?: string

Can be "high-performance", "low-power" or "default"

precision?: string

shader precision. Can be "highp", "mediump" or "lowp".

premultipliedAlpha?: boolean

default is true.

preserveDrawingBuffer?: boolean

default is false.

stencil?: boolean

default is true.