product:: fixed reversed 3d models

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:50:14 +02:00
1 parent d5d1780c3f
commit 78cbec039b
2 files changed
+5 -3

No files matched your search

+2
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));
}