1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-19 03:34:49 +00:00

added an option for nonisotropic_weird_transforms

This commit is contained in:
Zeno Rogue 2022-10-11 20:00:33 +02:00
parent c10906d349
commit f666f51bcd

View File

@ -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;