Optional
alphadefault is false.
Optional
antialiasdefault is false.
Optional
canvasA Canvas where the renderer draws its output.
Optional
clearClear alpha, default is 1.0
Optional
clearClear color, default is '#f0fff0'
Optional
contextA WebGL Rendering Context. (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) Default is null
Optional
depthdefault is true.
Optional
faildefault is false.
Optional
localWhether to enable local clipping, default is false
Optional
logarithmicdefault is false.
Optional
outputOutput color space
Optional
pixelPixel ratio, default is window.devicePixelRatio
Optional
powerCan be "high-performance", "low-power" or "default"
Optional
precisionshader precision. Can be "highp", "mediump" or "lowp".
Optional
premultiplieddefault is true.
Optional
preservedefault is false.
Optional
shadowShadow map options, default is { enabled: false, autoUpdate: true, needsUpdate: false, softShadow: undefined, type: PCFSoftShadowMap }
Optional
stencildefault is false.
Optional
toneToneMapping type, default is NoToneMapping
Optional
toneToneMapping exposure, default is 1.0
Optional
viewportRendering viewport, the div that will contain the render canvas, default is document.body
WebGL renderer options
Export
SceneRendererOptions
Date
2023.12.26
Author
yisky