2D Array of 2D image

hi,

i have a 2D array of texture. so its like an image with width and height, but each pixel is an image. and if i want to grab texture at index let say (3.5, 4.5), it will interpolate the texture at index (3, 3), (3, 4), (4, 3), (4, 4).

currently im trying to do this manually, but im curious is there any easy way to implement this in OpenGL+GLSL? is there some kind of way to keep texture2D in 2D array that interpolates automatically in OpenGL+GLSL? if yes, any hint/link/sample how to to that?

thanks in advance

Isn’t that what bilinear filtering already does for you assuming you have set the texture filtering to GL_LINEAR. Perhaps you have yours set to GL_NEAREST instead - inwhich case there is no linear blend bewteen adjacent texels.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.