If bundle is set to false, the worker will not bundle code,
and assume that it has already been bundled. An undefined
value will be treated by default as true.
Clean up any state from the last run.
Transform a model from code to a GLTF document.
Convert an in-memory GLTF document to a URL encoded blob.
The worker is where everything comes together. It handles worker communication, execution of a model and exporting the final scene as a GLTF-Transform Document or URL encoded Blob.
This is an isomorphic module that can be used directly as a JavaScript or TypeScript module. It can be imported as a web worker, and defines a set of interfaces for communication in that case.