Vertex Color As A Function?

Hello Everyone, I Recently Find out how To Create Cell Bombing as a Function and Made a Tiny little Function that does the job for more than 60 % of the textures out there but for some of them like wood or floor, i still need to use Vertex color to make them as good as the others.
I Tried to make a Function out of Vertex Color as Well to speed Up Things but I Can’t control The Booleans in the right way as if my First Channel (Red) is correct, then use the Height lerp as Alpha and if not then Continue to Other Channels.
But every time I Want to do that, It Gives me an error and say the other channels need to have input as well even if I don’t want to use more than two textures.

I’ll Grateful if some one can help me figure this out .
Thanks in Advance.

Hello @M.R.AZ,

If I’m understanding you correctly, then I believe your issue is that your graph is backwards. Your current logic sets the blue channel no matter what, checks for the green channel, then checks for the red channel. You are likely getting this error because your current setup means there always needs to be a blue channel input.

Try reversing the location of your red logic and your blue logic.

Thank You So Much for reply but i tested that as well and still the same thing, I just given up to be honest on Making Them Function and Using them normally for any Texture that is needed.
They are Cheap, So I don’t think they gonna decrease performance a lot, Time would tell.

Thx again!