I am trying to build a blend shader that blends together 4 different tileable materials through a RGB texture or vertex color. Here it is working: Right now its all hard coded into the shader and it works fine, but I want to organize it so I can use Material Instances. Here is my issue, I want to be able use prepacked…
You won't be able to set them up in the way you want, but it is possible to enable/disable them, base on a scalar. Currently I'm working on something similar... So first you need a scalar to tell it how much layers you want. Then I would use an another function, and inside that, there would be some 'if"s, and based on…