Hlsl shader, vertex colors, and 3dsMax

Hey, i’m having an issue having vertex colors show up in max.

They are getting passed into my engine correctly, so thats not the problem.

here’s my variables…


struct VERTEX_IN 
{
 ...
float4 color : COLOR;
 ...
)
struct VERTEX_OUT 
{
...
float4	VertexColor	: COLOR;
...
}

VERTEX_OUT VertexProgram(VERTEX_IN IN)
{
..
OUT.VertexColor 	= IN.color;
return OUT
...
}
PIXEL_OUT PixelProgram(VERTEX_OUT IN): COLOR
{
...
OUT.color.rgb = IN.VertexColor.rgb;
return OUT;
...
}

and it comes up white. I’ve tried changing it to TEXCOORD, to float4, dividing by 255, multiplying by 255. Nothing seems to work.

Does anyone know what i’m doing wrong?

Thanks

Ok, i figured it out

i incorporated elements from

C:\Program Files\Autodesk\3ds Max 2010\maps\fx\vertexcolor.fx