Files
Mickael d30c3120b6 feature (plugins): expand and migrate plugin - #803
* chore (dockerfile): cleanup dockerfile

* feature (plugin): extend plugin interface

* chore (docker): setup new Dockerfile

* chore (dockerfile): update dockerfile
2025-01-13 15:41:04 +11:00

20 lines
496 B
JavaScript

export default async function(I3D, { THREE }) {
const module = await import("./vendor/GLTFLoader.js");
return class Impl extends I3D {
constructor() {
super();
}
load(url, onLoad, onProgress, onError) {
return new module.GLTFLoader().load(url, onLoad, onProgress, onError);
}
transform(gltf) {
const mesh = gltf.scene;
mesh.animations = gltf.animations;
return mesh;
}
}
}