Texturing a Sphere

(Pasting a 2D image onto the entire surface of the sphere)

To find which texel in the image the generic hit point maps to,