1
0
Fork 0

Batching fix polygon basis polarity

Changes based on fix in #46898

(cherry picked from commit 57e3f357dc)
This commit is contained in:
Brian Semrau 2021-05-04 10:48:58 -04:00 committed by Rémi Verschelde
parent 6a84390cd6
commit ba4f15b376
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 3 deletions

View File

@ -1661,9 +1661,8 @@ bool C_PREAMBLE::_prefill_polygon(RasterizerCanvas::Item::CommandPolygon *p_poly
const Transform2D &tr = r_fill_state.transform_combined;
pBT[0].translate.set(tr.elements[2]);
// could do swizzling in shader?
pBT[0].basis[0].set(tr.elements[0][0], tr.elements[1][0]);
pBT[0].basis[1].set(tr.elements[0][1], tr.elements[1][1]);
pBT[0].basis[0].set(tr.elements[0][0], tr.elements[0][1]);
pBT[0].basis[1].set(tr.elements[1][0], tr.elements[1][1]);
}
////////////////////////////////////