1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-30 03:50:34 +00:00

fixed actual_view_transform to just use inverse

This commit is contained in:
Zeno Rogue 2020-11-08 11:55:08 +01:00
parent 5606007259
commit 32a61367b0

View File

@ -1687,6 +1687,8 @@ EX void centerpc(ld aspd) {
if(sl || vid.eye) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR + vid.eye);
}
#endif
// ortho_inverse does not work in 2.5D, iso_inverse does not work in Nil.
// just use inverse
hyperpoint H = inverse(actual_view_transform) * tC0(T);
ld R = (zero_d(GDIM, H) && !prod) ? 0 : hdist0(H);
if(R < 1e-9) {