Optional
encoderOptions: EncoderOptionsOptional
loader: DRACOLoader2Optional
loaderStatic
ExportOptional
textures: Record<string, string | number>Generates a .gltf (JSON) or .glb (binary) output from the input (Scenes or Objects)
Scenes or objects to export. Valid options:
exporter.parse( scene1, ... )
exporter.parse( [ scene1, scene2 ], ... )
exporter.parse( object1, ... )
exporter.parse( [ object1, object2 ], ... )
exporter.parse( [ scene1, object1, object2, scene2 ], ... )
Will be called when the export completes. The argument will be the generated glTF JSON or binary ArrayBuffer.
Will be called if there are any errors during the gltf generation.
Export options
Optional
extraExtensions: ((parser: GLTFWriter2) => GLTFExporterPlugin)[]
GLTF Draco Exporter
Extension of GLTFExporter2 that runs the output through gltf-transform for draco compression.