mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-19 23:30:25 +00:00
fixed fisheye in 3D
This commit is contained in:
parent
1143cf94d2
commit
a3cea92004
@ -421,6 +421,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) {
|
|||||||
H = space_to_perspective(H);
|
H = space_to_perspective(H);
|
||||||
H[DIM] = zlev;
|
H[DIM] = zlev;
|
||||||
ret = H / sqrt(1 + sqhypot_d(DIM+1, H));
|
ret = H / sqrt(1 + sqhypot_d(DIM+1, H));
|
||||||
|
if(DIM == 3) ret[DIM] = zlev;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user