mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-04 06:54:30 +00:00
2D3D: switch without changing the display
This commit is contained in:
1 parent
f675c08e7e
commit
450739b133
4 files changed
+17
-6
No files matched your search
+2
-2
@@ -250,7 +250,7 @@ namespace geom3 {
|
||||
|
||||
ld lev_to_factor(ld lev) {
|
||||
if(WDIM == 3) return lev;
|
||||
if(GDIM == 3) return lev - depth;
|
||||
if(GDIM == 3) return depth - lev;
|
||||
return projection_to_factor(lev_to_projection(lev));
|
||||
}
|
||||
ld factor_to_lev(ld fac) {
|
||||
@@ -335,7 +335,7 @@ namespace geom3 {
|
||||
BIRD = 1.20;
|
||||
}
|
||||
else {
|
||||
INFDEEP = GDIM == 3 ? -10 : (euclid || sphere) ? 0.01 : lev_to_projection(0) * tanh(camera);
|
||||
INFDEEP = GDIM == 3 ? +10 : (euclid || sphere) ? 0.01 : lev_to_projection(0) * tanh(camera);
|
||||
ld wh = actual_wall_height();
|
||||
WALL = lev_to_factor(wh);
|
||||
FLOOR = lev_to_factor(0);
|
||||
|
||||
Reference in new issue
Block a user