1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-09 12:59:03 +00:00

embeddings:: better explained altitudes

This commit is contained in:
Zeno Rogue
2023-02-19 01:00:15 +01:00
parent 5a40534c85
commit 65883a53cf
3 changed files with 92 additions and 30 deletions

View File

@@ -901,9 +901,14 @@ EX namespace geom3 {
}
EX ld factor_to_lev(ld fac) {
if(mproduct) return -fac;
if(GDIM == 3) return fac;
if(WDIM == 3) return fac;
if(GDIM == 3) return vid.depth - fac;
return vid.depth - projection_to_abslev(factor_to_projection(fac));
}
EX ld to_wh(ld val) {
return factor_to_lev(val / actual_wall_height());
}
EX void do_auto_eye() {
if(!vid.auto_eye) return;
@@ -1075,8 +1080,6 @@ EX namespace geom3 {
adjust(BOTTOM, SHALLOW, 0.5);
adjust(INFDEEP, FLOOR, 1);
}
println(hlog, "WALL = ", WALL, " LOWSKY = ", LOWSKY, " SKY = ", SKY, " STAR = ", STAR, " INFDEEP = ", INFDEEP, " wh = ", wh);
}
}