Microsoft DirectX 9.0 SDK Update (October 2004)

ShadeMode Enumeration

Language:

Note: This documentation is preliminary and is subject to change.

Defines constants that describe the supported shading modes.

Definition

Visual Basic .NET Public Enum ShadeMode
C# public enum ShadeMode
Managed C++ __value public enum ShadeMode
JScript .NET public enum ShadeMode

Members

Member Value Description
Phong 3 Not supported.
Gouraud 2 Gouraud shading mode. The color and specular components of the face are determined by a linear interpolation between all three of the triangle's vertices.
Flat 1 Flat shading 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.

Remarks

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

Enumeration Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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