mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 08:07:10 +00:00
fisheye has parameter
This commit is contained in:
1 parent
a5579af826
commit
13ea55b233
4 files changed
+14
-1
No files matched your search
@@ -497,6 +497,7 @@ EX void applymodel(hyperpoint H, hyperpoint& ret) {
|
||||
case mdFisheye: {
|
||||
ld zlev = find_zlev(H);
|
||||
H = space_to_perspective(H);
|
||||
H /= vid.fisheye_param;
|
||||
H[LDIM] = zlev;
|
||||
ret = H / sqrt(1 + sqhypot_d(GDIM+1, H));
|
||||
if(GDIM == 3) ret[LDIM] = zlev;
|
||||
|
||||
Reference in new issue
Block a user