Disable smooth lines for certain lightning segments.
This commit is contained in:
@@ -599,7 +599,9 @@ void SGLightning::lt_Render(void) {
|
|||||||
if( lt_tree[n].depth >= 2 ) {
|
if( lt_tree[n].depth >= 2 ) {
|
||||||
glLineWidth(3);
|
glLineWidth(3);
|
||||||
sgScaleVec4(c, col, t1 * 0.6f);
|
sgScaleVec4(c, col, t1 * 0.6f);
|
||||||
|
glDisable(GL_LINE_SMOOTH);
|
||||||
DRAW_SEG();
|
DRAW_SEG();
|
||||||
|
glEnable(GL_LINE_SMOOTH);
|
||||||
} else {
|
} else {
|
||||||
if( lt_tree[n].depth == 0 ) {
|
if( lt_tree[n].depth == 0 ) {
|
||||||
glLineWidth(12);
|
glLineWidth(12);
|
||||||
@@ -608,11 +610,15 @@ void SGLightning::lt_Render(void) {
|
|||||||
|
|
||||||
glLineWidth(6);
|
glLineWidth(6);
|
||||||
sgScaleVec4(c, col, t1);
|
sgScaleVec4(c, col, t1);
|
||||||
|
glDisable(GL_LINE_SMOOTH);
|
||||||
DRAW_SEG();
|
DRAW_SEG();
|
||||||
|
glEnable(GL_LINE_SMOOTH);
|
||||||
} else {
|
} else {
|
||||||
glLineWidth(6);
|
glLineWidth(6);
|
||||||
sgScaleVec4(c, col, t1 * 0.7f);
|
sgScaleVec4(c, col, t1 * 0.7f);
|
||||||
|
glDisable(GL_LINE_SMOOTH);
|
||||||
DRAW_SEG();
|
DRAW_SEG();
|
||||||
|
glEnable(GL_LINE_SMOOTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
if( lt_tree[n].depth == 0 )
|
if( lt_tree[n].depth == 0 )
|
||||||
@@ -621,7 +627,9 @@ void SGLightning::lt_Render(void) {
|
|||||||
glLineWidth(2);
|
glLineWidth(2);
|
||||||
|
|
||||||
sgSetVec4(c, t1, t1, t1, t1);
|
sgSetVec4(c, t1, t1, t1, t1);
|
||||||
|
glDisable(GL_LINE_SMOOTH);
|
||||||
DRAW_SEG();
|
DRAW_SEG();
|
||||||
|
glEnable(GL_LINE_SMOOTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user