Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Materials describe how polygons reflect light or appear to emit light in a 3-D scene. Essentially, a material is a set of properties that tell Microsoft® Direct3D® Mobile the following things about the polygons it is rendering:

  • How they reflect ambient and diffuse light

  • What their specular highlights look like

  • Whether the polygons appear to emit light

Direct3D Mobile applications written in C++ use the D3DMMATERIALstructure to describe material properties. For more information, see Material Properties.

Note:
If your application does not specify material properties for rendering, the system uses a default material. The default material reflects all diffuse light — white, for example — with no ambient or specular reflection.

The following topics provide additional information on materials.

See Also