mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-06 08:43:02 +00:00
fixed hemisphere+sphere lines
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user