mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
solv:: increased guaranteed drawing (without clipping) range
This commit is contained in:
parent
1c63518fff
commit
e8edff6ef7
@ -5059,7 +5059,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
||||
if(pmodel == mdSolPerspective) {
|
||||
using namespace hyperpoint_vec;
|
||||
hyperpoint H = tC0(V);
|
||||
if(abs(H[0]) <= 1 && abs(H[1]) <= 1 && abs(H[2]) <= 1) ;
|
||||
if(abs(H[0]) <= 2 && abs(H[1]) <= 2 && abs(H[2]) <= 2) ;
|
||||
else {
|
||||
hyperpoint H2 = solv::inverse_exp(H, true);
|
||||
for(hyperpoint& cpoint: clipping_planes) if((H2|cpoint) < -.2) return;
|
||||
|
Loading…
Reference in New Issue
Block a user