Vertex Colours on iPhone

Hi, I’m after a shader that will allow me to blend between two sets of vertex colours, ie set a vertex colour to white, set one to black and it’ll create a gradient between them. This will have to work on iOS platforms. Can anyone point me in the right direction?

Thanks very much for any assistance.

You can’t get two sets of vertex colors into Unity. You’ll have to shove a second set into another attribute (probably tangents).

I don’t know what this means.

Have to be careful about tangents, because they’re normalized (unless you edited the compiled code manually). Safer to share the alternate colours amongst the two uv channels.

If you set tangents to “Import” it shouldn’t touch them.