This page describes how to set up materials that utilize Vertex Color so that you can paint colors in Mesh Paint Mode.
Setting up Materials
The Mesh Paint system requires the Mesh's Material to contain a Vertex Color node, as this is how the vertex color data is passed from the Mesh to the Material. The following topics cover ways to set up a Material so that it can be used with Mesh Paint mode.