Stencil Buffer Not wokring

Avatar
  • updated
  • Fixed

Hi, Stencil buffers not working in the Shapes Gallery Sample scene

Image 881

Reporting a bug? please specify Unity version:
Unity 2022.3.44 or 2023.2.3
Reporting a bug? please specify Shapes version:
4.5.0
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Fixed

Looks like this was caused by a separate issue around material lifetimes! There's a hotfix in this thread

Avatar
Yuval Markovich

Nothing? Also tried sending a message on X

How do I get support?

Avatar
Freya Holmér creator

this is likely either a project specific Z sorting problem that makes the objects draw in a different order, or a render pipeline configuration that makes the stencil buffer not work, so this is more likely on unity's end rather than on Shapes' end. Component based shapes are regular mesh filters and mesh renderers, so they follow the same behavior as any other mesh would do

Avatar
Yuval Markovich

Thanks, I tried it in a new project and also on my own project that uses Stencil Buffer extensively so it's not like the pipeline doesnt support it

Avatar
Yuval Markovich

Did you check the sample scene lately? Are you sure it's good and it's a settings thing?

Avatar
Freya Holmér creator
  • Answer
  • Fixed

Looks like this was caused by a separate issue around material lifetimes! There's a hotfix in this thread