Optional
assetOptions for the asset manager.
Optional
cameraOptional
canvasThe canvas element to use for rendering. Only one of container and canvas must be specified.
Optional
containerThe container for the canvas. A new canvas will be created in this container. Only one of container and canvas must be specified.
Optional
debugOptional
dropzoneAdd the dropzone plugin to the viewer, allowing to drag and drop files into the viewer over the canvas/container. Set to true/false to enable/disable the plugin, or pass options to configure the plugin. Assuming true if options are passed.
- false
Optional
forceZPrepassForce z-prepass even if there are transparent/transmissive objects with render to depth buffer enabled.
Optional
isuse msaa instead
Optional
loadOptional
msaaUse MSAA.
Optional
onOptional
pluginsAdd initial plugins.
Optional
renderOptional
rgbmUse Uint8 RGBM HDR Render Pipeline. Provides better performance with post-processing. RenderManager Uses Half-float if set to false.
Optional
screenThe fragment shader snippet to render on screen.
Optional
tonemapTonemapPlugin is added to the viewer if this is true.
true
Optional
useGBufferuse zPrepass instead
Optional
useuse rgbm instead
Optional
zUse rendered gbuffer as depth-prepass / z-prepass. (Requires DepthBufferPlugin/GBufferPlugin) todo: It will be disabled when there are any transparent/transmissive objects with render to depth buffer enabled.
Generated using TypeDoc
Options for the ThreeViewer creation.