Question by
UnetDev · Nov 04, 2018 at 03:04 PM ·
shadershader programmingoverlapoverdraw
Shader to overlap objects
Hey. Anyone has a shader that can block certain objects? Perhaps for this need 2 shaders, where 1 will overlap another, but will not overlap other objects without this shader?
Comment
Answer by Bodhid · Nov 06, 2018 at 02:56 PM
It sounds like Stencil Shaders are what you're looking for. Here is an explanation and some examples on how to use them https://docs.unity3d.com/Manual/SL-Stencil.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612181522im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Among Us Masking (RGB) Question 0 Answers
ShaderGraph Y-Axis Billboard 0 Answers
Shader graph: how to treat color as vector4? 1 Answer
Only render mesh over other mesh 1 Answer