Do you know that you can use data structures as uniform variables in GLSL?
GLSL Hacker has a handy object called a grid. A grid is more or less just a collection of lines but that info is not really important. You can use a grid as a reference object when there’s no ground plane in the scene.
To render an image, we need an orthographic camera, a texture GPU program, a quad and the image (a texture).