Stencil only masks objects with one material assigned (2 material objects always show)

You can see here that the trees always show outside the URP stencil mask here - is this a limitation of three.js stencil? Works fine in Unity viewport but not in local server/glitch through three.js.
I made one tree stump show only with 1 material and that is masked correctly

Original Post on Discord

by user 103054507105067008

Ah that might be a limitation in our stencil implementation right now

Just wanted to check as Iā€™m scoping to use Stencil in a project

by user 103054507105067008

I think I ran into this issue a while back trying to get my main scene to NOT show through a stencil. I will check if the main scene was using a multi material if i can find it again

by user 563549194137239552

see: Discord