As I know this class or function is part of the @babylonjs/core/Materials.
And I think it should not be in build if I dont use it directly. Is it correct?
After simple research I found what function body inclunde when I use: import '@babylonjs/loaders/glTF/2.0/glTFLoader';
If remove this import then function body is empty but still here:
Not quite. Currently I have a task to create scene with black object on transparent background. Something like wires. It fully black and not require any materials.
I think possible found other technical visulization tasks where we not need materals.
But thank you for answer. I understood the general idea.
In that case, due to “historical” development decisions - we didn’t want to make the material class abstract after already using it as a non-abstract JS class.