enum CNMAP_FLAGS
{
CNMAP_DEFAULT = 0,
CNMAP_CHANNEL_RED = 0x1,
CNMAP_CHANNEL_GREEN = 0x2,
CNMAP_CHANNEL_BLUE = 0x3,
CNMAP_CHANNEL_ALPHA = 0x4,
CNMAP_CHANNEL_LUMINANCE = 0x5,
CNMAP_MIRROR_U = 0x1000,
CNMAP_MIRROR_V = 0x2000,
CNMAP_MIRROR = 0x3000,
CNMAP_INVERT_SIGN = 0x4000,
CNMAP_COMPUTE_OCCLUSION = 0x8000
};
| Constant | Description |
|---|---|
| CNMAP_DEFAULT | Set default flags. |
| CNMAP_CHANNEL_RED | Selects which channel to use as the height. Luminance is the average of R, G, and B. |
| CNMAP_CHANNEL_GREEN | |
| CNMAP_CHANNEL_BLUE | |
| CNMAP_CHANNEL_ALPHA | |
| CNMAP_CHANNEL_LUMINANCE | |
| CNMAP_MIRROR_U | Selects mirroring semantics for scanline references. Otherwise defaults to wrap. |
| CNMAP_MIRROR_V | |
| CNMAP_MIRROR | Same as both CNMAP_MIRROR_U and CNMAP_MIRROR_V. |
| CNMAP_INVERT_SIGN | Inverts the sign of the computed normal vector. |
| CNMAP_COMPUTE_OCCLUSION | Computes a crude occlusion term and stores in the resulting alpha channel. |
Header: Declared in directxtex.h.