mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-02 05:20:32 +00:00
fixed actual_view_transform to just use inverse
This commit is contained in:
parent
5606007259
commit
32a61367b0
@ -1687,6 +1687,8 @@ EX void centerpc(ld aspd) {
|
|||||||
if(sl || vid.eye) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR + vid.eye);
|
if(sl || vid.eye) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR + vid.eye);
|
||||||
}
|
}
|
||||||
#endif
|
#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);
|
hyperpoint H = inverse(actual_view_transform) * tC0(T);
|
||||||
ld R = (zero_d(GDIM, H) && !prod) ? 0 : hdist0(H);
|
ld R = (zero_d(GDIM, H) && !prod) ? 0 : hdist0(H);
|
||||||
if(R < 1e-9) {
|
if(R < 1e-9) {
|
||||||
|
Loading…
Reference in New Issue
Block a user