A generator of texel data that computes a normal map from a supplied texture.
- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
- Model I/O
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.
Like other procedural
MDLTexture subclasses, the
MDLNormal class generates texel data only when that data is first referenced, and caches it for future use.