Set up projection matrix

Unintentionally deleted the code setting up the projection matrix.