Since most of the work done for exporting .glb and .gltf files is very similar, we should combine the code.