From 2d79e54c4697b2d29ddcc8ac9f8d6dcd387e8371 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 27 Jan 2006 15:18:45 +0000 Subject: [PATCH] Disable smooth lines for certain lightning segments. --- simgear/environment/visual_enviro.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/simgear/environment/visual_enviro.cxx b/simgear/environment/visual_enviro.cxx index 41df969b..78fd6eb5 100644 --- a/simgear/environment/visual_enviro.cxx +++ b/simgear/environment/visual_enviro.cxx @@ -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); } } -- 2.39.5