DirectX SDK

CONST_D3DMATERIALCOLORSOURCE

The CONST_D3DMATERIALCOLORSOURCE enumeration defines the location at which a color or color component should be accessed for lighting calculations.

Enum CONST_D3DMATERIALCOLORSOURCE 
    D3DMCS_MATERIAL    = 0  
    D3DMCS_COLOR1      = 1  
    D3DMCS_COLOR2      = 2  
End Enum
D3DMCS_MATERIAL
Use the color from the current material.
D3DMCS_COLOR1
Use the diffuse vertex color.
D3DMCS_COLOR2
Use the specular vertex color.

Remarks

The values defined by this enumeration are used with the D3DRENDERSTATE_DIFFUSEMATERIALSOURCE, D3DRENDERSTATE_SPECULARMATERIALSOURCE, D3DRENDERSTATE_AMBIENTMATERIALSOURCE, and D3DRENDERSTATE_EMISSIVEMATERIALSOURCE render states.