Microsoft DirectX 8.0 (Visual Basic) |
You create a bump map texture like any other texture. Once your application verifies support for bump mapping and retrieves a valid pixel format, as discussed in Detecting Support For Bump Mapping, you can create a bump map texture surface. For information on creating textures, see Obtaining a Texture Surface Object.
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.