Hello there!
I’d like to render some of my GameObjects into an additional pass for further processing.
I want to keep this non intrusive to any other systems so I am trying to switch render layer of my object selection before/after rendering the custom pass.
I am setting the objects to my specific layer in OnCameraSetup and setting them back to their original layer value in OnCameraCleanup.
I know the objects do change layer, if I comment out the “reset” in OnCameraCleanup. Then they also get rendered fine into the custom pass. Just when setting them back, they never seem to show up.
I’m probably misunderstanding something about the execution order or how filter settings are handled.
If you happen to have a different way to draw a specific object collection beyond layers, happy to look into that too!
Thank you!