1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 09:57:41 +00:00

nisot::local_perspective moved to display_data

This commit is contained in:
Zeno Rogue
2019-11-14 17:20:55 +01:00
parent 0f84ec8dc8
commit 3eee611eca
8 changed files with 23 additions and 21 deletions

View File

@@ -13,7 +13,6 @@ EX namespace nisot {
typedef array<float, 3> ptlow;
#endif
EX transmatrix local_perspective;
#if HDR
inline bool local_perspective_used() { return nonisotropic || prod; }
#endif
@@ -1674,7 +1673,7 @@ EX namespace rots {
auto g = std::move(gmatrix);
auto g0 = std::move(gmatrix0);
ld alpha = atan2(inverse(nisot::local_perspective) * point3(1, 0, 0));
ld alpha = atan2(inverse(NLP) * point3(1, 0, 0));
bool inprod = prod;
transmatrix pView = View;