Optional
3dWhether to enable 3D Commerce Certified Viewer
Optional
basisBasis transcoder configuration
Optional
urlDefine where to find transcoder files. It can be an external URL or a local file path.
Optional
jsOptional
wasmOptional
cameraCamera configuration
Optional
dracoDraco compression configuration
Optional
decoders?: { Define where to find decoders. It can be an external URL or a local file path.
Optional
fallbackOptional
wasmOptional
wasmOptional
defaultDefault number of workers to create when creating the draco compression object
Optional
enableWhether to enable drag and drop feature. When enabled, users are able to drag and drop their local model files to the viewer.
Optional
engineEngine configuration
Optional
antialiasing?: booleanWhether to enable antialiasing
Optional
disableWhether to disable handling 'resize' event
Optional
engineInterface defining initialization parameters for Engine class
Optional
useWhether to use NullEngine which provides support for headless version of babylon.js. This can be used in server side scenario or for testing purposes.
Optional
extensionExtension configuration
Optional
ktx2Khronos Texture Extension 2 (KTX2) decoder configuration
Optional
defaultDefault number of workers used to handle data decoding
Optional
urlDefine where to find decoders. It can be an external URL or a local file path.
Optional
lightingLighting configuration
Optional
meshoptMeshopt compression configuration
Optional
decoder?: { Define where to find decoder file. It can be an external URL or a local file path.
Optional
renderingRendering pipeline configuration
Optional
sceneScene configuration
Hold all configurable parameters for the viewer