1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 18:10:35 +00:00

embeddings:: fixed default parameters for cylinders

This commit is contained in:
Zeno Rogue 2023-02-04 23:06:38 +01:00
parent e3b87792aa
commit e29b28ddb9

View File

@ -1112,14 +1112,14 @@ void embedding_method::auto_configure() {
} }
vid.camera = 0; vid.camera = 0;
vid.eye = 0; vid.eye = 0;
if(is_sph_in_low()) { if(is_sph_in_low() || is_cylinder()) {
vid.depth = 0; vid.depth = 0;
vid.wall_height = -1; vid.wall_height = -1;
vid.eye = -0.5; vid.eye = -0.5;
if(inverted_embedding) { if(inverted_embedding) {
vid.wall_height = 1.4; vid.wall_height = is_cylinder() ? 0.6 : 1.4;
vid.eye = 0.2; vid.eye = is_cylinder() ? 0.5 : 0.2;
vid.depth = 0.5; vid.depth = is_cylinder() ? 0 : 0.5;
} }
} }
if(supports_flat() && flat_embedding) { if(supports_flat() && flat_embedding) {
@ -1130,7 +1130,7 @@ void embedding_method::auto_configure() {
vid.eye += vid.depth * 1.5; vid.eye += vid.depth * 1.5;
vid.depth *= -1; vid.depth *= -1;
} }
if((is_euc_in_hyp() || is_euc_in_noniso()) && inverted_embedding) { if((is_euc_in_hyp() || is_euc_in_noniso()) && inverted_embedding && !is_cylinder()) {
vid.wall_height *= -1; vid.wall_height *= -1;
vid.eye = -2 * vid.depth; vid.eye = -2 * vid.depth;
} }