optimized inverses

This commit is contained in:
Zeno Rogue committed 2020-09-16 23:49:17 +02:00
1 parent cea3da31fc
commit e26f8f5a5b
16 files changed
+138 -85

No files matched your search

+2 -2
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;