How to change color diffuse Iray shader?
x-ecutionner
Posts: 13
hello, my question is: how to change the color in the runtime please? because the method which consists in changing the color of an hdrp / LIT shader ("_BaseColor") does not work on Daz / IrayUber shaders. Please, your help would be welcome. Thank you.
(I also try ("_Diffuse" And "_DiffuseColor)
Comments
Could you just change the color in Daz Studio and then export the item with Daz to Unity bridge.
Sorry, I am not that advanced, yet.
On both the metal and specular workflow the property "_Diffuse" is the one being multiplied with the "_DiffuseMap" texture to produce the final base color that's plugged into the master node. That's not always the best way to tint something, but it is similar to how it works in Daz Studio. Can you send upload a screenshot showing an asset you're having trouble with (both w/o any modifications and with the tint you're trying to get)? I'd be happy to modify the base shaders with a supplemental flow for a color transition using other techniques provided the current one doesn't work.
It would be something like material.SetColor("_Diffuse",new Color(1,0,0,1);); //makes the material red
I have already tried this, but it does not work.
I'm confused, it actually works ... I don't understand why it didn't work before. No doubt a fault on my part, thank you for taking the time to answer me. My problem is solved. thank you