D3DMATERIAL8
Specifies material properties.
typedef struct _D3DMATERIAL8 {
D3DCOLORVALUE Diffuse;
D3DCOLORVALUE Ambient;
D3DCOLORVALUE Specular;
D3DCOLORVALUE Emissive;
float Power;
} D3DMATERIAL8;
Members
- Diffuse, Ambient, Specular, and Emissive
- Values specifying the diffuse color, ambient color, specular color, and emissive color of the material, respectively. These values are D3DCOLORVALUE structures.
- Power
- Floating-point value specifying the sharpness of specular highlights. To turn off specular highlights for a material, set this member to 0.0; setting the specular color components to 0 is not enough.
Requirements
Header: Declared in D3d8types.h.
See Also
IDirect3DDevice8::GetMaterial, IDirect3DDevice8::SetMaterial