Hi, I’ve noticed the ES6 docs say you could avoid importing StandardMaterial if you don’t need the default material.
By default, any mesh in a scene are using the scene defaultMaterial. With tree shaking you might not need this material so we do not force it as a dependency in the code. That said, would you need to use it, you can simply `import "@babylonjs/core/Materials/standardMaterial";` to ensure that the default material would be operationnal.
This is the case for me, but I’m not sure what to replace it with. I need to apply an image texture or colour texture (done via diffuseTexture at the moment), with nothing too fancy. With StandardMaterial I have been setting diffuseTexture.
Also, I have a large amount of PBR related files being included which I think is a result of me using “@babylonjs/loaders/glTF”. Is there a way of cutting down on these?
my output from source-map-explorer, a lot of the things I don’t think I need are on the right under shaders/materials
and for safe measure, my imports and source
https://drive.google.com/drive/folders/1DqUDzr8kcOyeg_lqAyXhBfzD4qkMuVi5?usp=sharing