Serialize a scene to a single binary glTF 2.0 (.glb) Blob.
Reads the scene's meshes, lights, camera, materials and animation groups. Image pixels are
read back from the GPU and embedded as PNG. Resolves to a Blob of MIME type
"model/gltf-binary". Treats the scene as read-only: every piece of scene state is read
synchronously before the first await, so the render loop cannot change the result while the
export is in flight. Valid before or after registerScene, but after addToScene (which sets
parent links). Under a null engine, textured slots are omitted.
Geometry comes from retained CPU arrays. GPU-only updates such as updateMeshPositions
and updateMeshNormals leave those arrays stale; use updateMeshGeometry or
resizeMeshGeometry when the updated geometry must export.
Unsupported content is omitted or converted according to the limitations and diagnostics in
docs/lite/architecture/60-gltf-exporter.md.
Serialize a scene to a single binary glTF 2.0 (.glb) Blob.
Reads the scene's meshes, lights, camera, materials and animation groups. Image pixels are read back from the GPU and embedded as PNG. Resolves to a Blob of MIME type "model/gltf-binary". Treats the scene as read-only: every piece of scene state is read synchronously before the first
await, so the render loop cannot change the result while the export is in flight. Valid before or afterregisterScene, but afteraddToScene(which sets parent links). Under a null engine, textured slots are omitted. Geometry comes from retained CPU arrays. GPU-only updates such asupdateMeshPositionsandupdateMeshNormalsleave those arrays stale; useupdateMeshGeometryorresizeMeshGeometrywhen the updated geometry must export.Unsupported content is omitted or converted according to the limitations and diagnostics in
docs/lite/architecture/60-gltf-exporter.md.