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)[]
GLTFExporter2 is an improved version of the three.js GLTFExporter with support for: