Hi all! We are doing some tree-shaking of our babylon bundle, so doing specific imports for required classes, etc. When I import the NodeMaterial class like this
import { NodeMaterial } from “@babylonjs/core/Materials/Node/nodeMaterial”;
and then use this method:
NodeMaterial.ParseFromSnippetAsync("#CA2RY8#21", RFS.scene).then(
nodeMaterial => {
m.material = nodeMaterial;
}
);
I get this error in console:
**Uncaught (in promise) Build of NodeMaterial failed:**
input vector from block worldPos[TransformBlock] is not connected and is not optional.
input rgba from block FragmentOutput[FragmentOutputBlock] is not connected and is not optional.
But when I’m using the Babylon namespace and not the specific import, there are no errors. Any ideas?