Platform SDK: DirectX

Creating a Bump Map Texture

You create a bump map texture like any other texture. Once your application has verified support for bump mapping and retrieved a valid pixel format (as discussed in Detecting Support For Bump Mapping), you can create a bump map texture surface. For information on creating surfaces, see Obtaining a Texture Surface Object and Creating Surfaces.

After the surface is created, you can load each pixel with the appropriate delta values, and luminance (if the surface format includes luminance). The values for each pixel component are described in Bump Map Pixel Formats.