Compute the texture coordinates such that they are at the middle of the pixels.