| Microsoft DirectX 8.1 (C++) | 
Defines the location at which a color or color component must be accessed for lighting calculations.
typedef enum _D3DMATERIALCOLORSOURCE {
    D3DMCS_MATERIAL         = 0,
    D3DMCS_COLOR1           = 1,
    D3DMCS_COLOR2           = 2,
    D3DMCS_FORCE_DWORD      = 0x7fffffff
} D3DMATERIALCOLORSOURCE;
These flags are used to set the value of the following render states in the D3DRENDERSTATETYPE enumerated type.
Header: Declared in D3d8types.h.