Im trying to create a layered shader in UDK. In Maya I have a repeatable texture brick wall as my base and a damage/dirt pass shader. My issues is that I need to assign multiple materials to one object in UDK. I have been able to create multiple material set but I can get it to work on the entire object. Lastly I need to be able to overlay one material over the other.
If you need screens of more explanation please let me know.
Replies
IF your talking about layer shader that you paint with vertex colour, juse use 1 material ID, and make the shader that can do that in udk.
The masking behavior is most easily carried out with a lerp node. You'll need one per material channel that is altered in the upper layer.
Just take teh diffuse channel as an example.
Create a lerp node. Plug in your base texture to A, and your damaged texture to B, then your mask to Alpha. Plug the output of the lerp into the diffuse of the shader.
If the mask is greyscale, you'll get even transitions. if its color, you'll have a mask per color channel.