mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-26 00:47:00 +00:00
product:: clipping fixup
This commit is contained in:
parent
87ec57f974
commit
3aefce498c
@ -5084,8 +5084,9 @@ EX void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
|||||||
}
|
}
|
||||||
if(just_gmatrix) return;
|
if(just_gmatrix) return;
|
||||||
#if MAXMDIM >= 4
|
#if MAXMDIM >= 4
|
||||||
if(WDIM == 3 && pmodel == mdPerspective && !nonisotropic) {
|
if(WDIM == 3 && pmodel == mdPerspective && !nonisotropic && !(prod && product::product_sphere())) {
|
||||||
hyperpoint H = tC0(V);
|
hyperpoint H = tC0(V);
|
||||||
|
if(prod) H = product::inverse_exp(H);
|
||||||
for(hyperpoint& cpoint: clipping_planes) if((H|cpoint) < -sin_auto(cgi.corner_bonus)) {
|
for(hyperpoint& cpoint: clipping_planes) if((H|cpoint) < -sin_auto(cgi.corner_bonus)) {
|
||||||
drawcell_in_radar(c, V);
|
drawcell_in_radar(c, V);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user