ShadeMode Enumeration

Language:

Defines constants that describe the supported shading modes.

Definition

Visual Basic Public Enum ShadeMode
C# public enum ShadeMode
C++ public enum class ShadeMode
JScript 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.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492

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