A photometric approach for estimating normals and tangents