]> git.mxchange.org Git - flightgear.git/commitdiff
Changed the near clip plane to 0.1f regardless. Previously, it jumped
authordavid <david>
Tue, 5 Mar 2002 13:35:48 +0000 (13:35 +0000)
committerdavid <david>
Tue, 5 Mar 2002 13:35:48 +0000 (13:35 +0000)
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?

src/Main/main.cxx

index 4d8d1243ea03b8bfdbc5565382381082c51fb9c1..1e353b8331cc098b716e523bb2ff3304a30df626 100644 (file)
@@ -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