Thank you for playing! Idea behind door masking is pretty simple. As I mentioned in one of the jam submission comments - feature that is used here called "Stencil buffer". It's not unity exclusive, but exists in pretty much all rendering apis. Main idea is straightforward, but it took some time to figure out a way to make the effect work as it should have
I'm playing with the Stencil buffer but couldn't manage to render the overlap world. I have world A and a door that connects to world B, I can clearly see what is in world B through the door, but I am unable to see any additional doors in world B. I don't think I set the comp and layer assignments correctly.
Following to the attached image, I set the white world as layer 1, which has a comp GE value. 1. Green world with comp equal value. 2. Red world with comp LE value 3. It appears that the green world constantly renders over the other world, I can see the green world through the red world, but not vice versa.
Do I need to assign a layer to the door, or is something wrong with the shader? I currently have no idea how to solve this. Would you be able to provide the asset or show a tutorial on how you make the main menu scene?