WIP: simplifications avant restructuration. Is OK
This commit is contained in:
parent
19d9e258cc
commit
508f7e0c11
|
@ -320,9 +320,9 @@ static bool compute_space_3D (int x,
|
||||||
for (j = 0; j < y; j++){
|
for (j = 0; j < y; j++){
|
||||||
for (k = 0; k < z; k++){
|
for (k = 0; k < z; k++){
|
||||||
|
|
||||||
vx = (2 * i / (x - 1) - 1) * ((x - 1) / max);
|
vx = (2 * i / (x - 1) - 1) * (x - 1) / max;
|
||||||
vy = (2 * j / (y - 1) - 1) * ((y - 1) / max);
|
vy = (2 * j / (y - 1) - 1) * (y - 1) / max;
|
||||||
vz = (2 * k / (z - 1) - 1) * ((z - 1) / max);
|
vz = (2 * k / (z - 1) - 1) * (z - 1) / max;
|
||||||
|
|
||||||
*(vertex_origin + vertex_ndx + 0) = vx / 2;
|
*(vertex_origin + vertex_ndx + 0) = vx / 2;
|
||||||
*(vertex_origin + vertex_ndx + 1) = vy;
|
*(vertex_origin + vertex_ndx + 1) = vy;
|
||||||
|
|
Loading…
Reference in New Issue