The Geometry Behind Normal Maps