3D:  added 'viewDistance' option