mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-07 22:50:10 +00:00
rogueviz/smoothcam: used swapmatrix_iview and swapmatrix_view
This commit is contained in:
parent
29d1a0c191
commit
5bdae71879
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user