I created a material that takes a heightmap to apply displacement to a mesh and creates a normal map at runtime from the same heightmap. The material works perfectly on the Node Editor however, when added to my project it doesn’t even load throwing the following error.
Uncaught (in promise) TypeError: Cannot set property 'isExposedOnFrame' of undefined at nodeMaterialBlock.js:665 at Array.forEach (<anonymous>) at VectorMergerBlock.NodeMaterialBlock._deserializePortDisplayNamesAndExposedOnFrame (nodeMaterialBlock.js:660) at VectorMergerBlock.NodeMaterialBlock._deserialize (nodeMaterialBlock.js:653) at NodeMaterial.loadFromSerialization (nodeMaterial.js:1428) at nodeMaterial.js:1263
You can check the material here. https://nme.babylonjs.com/#JTZ2FV#6
Here is my inport code,
you can see that i comented the texture duplicates there because i was testing it out. What can I do here.?