OptionalencoderOptions: EncoderOptionsOptionalloader: DRACOLoader2Protected_OptionalloaderStaticExportOptionaltextures: 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
OptionalextraExtensions: ((writer: GLTFWriter2) => GLTFExporterPlugin)[]
GLTF Draco Exporter Base
Extension of GLTFExporter2 that runs the output through gltf-transform for draco compression. Takes a PlatformIO instance as a constructor parameter, allowing use with both WebIO (browser) and NodeIO (Node.js).