Hey guys i am trying to use the grid node material json in my local project.
https://nme.babylonjs.com/#I4DJ9Z
Saved as a json file
https://www.babylontoolkit.com/files/data/gridmat_01.json
I load the material like so:
const loadUrl:string = "https://www.babylontoolkit.com/files/data/gridmat_01.json";
BABYLON.NodeMaterial.ParseFromFileAsync(this.transform.name + ".NodeMaterial", loadUrl, this.scene).then((nm)=>{
this.m_nodeMaterial = nm;
console.warn("Loaded NME: " + this.transform.name);
console.log(this.m_nodeMaterial);
});
Now for some reason it load fine on the playground, but it get a view undeclared error in my local project.
I can load the Ocean example shader just fine in local project…
https://playground.babylonjs.com/#9B0DNU#36
Any body got any clues as to why… ???