]> git.mxchange.org Git - flightgear.git/commitdiff
Tweaked thresholds for staging in ground lighting.
authorcurt <curt>
Tue, 5 Dec 2000 18:58:05 +0000 (18:58 +0000)
committercurt <curt>
Tue, 5 Dec 2000 18:58:05 +0000 (18:58 +0000)
src/Scenery/tileentry.cxx

index eacd0ea421f231ee00906620680dbad6c49c262e..c1cc514703fd7c2c8a780ecb0a5282b8e251cae1 100644 (file)
@@ -218,11 +218,11 @@ void FGTileEntry::prep_ssg_node( const Point3D& p, float vis) {
 
        // select which set of lights based on sun angle
        float sun_angle = cur_light_params.sun_angle * RAD_TO_DEG;
-       if ( sun_angle > 100 ) {
+       if ( sun_angle > 98 ) {
            lights_brightness->select(0x04);
-       } else if ( sun_angle > 95.5 ) {
+       } else if ( sun_angle > 93.5 ) {
            lights_brightness->select(0x02);
-       } else if ( sun_angle > 91 ) {
+       } else if ( sun_angle > 89 ) {
            lights_brightness->select(0x01);
        } else {
            lights_brightness->select(0x00);