Output vertex color?

I feel really stupid for having to even ask this, but: how do I write a shader that simply outputs the vertex color? I’ve tried a number of different things and they all don’t work :frowning:

Did you find this page yet?

You can access those colors with Primary, according to this page:

Yes, I saw those already, but they didn’t explain what I want.

Finally got what I need, though:

Shader "VertexColor" {
    SubShader {
        Pass {
            ColorMaterial Diffuse
            Lighting Off
        }
    }
}

I got here by dissecting the VertexColor shader from Unify:

I don’t know what the ColorMaterial tag does exactly, 'cause it is conveniently undocumented. :S