mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-16 21:57:15 +00:00
labels are no longer displayed behind the sphere
This commit is contained in:
@@ -434,12 +434,14 @@ double zgrad0(double l1, double l2, int nom, int den) {
|
||||
bool behindsphere(const hyperpoint& h) {
|
||||
if(!sphere) return false;
|
||||
|
||||
if(mdBandAny()) return false;
|
||||
|
||||
if(vid.alpha > 1) {
|
||||
if(h[2] > -1/vid.alpha) return true;
|
||||
}
|
||||
|
||||
if(vid.alpha <= 1) {
|
||||
if(h[2] < -.8) return true;
|
||||
if(h[2] < .2-vid.alpha) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user