VertexColorUnlit

Author: Eric Haines (Eric5h5)

Description
Two shaders that use per-vertex colors and no lighting. Works fine using Unity as well as Unity iPhone; both shaders will run on really ancient cards, though the second one won't use vertex colors in that case.

Usage
Both shaders allow for overbrightening, so using (.5, .5, .5) as vertex color values results in 100% brightness, and values above that brighten the texture accordingly, as shown by the VertexColorUnlit shader:



The VertexColorUnlit2 shader has a color variable, so that as the vertex color alpha goes below 1.0, the vertices become more influenced by the color rather than the texture:



The color can be something other than white, and vertices will be tinted thusly. Vertices with an alpha of 0 are always 100% color and 0% texture: