If I have a texture atlas, TexSize x TexSize square, and I want to access a Width x Height image at X,Y then are the texture coordinates
bottom left = X/TexSize, Y/TexSize top right = (X+Width)/TexSize, (Y+Height)/TexSize
The reason I ask is I have a 32x32 “texture atlas” with a 1x8 pixel vertical line starting at pixel 16,4. If I try and draw a rectangle filling it with the 1x8 line then some of it’s right and top row of pixels sample past the edge of the 1x8 line (i.e. the pixels from column 17 and the pixel from row 12 of the “atlas”).
The problem is only on a board with Mali 55, the same test works on my desktop, so I’m hoping it’s a driver issue, but
I’ve seen posts about adjusting for the texel center so I’ve started to doubt my coordinate calcluation.