Am trying to make a glsl shader for a simple task, but it continues to elude me. I just want to shift a rendered image along the x axis, by a constant _pixel_ (i.e. on-screen) value. I want to avoid perspective, so that every piece of the scene moves over (as if it were a flat picture).
I know that I can render a scene to a gl texture, but that slows things down. I have been attempting to manipulate the matrices inside the shader. Since multiplying by the gl_ModelViewProjection matrix gives you on-screen coordinates, I thought that this would do it: