www.pudn.com > colorvary1.rar > varying.cg
struct C3E2v_Output {
float4 position : POSITION;
float4 color : COLOR;
};
C3E2v_Output C3E2v_varying(float2 position : POSITION,
float4 color : COLOR)
{
C3E2v_Output OUT;
OUT.position = float4(position, 0, 1);
// OUT.color = float4(color, 1);
OUT.color = color;
return OUT;
}