Versions with this page:
Versions without this page:
To add a layer to a layermask, use the logical OR operator on the original layermask and the layer to add.
originalLayerMask |= (1 << layerToAdd);