Skip to content

Commit

Permalink
Batching fix polygon basis polarity
Browse files Browse the repository at this point in the history
Changes based on fix in godotengine#46898
  • Loading branch information
briansemrau committed May 4, 2021
1 parent 2b429b2 commit 57e3f35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/gles_common/rasterizer_canvas_batcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -1651,9 +1651,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]);
}
////////////////////////////////////

Expand Down

0 comments on commit 57e3f35

Please sign in to comment.