Compartir a través de


ShadeMode Enumeration

Defines constants that describe the supported shading modes.

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

Syntax

'Declaration
Public Enumeration ShadeMode
'Usage
Dim instance As ShadeMode
public enum ShadeMode
public enum class ShadeMode
public enum ShadeMode
public enum ShadeMode

Members

  Member name Description
Supported by the .NET Compact Framework Flat 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. 
Supported by the .NET Compact Framework Gouraud The 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. 

Remarks

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.

Platforms

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Microsoft.WindowsMobile.DirectX.Direct3D Namespace

Other Resources

Direct3D Programming