Default stencil code
Hello everybody, I have a problem with the stencil shader
I accidentally change the code in the stencil and now some things doesn't work. I think you could help me telling the default code for the mencioned shader, because I'm new working with shaders and I have no idea what I have to do.
Hey there! I can help you with this. But tell me, what is 'the stencil shader'? There is no such thing. Stencil operations are an optional feature of every shader, but there is not a 'stencil shader'. It's like saying 'the texture shader' or 'the fog shader'.
Are you perhaps referring to the Sprite $$anonymous$$ask shader?
In this link you can see the default values for Stencil settings in ShaderLab.
So please, help me help you ;-)
Yeah, the sprite mask shader I think it is. In the default texture shader I changed a few parameters, and now some things that usually work, doesn't. That's my question: I don't know how to undo to the original code.
Your answer
![](https://koobas.hobune.stream/wayback/20220612163550im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Trying to write a 2d mask shader with stencil 0 Answers
how to hide intersections between meshes 0 Answers
Stencils and zTest be buggin 0 Answers
Stencil Shader not working with Raw Image UI 0 Answers
What to do with Shaders....?! 0 Answers