1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-18 04:02:07 +00:00

sl2:: 3d-models

This commit is contained in:
Zeno Rogue
2019-08-24 14:49:49 +02:00
parent 1e6970ca28
commit fd42b45fce
4 changed files with 26 additions and 13 deletions
+3 -2
View File
@@ -569,6 +569,7 @@ void geometry_information::prepare_basics() {
}
plevel = vid.plevel_factor * scalefactor;
if(sl2) plevel = M_PI / 14;
set_sibling_limit();
@@ -650,7 +651,7 @@ namespace geom3 {
string invalid;
ld actual_wall_height() {
if(prod) return cgi.plevel;
if(hybri) return cgi.plevel;
#if CAP_GP
if(GOLDBERG && vid.gp_autoscale_heights)
return vid.wall_height * min<ld>(4 / hypot_d(2, gp::next), 1);
@@ -722,7 +723,7 @@ namespace geom3 {
human_height = vid.human_wall_ratio * wh;
if(WDIM == 3) human_height = scalefactor * vid.height_width / 2;
if(prod) human_height = min(human_height, cgi.plevel * .9);
if(hybri) human_height = min(human_height, cgi.plevel * .9);
ld reduce = (WDIM == 3 ? human_height / 2 : 0);