correction z negatifs pour colros

This commit is contained in:
hugogogo
2021-07-24 16:36:44 +02:00
parent 04ef5aab68
commit 331e1f3388
193 changed files with 23 additions and 6095 deletions

View File

@@ -18,6 +18,7 @@ t_fdf *init_fdf(t_fdf *fdf)
fdf->offset = 50;
fdf->margin = 50;
fdf->altitude = 3;
fdf->z_amplitude = fdf->max_z - fdf->min_z;
fdf->map_size_x = (fdf->map_width - 1) * fdf->offset + 1;
fdf->map_size_y = (fdf->map_height - 1) * fdf->offset + 1;
fdf->win_size_x = fdf->map_size_x + 2 * fdf->margin;