
// by my thinking, sample will wind up between 4 pixels. offset to center
// of four pixels, or would filtering take care of it for me? i think
// filtering is set to nearest, so i don't expect that to happen.

void main()
{
  // set texture coords
  gl_TexCoord[0].st = gl_MultiTexCoord0.st + vec2( 0.5 / 1024.0, 0.5 / 768.0 ); 
  gl_TexCoord[1].st = gl_MultiTexCoord0.st + vec2(-0.5 / 1024.0, 0.5 / 768.0 );
  gl_TexCoord[2].st = gl_MultiTexCoord0.st + vec2( 0.5 / 1024.0,-0.5 / 768.0 );
  gl_TexCoord[3].st = gl_MultiTexCoord0.st + vec2(-0.5 / 1024.0,-0.5 / 768.0 );

  // transform position
  gl_Position = ftransform();
}