Does anyone know of a mobile shader that has the effect of taking two materials and blending them together based on vertex colour? You can use this for things like blending a dirt road into grass.
Black vertex -
Diffuse A
Normal A
White vertex -
Diffuse B
Normal B
If there aren’t any around I might have a shot at hacking one together.
Okay, here’s what I have so far. I created a strumpy shader and then hacked parts of it into the Bump Spec shader that comes with Unity. Tested on device and it seems to run fine. If you are shader savvy and feel that this shader needs improvement, by all means feel free to fix it up
You define the textures on your model by painting vertex colours onto it. In this case; black for grass, white for pavement.
hello
i m trying to animate wrinkle map on cloth.
your shader is what i m looking for, but i miss one feature that i miss to achieve , not sure if it s possible in unity, you can see on that video they are blending several material with normal map and diffuse, the result is quite convincing, any idea how they made those effect?
I know this is an old post…but did you update this shader…it’s just what i need…only don’t understand how you get the blending on the vertex collor…could you shortly explain??
could you also make it…that it takes it’s position from a image with coloring