Changed view matrix calculation to fix related problems.