5 ms·
The half pixel offset makes sense, though. If you have two textures, you want the edges to align, not the centers of the pixels. See, for example: https://bart
by leguminous 1y ago
The half pixel offset makes sense, though. If you have two textures, you want the edges to align, not the centers of the pixels.
See, for example: https://bartwronski.com/2021/02/15/bilinear-down-upsampling-pixel-grids-and-that-half-pixel-offset/ https://bartwronski.com/2021/02/15/bilinear-down-upsampling-...
Implementations of resizing based on aligning pixel centers resulted in slight shifts, which caused a lot of trouble.