From: Mikko Rasa Date: Sat, 3 May 2014 09:18:18 +0000 (+0300) Subject: Set depth clip in View3D::view_all X-Git-Url: http://git.tdb.fi/?p=r2c2.git;a=commitdiff_plain;h=7a79b95c4c76e75f724c5221b4044df3cf53d461 Set depth clip in View3D::view_all --- diff --git a/source/3d/view.cpp b/source/3d/view.cpp index b833605..ef03c4b 100644 --- a/source/3d/view.cpp +++ b/source/3d/view.cpp @@ -70,6 +70,7 @@ void View3D::view_all(bool tight) GL::Vector3 center = (minp+maxp)/2.0f; const GL::Vector3 &look = camera.get_look_direction(); camera.set_position(center-look*dist); + camera.set_depth_clip(dist*0.02, dist*50); } void View3D::render()