You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not necessarily. If you can draw it to a dedicated surface and then composite it, you can do it very cheaply. Draw it as a triangle fan using an XOR-like blending mode. As each triangle is drawn, any out-of-bounds pixels that might be formed from concave polygons erase themselves like magic once the polygon is complete. This is akin to the "crossing number" point-in-polyon test, where any pixel that is hit an even number of times is outside the polygon and does not appear in the resulting rasterization. It does mean that self-intersecting polygons can appear to have holes in them, which may or may not be a desired feature.
Requires triangulation algo
The text was updated successfully, but these errors were encountered: