Triangle Interpolants
The system interpolates the characteristics of a triangle's vertices across the triangle when it renders a face. These are the triangle interpolants:
- Color
- Specular
- Alpha
- Textures coordinates (u,v)
All the triangle interpolants are modified by the current shading mode, as shown in the following table.
Shading mode | Description |
---|---|
Flat | No interpolation is done. Instead, the color of the first vertex in the triangle is applied across the entire face. |
Gouraud | Linear interpolation is performed between all three vertices. |
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 interpolant because device drivers can implement transparency in two different ways: by using texture blending or by using stippling.
Use the ShadeCaps member of the D3DCAPS8 structure to determine what forms of interpolation the current device driver supports.
Last updated on Thursday, April 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.