mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-19 15:20:27 +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[DIM] = zlev;
|
||||
ret = H / sqrt(1 + sqhypot_d(DIM+1, H));
|
||||
if(DIM == 3) ret[DIM] = zlev;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user