Note that we also offset the lookup slightly to miss the wrap-around points. The existing 31 scale factor instead of 32, together with that half-texel, are enough to avoid that problem. Fixes #18300