1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-27 11:57:40 +00:00

product:: fixed reversed 3d models

This commit is contained in:
Zeno Rogue
2019-08-19 12:43:39 +02:00
parent d5d1780c3f
commit 78cbec039b
2 changed files with 5 additions and 3 deletions

View File

@@ -606,11 +606,13 @@ namespace geom3 {
}
ld lev_to_factor(ld lev) {
if(prod) return -lev;
if(WDIM == 3) return lev;
if(GDIM == 3) return vid.depth - lev;
return projection_to_factor(lev_to_projection(lev));
}
ld factor_to_lev(ld fac) {
if(prod) return -fac;
if(GDIM == 3) return fac;
return vid.depth - projection_to_abslev(factor_to_projection(fac));
}