From b11e270eb57a177b5a78e661c64385d9112eccbb Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 29 Jan 2023 17:03:25 +0100 Subject: [PATCH] chasmifyPoly now uses logical coordinates --- polygons.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polygons.cpp b/polygons.cpp index 68870632..a95dd439 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -101,7 +101,7 @@ void geometry_information::chasmifyPoly(double fol, double fol2, int k) { } else { vector points; - for(int s = last->s; ss; sactual_to_logical( hpc[s] )); hpc.resize(last->s); last->flags |= POLY_TRIANGLES; last->texture_offset = 0; @@ -112,9 +112,9 @@ void geometry_information::chasmifyPoly(double fol, double fol2, int k) { if(zf == isize(points)-1) zf--; x -= zf; auto hp = points[zf] + (points[zf+1] - points[zf]) * x; - auto hf = cgi.emb->normalize_flat(hp); - auto ho = orthogonal_move(hf, fol + (fol2-fol) * y); - hpcpush(ho); + hp[2] = fol + (fol2-fol) * y; + auto hf = cgi.emb->logical_to_actual(hp); + hpcpush(hf); }; texture_order([&] (ld x, ld y) { at((1-x+y)/2, (1-x-y)/2); }); texture_order([&] (ld x, ld y) { at((1-x-y)/2, (1+x-y)/2); });