Merge pull request #46898 from lawnjelly/ewok_fix_rotation_polarity

Batching - fix basis polarity in large fvf
This commit is contained in:
Rémi Verschelde 2021-03-11 16:12:52 +01:00 committed by GitHub
commit dc82fdcd05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2061,9 +2061,9 @@ bool C_PREAMBLE::_prefill_rect(RasterizerCanvas::Item::CommandRect *rect, FillSt
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]);
pBT[1] = pBT[0];
pBT[2] = pBT[0];