glbExport = {
const exporter = new THREE.GLTFExporter();
const glb = await new Promise(resolve =>
exporter.parse([scene, camera], resolve, {
binary: true,
truncateDrawRange: false
})
);
const blob = new Blob([glb], { type: 'model/gltf-binary' });
return DOM.download(blob, 'south-sudan-roads.glb', 'Save GLB');
}