- Home /
Transparency under depth mask
Hi everyone. I have been using a depth mask shader (like this one) for a while now, but now I am wondering if it is possible to render a transparent object under it, since the depth mask uses the render queue to determine what is masked and what isn't. Since the Transparent queue is under the mask, it gets masked out and never renders. Is it possible to render a transparent object on a higher depth of the render queue? Is it possible there's another solution to this problem? Thanks for your help!!
(For example, I have been using the depth mask to render randomly-placed openings in an otherwise solid wall mesh. Now I want to render something transparent outside that opening.)
Sorry to bump, but I'm getting the impression my problem has to do with the way the depth mask handles alpha blending. Excuse the pun, but I am way out of my depth here. Is there a blend mode that could eli$$anonymous$$ate this problem?
Your answer
![](https://koobas.hobune.stream/wayback/20220613141546im_/https://answers.unity.com/themes/thub/images/avi.jpg)