Bump map explorer

Bump mapping perturbs the surface normal with a texture, so a flat quad is lit as if it were rough. The texture holds a tangent-space normal in RGB and the height in alpha; the vertex shader puts the light and view vectors into the same tangent space and the fragment shader does the lighting there. Pick an example, then change the texture, how it is filtered, the shading technique, the camera and the light.

Oops ... your browser doesn't support the HTML5 canvas element
Drag to orbit the camera · shift-drag to move the light · scroll to zoom
Height map (alpha)
Normal map (RGB)
Colour map
Example and texture

Shading technique
Texture parameters
View
Lighting

Notes on what is approximated