Contents

MDLNormalMapTexture

A generator of texel data that computes a normal map from a supplied texture.

Declaration

class MDLNormalMapTexture

Overview

This class examines the shapes of contrasting areas in an input texture to generate a normal map that produces an embossed appearance when rendered with lighting. The figure below shows the normal map generated from an example texture and the effect of using this normal map with lighting in a typical renderer.

[Image]

Like other procedural MDLTexture subclasses, the MDLNormalMapTexture class generates texel data only when that data is first referenced, and caches it for future use.

Topics

Creating a Normal Map Texture

Initializers

See Also

Textures