1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

fixed fisheye in 3D

This commit is contained in:
Zeno Rogue 2019-03-23 16:31:47 +01:00
parent 1143cf94d2
commit a3cea92004

View File

@ -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;
}