I want to know how, using a glsl program, I can rezise a texture. Let say, I have an 1024x768 image that I want to resample to 640x480. (by linear interpolation for example).
I want to proceed the resize of the image with gpu using a glsl program. Assuming I am able to get the corresponding texture of the original image, how and what instructions I have to write in the shader to resize the image the way I want.