Microsoft DirectX 9.0 SDK Update (October 2004)

NormalMap Enumeration

Language:

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

Defines the flags used to convert a height map into a normal map.

Definition

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

Members

Member Value Description
ComputeOcclusion 1048576 Computes the per-pixel occlusion term and encodes it into the alpha. An alpha of 1 means that the pixel is not obscured in any way; an alpha of 0 means that the pixel is completely obscured.
InvertSign 524288 Inverts the direction of each normal.
Mirror 196608 Same as specifying MirrorU and MirrorV.
MirrorV 131072 Indicates that pixels off the edge of the texture on the v-axis should be mirrored, not wrapped.
MirrorU 65536 Indicates that pixels off the edge of the texture on the u-axis should be mirrored, not wrapped.

Remarks

The (x,y,z) components of each normal are mapped to the (r,g,b) channels of the output texture.

Enumeration Information

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

See Also


© 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