mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
fixed set_view in product geometries
This commit is contained in:
parent
4da935a4e2
commit
3f4135079c
@ -2952,7 +2952,11 @@ EX void set_view(hyperpoint camera, hyperpoint forward, hyperpoint upward) {
|
|||||||
|
|
||||||
if(det(rotator) < 0) rotator[0] = -rotator[0];
|
if(det(rotator) < 0) rotator[0] = -rotator[0];
|
||||||
|
|
||||||
View = rotator * iso_inverse(rgpushxto0(camera));
|
View = iso_inverse(rgpushxto0(camera));
|
||||||
|
if(prod)
|
||||||
|
NLP = rotator;
|
||||||
|
else
|
||||||
|
View = rotator * View;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user