A specialized canvas group for rendering hidden containers before all others (like masks).
The container which hold masks.
Add a mask to this group.
Name of the mask.
Display object to add.
Perform necessary draw operations.
Attach masks container to this canvas layer and create tile occlusion, vision masks and depth mask.
A specialized canvas group for rendering hidden containers before all others (like masks).