It’s a matter of setting the mask to Add or Substract, or any of the other options. One other way is to create a Shape layer, draw a shape instead of a mask and then use that layer as a Track Matte. Duplicate and place above each layer in order for it to work.
Tudor “Ted” Jelescu
Senior VFX Artist