2D3D:: eye level

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:05 +02:00
parent 5d7a01febe
commit 01763d4f12
5 changed files with 28 additions and 2 deletions
+2 -1
View File
@@ -1159,8 +1159,9 @@ void centerpc(ld aspd) {
transmatrix T = cwtV;
#if MAXMDIM >= 4
if(GDIM == 3 && WDIM == 2) {
geom3::do_auto_eye();
int sl = snakelevel(cwt.at);
if(sl) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR);
if(sl || vid.eye) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR + vid.eye);
}
#endif
hyperpoint H = inverse(actual_view_transform) * tC0(T);