Make projection matrix work with both the quad primitive and the sprite