Triangle Interpolation


During rendering, the pipeline interpolates vertex data across each triangle. Several types of data can be interpolated.

The interpolation of the vertex data is dependent on the current shading mode, as shown in the following table.

Shading mode Description
Flat Only the fog factor is interpolated in flat shade mode. For all other interpolated values, the color of the first vertex in the triangle is applied across the entire face.
Gouraud Linear interpolation is performed between all three vertices.

The color and specular interpolated values are treated differently, depending on the color model. In the RGB color model, the system uses the red, green, and blue color components in the interpolation.

The alpha component of a color is treated as a separate interpolated value because device drivers can implement transparency in two different ways: by using texture blending or by using stippling.

Use the ShadeCaps property of the Caps structure to determine what forms of interpolation the current device driver supports.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center