Optionalalphadefault is false.
Optionalantialiasdefault is false.
OptionalcanvasA Canvas where the renderer draws its output.
OptionalclearClear alpha, default is 1.0
OptionalclearClear color, default is '#f0fff0'
OptionalcontextA WebGL Rendering Context. (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) Default is null
Optionaldepthdefault is true.
Optionalfaildefault is false.
OptionallocalWhether to enable local clipping, default is false
Optionallogarithmicdefault is false.
OptionaloutputOutput color space
OptionalpixelPixel ratio, default is window.devicePixelRatio
OptionalpowerCan be "high-performance", "low-power" or "default"
Optionalprecisionshader precision. Can be "highp", "mediump" or "lowp".
Optionalpremultiplieddefault is true.
Optionalpreservedefault is false.
OptionalshadowShadow map options, default is { enabled: false, autoUpdate: true, needsUpdate: false, softShadow: undefined, type: PCFSoftShadowMap }
Optionalstencildefault is false.
OptionaltoneToneMapping type, default is NoToneMapping
OptionaltoneToneMapping exposure, default is 1.0
OptionalviewportRendering viewport, the div that will contain the render canvas, default is document.body
WebGL renderer options
Export
SceneRendererOptions
Date
2023.12.26
Author
yisky