fixed material for non-SH/SL geometries

This commit is contained in:
Zeno Rogue 2020-05-25 23:53:31 +02:00
parent 6b7a055fd3
commit 2f28939466
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ EX ld material(const hyperpoint& h) {
if(sphere) return intval(h, Hypc);
else if(hyperbolic) return -intval(h, Hypc);
else if(sl2) return h[2]*h[2] + h[3]*h[3] - h[0]*h[0] - h[1]*h[1];
else return h[LDIM] - 1;
else return h[LDIM];
}
EX ld zlevel(const hyperpoint &h) {