From f666f51bcd9a3f3ffcd1f3d70bb19c8535c435b6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 11 Oct 2022 20:00:33 +0200 Subject: [PATCH] added an option for nonisotropic_weird_transforms --- graph.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 66aa958c..d16974d6 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5025,6 +5025,9 @@ EX ld wall_radar(cell *c, transmatrix T, transmatrix LPe, ld max) { return fixed_yshift; } +/** if this is set to ON, just transform non-isotropic spaces according to View, and apply NLP to view */ +EX bool nonisotropic_weird_transforms; + EX void make_actual_view() { sphereflip = Id; if(sphereflipped()) sphereflip[LDIM][LDIM] = -1; @@ -5040,7 +5043,7 @@ EX void make_actual_view() { } camera_level = asin_auto(tC0(view_inverse(actual_view_transform * View))[2]); } - if(nonisotropic) { + if(nonisotropic && !nonisotropic_weird_transforms) { transmatrix T = actual_view_transform * View; transmatrix T2 = eupush( tC0(view_inverse(T)) ); NLP = T * T2;