IDirect3DMaterial::SetMaterial
HRESULT SetMaterial(LPD3DMATERIAL lpMat);
Sets the material data for the Direct3DMaterial object.
·Returns D3D_OK if successful, or an error otherwise, which may be one of the following values:
lpMat
Address of a D3DMATERIAL structure that contains the material properties.