mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-27 02:20:36 +00:00
embeddings:: fixed default parameters for cylinders
This commit is contained in:
parent
e3b87792aa
commit
e29b28ddb9
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user