mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 10:56:31 +08:00
18 lines
412 B
JavaScript
18 lines
412 B
JavaScript
export default async function(I3D, { THREE }) {
|
|
const module = await import("./vendor/MeshLoader.js");
|
|
|
|
return class Impl extends I3D {
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
load(url, onLoad, onProgress, onError) {
|
|
return (new module.MeshLoader()).load(url, onLoad, onProgress, onError);
|
|
}
|
|
|
|
transform(obj) {
|
|
return obj;
|
|
}
|
|
}
|
|
}
|