Hi, i use the es6 modules of BabylonJS and Webpack to bundle my app. In my code i use only the PBRMaterial but the StandardMaterial is still included in my bundle. The StandardMaterial is rather big therefore i would like to remove it.
I analyzed the bundle and the StandardMaterial is imported from BabylonJS itself.
I use SSAO and therfore i have to enable the GeometryBufferRenderer. There is alot of material specific code here: Babylon.js/geometryBufferRenderer.ts at master · BabylonJS/Babylon.js · GitHub
It would be nice to refactor this somehow. If someone only uses the StandardMaterial for exmample he would also get the PBRMaterial.
In another app i also use the GLTF export. The export also imports the StandardMaterial and other Materials. Here it would be also nice to make the support for different materials optional.