1
0
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:
Zeno Rogue
2018-04-22 11:11:47 +02:00
parent b5a84e9a4b
commit ff9051426a
3 changed files with 6 additions and 3 deletions

View File

@@ -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;