diff options
author | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-09 15:04:24 (GMT) |
---|---|---|
committer | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-09 15:04:24 (GMT) |
commit | 19104903490d2c67f9b385804a7f89df8f6fc48c (patch) | |
tree | 5996af7dddde1e4ae3513cfebf8d2c99d281cae5 /Smoke/renderer_gl.c | |
parent | eac915db1c03ec7a59286d529ca578cf11b21650 (diff) | |
download | 2iv35-19104903490d2c67f9b385804a7f89df8f6fc48c.zip 2iv35-19104903490d2c67f9b385804a7f89df8f6fc48c.tar.gz 2iv35-19104903490d2c67f9b385804a7f89df8f6fc48c.tar.bz2 |
nieuwe colormap fire
Diffstat (limited to 'Smoke/renderer_gl.c')
-rw-r--r-- | Smoke/renderer_gl.c | 12 |
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) { |