I know about the methods that allow you to simply hide everything through stencil depth, but I need the object to be hidden only if it is behind the mask.