mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
fixed clipping: do not do it in 2D!
This commit is contained in:
parent
dc54135d5f
commit
2f0448dbc3
@ -5047,7 +5047,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
||||
}
|
||||
if(just_gmatrix) return;
|
||||
#if MAXMDIM >= 4
|
||||
if(pmodel == mdPerspective) {
|
||||
if(WDIM == 3 && pmodel == mdPerspective) {
|
||||
using namespace hyperpoint_vec;
|
||||
hyperpoint H = tC0(V);
|
||||
for(hyperpoint& cpoint: clipping_planes) if((H|cpoint) < -sin_auto(cgi.corner_bonus)) {
|
||||
|
Loading…
Reference in New Issue
Block a user