Export (0) Print
Expand All
Expand Minimize

ShadeMode Enumeration

Defines constants that describe the supported shading modes.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

public enum ShadeMode
public enum ShadeMode
public enum ShadeMode

 Member nameDescription
Supported by the .NET Compact FrameworkFlatFlat 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. 
Supported by the .NET Compact FrameworkGouraudThe 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. 

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

  • For a Triangle Lists, the first vertex of the triangle i is i* 3.

  • For a Triangle Strips, the first vertex of the triangle i is vertex i.

  • For a Triangle Fans, the first vertex of the triangle i is vertex i +1.

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft