- Home /
Question by
BrentPoynton · Aug 15, 2019 at 12:10 PM ·
shadersstencilstereo
Shader stencil not working in single pass instanced rendering
I have a pair of shaders that write to/read from the stencil:
Ref 128, Comp Always, Pass Replace
Ref 128, Comp NotEqual
The shaders behave exactly as expected in multi-pass and single-pass rendering, but in single-pass instanced rendering they work fine in the Editor but fail to behave on device (HoloLens); shader 2 will not correctly evaluate the stencil value.
Any ideas?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612210638im_/https://answers.unity.com/themes/thub/images/avi.jpg)