DirectX SDK |
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
The values defined by this enumeration are used with the D3DRENDERSTATE_DIFFUSEMATERIALSOURCE, D3DRENDERSTATE_SPECULARMATERIALSOURCE, D3DRENDERSTATE_AMBIENTMATERIALSOURCE, and D3DRENDERSTATE_EMISSIVEMATERIALSOURCE render states.