Mask to the middleLayerShadowPath if set.