Hi
I have a question:
Is there a possibility to load a glb file via: SceneLoader.ImportMeshAsync
(or a different function) without loading the textures? But with the materials?
My plan is to load textures differently but my glb’s have embedded textures which I do not use.
I have tried unloading the textures like this after the load:
const bundle = await SceneLoader.ImportMeshAsync(...);
bundle.meshes.forEach((mesh) => {
const textures = mesh.material?.getActiveTextures();
if (textures) {
textures.forEach((texture) => {
texture.dispose();
});
}
});
But I do not want to load them at all.
Is there a way to do this?
Thx.