From: david Date: Tue, 5 Mar 2002 13:35:48 +0000 (+0000) Subject: Changed the near clip plane to 0.1f regardless. Previously, it jumped X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0618c2cae8058e5fda70c1fe208606e0e1fb95fb;p=flightgear.git Changed the near clip plane to 0.1f regardless. Previously, it jumped to 10m after takeoff, but that doesn't really make sense any more, especially if models are going to have interior views. Is there any real saving in pushing the near plane out anyway? --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 4d8d1243e..1e353b833 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -661,14 +661,7 @@ void fgRenderFrame( void ) { ssgSetFOV( globals->get_current_view()->get_h_fov(), globals->get_current_view()->get_v_fov() ); - double agl = current_aircraft.fdm_state->get_Altitude() * SG_FEET_TO_METER - - scenery.get_cur_elev(); - - if ( agl > 10.0 ) { - ssgSetNearFar( 10.0f, 120000.0f ); - } else { - ssgSetNearFar( 0.5f, 120000.0f ); - } + ssgSetNearFar( 0.1f, 120000.0f ); current_model.update(0); // FIXME: use real delta time