1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-08 07:00:10 +00:00

rogueviz/smoothcam: used swapmatrix_iview and swapmatrix_view

This commit is contained in:
Zeno Rogue 2023-02-10 19:05:47 +01:00
parent 29d1a0c191
commit 5bdae71879

View File

@ -684,4 +684,17 @@ auto hooks = arg::add3("-smoothcam", enable_and_show)
}
});
auto hooksw = addHook(hooks_swapdim, 100, [] {
println(hlog, "swapping animation");
indenter id(2);
for(auto& anim: anims) {
anim.start = Id;
for(auto& f: anim.frames) {
transmatrix NLP = inverse(f.ori);
swapmatrix_iview(f.ori, f.V);
swapmatrix_view(NLP, f.sView);
}
}
});
}}