I made a colored glass object with two people behind it. I need to be able to see the two people through the glass when the game is running. The glass should only affect one of them, while the other remains unaffected by the glass. How can this function be achieved?
1 Like
To achieve that, you can use custom depth or stencil buffers. Render the unaffected character on a separate render layer or with a different material pass that ignores the glass refraction. It’s a bit like selectively applying effects in post-process—gives you full control over who the glass “touches” visually.