Vertex color

From polycount
Revision as of 18:03, 5 July 2010 by EricChadwick (Talk)

Jump to: navigation, search

Vertex Color

Vertex Color Techniques

Foliage Vertex Color
Ambient-Occlusion Vertex Color
Removing Vertex Colors

Definition: Each vertex in a mesh can optionally store an RGBA color value, called vertex color. These can be used for a variety of interesting and novel effects and/or shader inputs.

Common Usage: Vertex color is typically multiplied against the Diffuse Color, colorizing/darkening the color map.

Vertex color can be used for other purposes, like 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.

Depending on the game engine and mesh format, a vertex can be assigned multiple vertex colors. This duplicates the vertex, once for each color. This allows the color to change suddenly from one triangle to the next, creating a hard color edge.

Vertices can also store Vertex Alpha, typically for multitexturing, transparency, or Ambient Occlusion.

<
>

Personal tools
Namespaces

Variants
Actions
Navigation
Tools