D3DMATERIAL8
This structure 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
OS Versions: Windows CE .NET 4.0 and later.
Header: D3d8types.h.
See Also
IDirect3DDevice8::GetMaterial | IDirect3DDevice8::SetMaterial | Direct3D Structures
Last updated on Thursday, April 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.