> ## Name

> ColorMaterial - 3D API color material

> ## Usage

> ColorMaterial = int2(sides, mat)

> ## Valid Enumerants

> sides: Front, Back, FrontAndBack mat: Emission, Emissive, Ambient, Diffuse, Specular, AmbientAndDiffuse

> ## Description

> Specify which material parameters track the current color. See the OpenGL glColorMaterial manual page for details. See the D3DRS_ALPHABLENDENABLE render state description for DirectX 9.

> The standard reset callback sets the ColorMaterial state to int2(FrontAndBack, AmbientAndDiffuse).

> ## Opengl Functionality Requirements

> OpenGL 1.0

> ## Direct3D Functionality Requirements

> DirectX 9

> ## See Also

> AmbientMaterialSource, DiffuseMaterialSource, EmissiveMaterialSource, MaterialAmbient, MaterialDiffuse, MaterialEmission, MaterialEmissive, MaterialPower, MaterialShininess, MaterialSpecular, SpecularMaterialSource