CNA Samples

Normal Mapping

Ported from Microsoft's XNA 4.0 Normal Mapping Effect sample.

Source for this sample on GitHub ↗

A lizard lit by a moving light on a textured rock against a blue background. Play ▸

Opens in a new tab. Move the camera and pause or resume the orbiting light.

About this sample

A normal map makes the lizard and rock appear detailed without adding geometry. The original content processor generates tangent and binormal vertex data, assigns a custom compiled effect to each material, and converts normal textures to a signed format. Move the camera to inspect how the animated light changes the surface highlights.

Controls

ActionKeyboardGamepad
Rotate cameraArrow keys or W, A, S, DRight stick
ZoomZ and XTriggers
Pause or resume lightSpaceA
Reset cameraRRight stick press
ExitEscapeBack