From 07ba9777edb9e73ba9e29f38d0d15230f1f7c4f0 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 5 Mar 2002 22:25:11 +0000 Subject: [PATCH] Temporarily reverted change to near/far clip plane. --- src/Main/main.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 1e353b833..4d8d1243e 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -661,7 +661,14 @@ void fgRenderFrame( void ) { ssgSetFOV( globals->get_current_view()->get_h_fov(), globals->get_current_view()->get_v_fov() ); - ssgSetNearFar( 0.1f, 120000.0f ); + 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 ); + } current_model.update(0); // FIXME: use real delta time