Calculating the view matrix.