Set material from a .duf shader file
Websoul
Posts: 221
Good afternoon all.
I am working on a script to set MDL materials with an popup window, it also has the option to set the materials for all the children parented to the node.
At the moment I am selecting and deselecting the materials I loop through and then open the uri with the contentmanager.
It works but it means a lot of overhead of selecting and deselecting the right materials.
I can load the .dif in an DzShaderMaterial but is there a way to assign that to the DzMaterial directly?
Or is there a different way to assign the shader to the DzMaterial?