Suppose we are trying to shade a point that projects to the texture at the position indicated by the black dot.
For clarity, we magnify the region in red on the right.