mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 08:23:08 +00:00
fixed fisheye in 3D
This commit is contained in:
1 parent
1143cf94d2
commit
a3cea92004
1 file changed
+1
@@ -421,6 +421,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) {
|
||||
H = space_to_perspective(H);
|
||||
H[DIM] = zlev;
|
||||
ret = H / sqrt(1 + sqhypot_d(DIM+1, H));
|
||||
if(DIM == 3) ret[DIM] = zlev;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user