1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-15 22:27:38 +00:00

optimized inverses

This commit is contained in:
Zeno Rogue
2020-09-16 05:57:05 +02:00
parent cea3da31fc
commit e26f8f5a5b
16 changed files with 138 additions and 85 deletions

View File

@@ -1278,10 +1278,10 @@ void draw_stretch(dqi_poly *p) {
npoly.V = shiftless(Id);
npoly.flags &= ~(POLY_INVERSE | POLY_FORCE_INVERTED);
transmatrix T2 = stretch::translate( tC0(inverse(View)) );
transmatrix T2 = stretch::translate( tC0(iso_inverse(View)) );
transmatrix U = View * T2;
transmatrix iUV = inverse(U) * p->V.T;
transmatrix iUV = iso_inverse(U) * p->V.T;
vector<hyperpoint> hs;
vector<hyperpoint> ths;