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.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/Smoke/renderer_gl.c b/Smoke/renderer_gl.c
index 59489c5..0ce22e7 100644
--- a/Smoke/renderer_gl.c
+++ b/Smoke/renderer_gl.c
@@ -562,7 +562,7 @@ static void render_isolines(void)
{
int idx, count, i, j, state, DIM;
float wn, hn, v0, v1, v2, v3, threshold, iso_scale;
- float x0, y0, z0, x1, y1, z1, x_offset, y_offset;
+ float x_offset, y_offset, z_pos = 8.0f;
struct color4f color;
struct point p0, p1, p2, p3, e1, e2;
@@ -571,8 +571,6 @@ static void render_isolines(void)
wn = (fftw_real)winWidth / (fftw_real)(DIM + 1); // Grid cell width
hn = (fftw_real)winHeight / (fftw_real)(DIM + 1); // Grid cell height
- z0 = z1 = 8.0f;
-
if (isolines_get_nr())
{
iso_scale = fabs(isolines_get_threshold_min() - isolines_get_threshold_max()) / isolines_get_nr();
@@ -614,19 +612,19 @@ static void render_isolines(void)
p0.x = x_offset;
p0.y = y_offset + hn;
- p0.z = z0;
+ p0.z = z_pos;
p1.x = x_offset + wn;
p1.y = y_offset + hn;
- p1.z = z0;
+ p1.z = z_pos;
p2.x = x_offset + wn;
p2.y = y_offset;
- p2.z = z0;
+ p2.z = z_pos;
p3.x = x_offset;
p3.y = y_offset;
- p3.z = z0;
+ p3.z = z_pos;
switch(state)
{