Microsoft DirectX 8.1 (Visual Basic)

CONST_D3DSHADEMODE

Defines constants that describe the supported shade mode.

Enum CONST_D3DSHADEMODE
    D3DSHADE_FLAT    = 1
    D3DSHADE_GOURAUD = 2
    D3DSHADE_PHONG   = 3
End Enum

Constants

D3DSHADE_FLAT
Flat shade mode. The color and specular component of the first vertex in the triangle are used to determine the color and specular component of the face. These colors remain constant across the triangle; that is, they are not interpolated. The specular alpha is interpolated. See Remarks.
D3DSHADE_GOURAUD
Gouraud shade mode. The color and specular components of the face are determined by a linear interpolation between all three of the triangle's vertices.
D3DSHADE_PHONG
Phong shade mode is not currently supported.

Remarks

The first vertex of a triangle for flat shading mode is defined in the following manner.

These flags are used to set the value of the D3DRS_SHADEMODE render state for the CONST_D3DRENDERSTATETYPE enumeration.

See Also

CONST_D3DRENDERSTATETYPE