Vertex color
Vertex Color
Each vertex in a mesh can optionally store a RGBA color value, called vertex color. These can be used for a variety of interesting effects and shader inputs.
Vertices can also store vertex alpha, which can be used for multitexturing,, or ambient occlusion.
Usage
Vertex color is typically multiplied against the Diffuse Color, colorizing/darkening the color map.
Vertex color can also be used for controlling blends between different texture sets, providing per-vertex sound effects in response to collisions, etc.
When used for non-color effects, typically each color channel is treated as a separate monochrome set of values, so RGB vertex color can control three different per-vertex effects.
Multiple Colors per Vertex
A single vertex can be assigned multiple vertex colors, depending on the game engine and mesh format. This duplicates the vertex when it is loaded into the game, once for each color, slightly increasing the memory cost.
When vertices contain multiple colors, the color will change suddenly from one triangle to the next, creating a hard color edge.
Tutorials
Foliage Vertex Color |
Ambient-Occlusion Vertex Color |
Removing Vertex Colors |
Vertex Color Tutorial for 3ds Max |