mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 08:07:10 +00:00
fixed set_view in product geometries
This commit is contained in:
1 parent
4da935a4e2
commit
3f4135079c
1 file changed
+5
-1
+5
-1
@@ -2952,7 +2952,11 @@ EX void set_view(hyperpoint camera, hyperpoint forward, hyperpoint upward) {
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user