update viewMatrix