Set up projection matrix

This should be moved somewhere else, or done using a library.