How to update parameters of node material

i have node setup like this

https://nme.babylonjs.com/#JMMXP3

i am trying to access the nodel material, once i get the node, how to update my texture parameters in node material before setting to mesh

NodeMaterial.ParseFromSnippetAsync("#WA6KIC", Threedscene).then((nodeMaterial) => {

dome.mesh.material=nodeMaterial;

}

You can use smthg like this

nodeMaterial.getTextureBlocks()[0].texture = noiseTexture;

it worked thanks

Or:

nodeMaterial.getBlockByName("OrginalTexture").texture = ...;
nodeMaterial.getBlockByName("MaskedTexture").texture = ...;
1 Like

Yup way better !!! thanks @Evgeni_Popov :slight_smile:

this is not working, it is saying texture property is not there

It does work in this PG:

https://playground.babylonjs.com/#CJEJD1

1 Like