Skip to content

Latest commit

 

History

History
55 lines (31 loc) · 2.23 KB

d3dx-normalmap.md

File metadata and controls

55 lines (31 loc) · 2.23 KB
description ms.assetid title ms.topic ms.date
Normal maps generation constants.
edf4c3e4-1af4-43b4-80c7-6fab02575f7b
D3DX_NORMALMAP
article
05/31/2018

D3DX_NORMALMAP

Normal maps generation constants.

#define Description
D3DX_NORMALMAP_MIRROR_U Indicates that pixels off the edge of the texture on the u-axis should be mirrored, not wrapped.
D3DX_NORMALMAP_MIRROR_V Indicates that pixels off the edge of the texture on the v-axis should be mirrored, not wrapped.
D3DX_NORMALMAP_MIRROR Same as specifying D3DX_NORMALMAP_MIRROR_U | D3DX_NORMALMAP_MIRROR_V.
D3DX_NORMALMAP_INVERTSIGN Inverts the direction of each normal.
D3DX_NORMALMAP_COMPUTE_OCCLUSION 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, and an alpha of 0 means that the pixel is completely obscured.

 

Constant Information

Requirement Value
Header d3dx9tex.h
Minimum operating system Windows 98

 

Related topics

D3DX Constants

D3DXComputeNormalMap