What it does

Vertex Color stores color values on a model's vertices. Values interpolate across the surface and can provide color or masks controlling where an effect is stronger. This data is stored on the mesh rather than painted into a texture.

Figure: Conceptual relationship: Vertex color data → Interpolate over faces → Use in color or masks
Figure: Conceptual relationship: Vertex color data → Interpolate over faces → Use in color or masks

How to use it

Read vertex RGBA in the shader as color or as masks for deformation and fading. Authored vertex colors have no visible effect if the shader ignores them.

A concrete example

A tree with red zero at its base and red one at its tip can weight wind motion while anchoring the base. Interpolation limits detail on coarse geometry.

How to check it

  1. Visualize Vertex Color directly.
    Interpolate per-vertex colors across the surface
    Interpolate per-vertex colors across the surface
  2. For mesh particles, distinguish source-mesh colors from particle color streams and align renderer output with shader inputs.
    Interpolate per-vertex colors across the surface
    Interpolate per-vertex colors across the surface

Limitations

It consumes vertex memory; coarse geometry limits spatial detail.

References