- Home /
Inverted Depth Mask?
I'm very new to working with shaders, so I have very little understanding of how this would work. I need a shader that would be applied to an invisible plane which renders only objects that are behind it. Preferably, but not absolutely necessary, objects in front of the plane wouldn't be rendered either. So only objects that are directly behind the plane get rendered.
For example:
In the scene below, adding the plane would only render the area it occupies.
Your answer
Follow this Question
Related Questions
How to use shader depth buffer offset in android on unity 5 0 Answers
Can you specify what the DepthShader masks? 0 Answers
DepthMask shader with gradient alpha -1 Answers
Alpha blended depth masking of sprites in the shape of the sprite, not the internal mesh? 0 Answers
Shader/Possibility to render nothing but the overlay 0 Answers