mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-27 03:47:40 +00:00
fixed material for non-SH/SL geometries
This commit is contained in:
@@ -413,7 +413,7 @@ EX ld material(const hyperpoint& h) {
|
|||||||
if(sphere) return intval(h, Hypc);
|
if(sphere) return intval(h, Hypc);
|
||||||
else if(hyperbolic) 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 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) {
|
EX ld zlevel(const hyperpoint &h) {
|
||||||
|
|||||||
Reference in New Issue
Block a user