mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed hemisphere+sphere lines
This commit is contained in:
parent
be949b3698
commit
c853d9d7b4
@ -2691,6 +2691,8 @@ EX void draw_model_elements() {
|
|||||||
hyperpoint a = xpush0(z);
|
hyperpoint a = xpush0(z);
|
||||||
ld cb = pconf.ball() [1][1];
|
ld cb = pconf.ball() [1][1];
|
||||||
ld sb = pconf.ball() [1][2];
|
ld sb = pconf.ball() [1][2];
|
||||||
|
|
||||||
|
if(pmodel == mdHemisphere && sphere) cb = -cb;
|
||||||
|
|
||||||
a[1] = sb * a[2] / cb;
|
a[1] = sb * a[2] / cb;
|
||||||
a[0] = sqrt(-1 + a[2] * a[2] - a[1] * a[1]);
|
a[0] = sqrt(-1 + a[2] * a[2] - a[1] * a[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user