I was trying to mask the ambient lighting to cover a building, it works because it covers the structure, but this building has windows that allow you to see inside, but when I place the character it goes "blind" when it is inside this masked area and I believe that that wasn't supposed to happen.
To facilitate understanding, I will make a video soon, and this video will have the part of occluders and ambient lighting.