summaryrefslogtreecommitdiffstats
path: root/Smoke/renderer_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'Smoke/renderer_gl.c')
-rw-r--r--Smoke/renderer_gl.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/Smoke/renderer_gl.c b/Smoke/renderer_gl.c
index 67ebc55..c519882 100644
--- a/Smoke/renderer_gl.c
+++ b/Smoke/renderer_gl.c
@@ -773,6 +773,13 @@ static void render_streamlines(void)
gluQuadricOrientation(qobj, GLU_OUTSIDE);
glLineWidth(2.5f);
+
+ if (streamlines_get_alpha() < 1.0f) {
+ glEnable(GL_BLEND);
+ }
+ else {
+ glDisable(GL_BLEND);
+ }
i = j = k = l = 0;
DIM = fluids_get_dim();
@@ -816,14 +823,14 @@ static void render_streamlines(void)
case STREAMLINES_SORT_TUBES:
glPushMatrix();
glTranslatef(p.x, p.y, j * cell_x);
- gluCylinder(qobj, 8.0, 8.0, 16.0, 8, 8);
+ gluCylinder(qobj, 8.0, 8.0, 16.0, 6, 6);
glPopMatrix();
break;
case STREAMLINES_SORT_SPHERES:
glPushMatrix();
glTranslatef(p.x, p.y, j * cell_x);
- gluSphere(qobj, 10.0f, 8, 8);
+ gluSphere(qobj, 8.0f, 6, 6);
glPopMatrix();
break;
}