Hi @Evgeni_Popov,
I am using this NME https://nme.babylonjs.com/#KWJ4HI#3 .
Playground sample is https://playground.babylonjs.com/#HQ4P5G#3
If I use this method BABYLON.NodeMaterial.ParseFromSnippetAsync to load NodeMaterial, it is working fine.
But if I use Generate Code in NME and use that code in my project, I am getting error as below.
Thanks
Gopinath Vellingiri
You should not save the material after the instancecolor
block has been converted to an attribute, as the system does not recognize “instancecolor” as a system attribute when creating the material from source code.
You should save the material when the instancecolor
is still a Color4
block and programmatically turn this block into an attribute:
http://localhost:1338/Playground/index-local.html#HQ4P5G#6
2 Likes