In CAD system, we used ‘PBRMaterial’ and enabled ‘forceCompilation’ option. That seemed to help while loading multiple meshes as ‘effects’ (shaders) may be reused internally.
Now, we use a custom NodeMaterial created using NME that’s using PBR blocks internally.
We create & assign it for each mesh the same way we did while using Babylon’s PBR material.
By doing so, we noticed that model loading is slower. I suspect that it may be due to multiple shaders (effects) being created.
- Would forceCompilation option have any favorable impact on custom ‘NodeMaterial’ similar to PBRMaterial?
- Is there any API to track on how many unique shaders (effects) are actually created?
Thanks in advance.