Optional3dWhether to enable 3D Commerce Certified Viewer
OptionalbasisBasis transcoder configuration
OptionalurlDefine where to find transcoder files. It can be an external URL or a local file path.
OptionaljsOptionalwasmOptionalcameraCamera configuration
OptionaldracoDraco compression configuration
Optionaldecoders?: { Define where to find decoders. It can be an external URL or a local file path.
OptionalfallbackOptionalwasmOptionalwasmOptionaldefaultDefault number of workers to create when creating the draco compression object
OptionalenableWhether to enable drag and drop feature. When enabled, users are able to drag and drop their local model files to the viewer.
OptionalengineEngine configuration
Optionalantialiasing?: booleanWhether to enable antialiasing
OptionaldisableWhether to disable handling 'resize' event
OptionalengineInterface defining initialization parameters for Engine class
OptionaluseWhether to use NullEngine which provides support for headless version of babylon.js. This can be used in server side scenario or for testing purposes.
OptionalextensionExtension configuration
Optionalktx2Khronos Texture Extension 2 (KTX2) decoder configuration
OptionaldefaultDefault number of workers used to handle data decoding
OptionalurlDefine where to find decoders. It can be an external URL or a local file path.
OptionallightingLighting configuration
OptionalmeshoptMeshopt compression configuration
Optionaldecoder?: { Define where to find decoder file. It can be an external URL or a local file path.
OptionalrenderingRendering pipeline configuration
OptionalsceneScene configuration
Hold all configurable parameters for the viewer