Reads a glTF 2.0 asset: a binary .glb, or a .gltf JSON whose buffers
are embedded base64 data URIs. Every triangle primitive of every mesh
instanced by the default scene becomes one mesh (node transforms composed
down the hierarchy, so placements are preserved); other primitive modes
throw, except TRIANGLE_STRIP and TRIANGLE_FAN, which are expanded.
When the container is malformed, a buffer is external (load it
with importGLTFAsync and a resolveBuffer callback), a primitive
is Draco-compressed (decode it with importGLTFAsync) or not a
triangle mesh, or the file holds no triangle meshes.
Reads a glTF 2.0 asset: a binary
.glb, or a.gltfJSON whose buffers are embedded base64 data URIs. Every triangle primitive of every mesh instanced by the default scene becomes one mesh (node transforms composed down the hierarchy, so placements are preserved); other primitive modes throw, exceptTRIANGLE_STRIPandTRIANGLE_FAN, which are expanded.