Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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?

We intend to continue working on this project, maybe turn it into full steam release. You can follow us in Twitter X, it's empty for now, but we will definitely post some devlogs there, including that mechanic