The D3DLIGHTSTATE_MATERIAL lighting state controls the current rendering material. By default, no material is selected. You can set a new rendering material by calling the IDirect3DDevice3::SetLightState method, passing D3DLIGHTSTATE_MATERIAL in the first parameter and the material handle for the material to be used as the second parameter. To deselect materials, set the second parameter to NULL. When no material is selected, the Direct3D lighting engine is disabled.
For more information, see Materials.