Shadows for polygons and rects

do be aware of the masking limits

Limits as in nesting limits?

The current maximum nested masks that the module can create is 2.

The shadows for rects and simple convex and concave polygons are all made out of a single polygon. In the case of cylinders, shadows are either made out of a single circle or a circle and a polygon, depending on if the light source is on top of the cylinder. In the case that the light is outside of the cylinder, a container is used to clip the circle shadow shape (see attached image). This means that there will almost certainly be one mask, although at this point it isn’t nested yet, per each cylinder.

As previously mentioned, all of these shadows are then placed in either a normal display group or a snapshot group. Then, if a gradient mask is applied to the group, we reach a grand total of 2 nested masks, leaving room for one more mask, if someone somehow has the need for it.