Share via


ShadeMode Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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
type 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 Smartphone, Windows Mobile for Pocket PC

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

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Microsoft.WindowsMobile.DirectX.Direct3D Namespace

Other Resources

Mobile Direct3D Programming in the .NET Compact Framework