fixed fisheye in 3D

This commit is contained in:
Zeno Rogue
2019-09-12 22:38:47 +02:00
parent 1143cf94d2
commit a3cea92004
+1
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;
}