Added viewport transformation to the 3d model