]> git.mxchange.org Git - simgear.git/commitdiff
Disable smooth lines for certain lightning segments.
authorehofman <ehofman>
Fri, 27 Jan 2006 15:18:45 +0000 (15:18 +0000)
committerehofman <ehofman>
Fri, 27 Jan 2006 15:18:45 +0000 (15:18 +0000)
simgear/environment/visual_enviro.cxx

index 41df969bea9977b73a2e11969a53dc00117b69e2..78fd6eb5090b45fad58be3343cc26a89cd068754 100644 (file)
@@ -599,7 +599,9 @@ void SGLightning::lt_Render(void) {
                if( lt_tree[n].depth >= 2 ) {
             glLineWidth(3);
                        sgScaleVec4(c, col, t1 * 0.6f);
+                       glDisable(GL_LINE_SMOOTH);
                        DRAW_SEG();
+                       glEnable(GL_LINE_SMOOTH);
                } else {
                        if( lt_tree[n].depth == 0 ) {
                 glLineWidth(12);
@@ -608,11 +610,15 @@ void SGLightning::lt_Render(void) {
 
                 glLineWidth(6);
                                sgScaleVec4(c, col, t1);
+                               glDisable(GL_LINE_SMOOTH);
                                DRAW_SEG();
+                               glEnable(GL_LINE_SMOOTH);
                        } else {
                 glLineWidth(6);
                                sgScaleVec4(c, col, t1 * 0.7f);
+                               glDisable(GL_LINE_SMOOTH);
                                DRAW_SEG();
+                               glEnable(GL_LINE_SMOOTH);
                        }
 
             if( lt_tree[n].depth == 0 ) 
@@ -621,7 +627,9 @@ void SGLightning::lt_Render(void) {
                 glLineWidth(2);
 
             sgSetVec4(c, t1, t1, t1, t1);
+                       glDisable(GL_LINE_SMOOTH);
                        DRAW_SEG();
+                       glEnable(GL_LINE_SMOOTH);
                }
 
        }