A Lighting-Invariant Approach to Local Shape from Shading