Clipping Stencil

It likely does not work with stencils out of the box. You’ll have to modify the OutlinePass to do what you want.

Right now Scene.overrideMaterial does not respect original material settings so the stencil properties are not used when rendering the color pass for outlines. Issue 14577 for a feature to handle this generally but it’s a complicated problem. I suggest editing the pass for your use case.

1 Like