Platform SDK: DirectX

D3DMATERIAL7

The D3DMATERIAL7 type specifies material properties in calls to the Direct3DDevice7.GetMaterial and Direct3DDevice7.SetMaterial methods.

Type D3DMATERIAL7
    ambient As D3DCOLORVALUE
    diffuse As D3DCOLORVALUE
    emissive As D3DCOLORVALUE
    power As Single
    specular As D3DCOLORVALUE
End Type

Members

ambient, diffuse, emissive, and specular
Values specifying the ambient color, diffuse color, emissive color, and specular color of the material, respectively. These values are D3DCOLORVALUE types.
power
Value specifying the sharpness of specular highlights.

Remarks

To turn off specular highlights for a material, you must set the power member to 0—simply setting the specular color components to 0 is not enough.

See Also

Direct3DDevice7.GetMaterial, Direct3DDevice7.SetMaterial