Instancing grouping based on stencil buffer
In my current project, I'm using the stencil buffer to mask multiple objects in my scene. These are all set to prefabs, and so I have a lot of objects that use the exact same stencil buffer settings but can't be instanced. This isn't a big deal on PC, however less performant GPUs (Nintendo Switch in my case) really suffer. It would be really cool if we could generate instanced materials based on a stencil buffer preset.
Not sure how difficult this would be. Would love some insight if there are better alternatives to what I'm currently doing!