Stencil buffer exceeded, clipping will not work as expected

Hi everyone, i have a quick question.

I have dynamically loaded nodes with stencil on them, and everything was fine until the number of nodes was below some number (15 for me). When 16th node was draw, i receive this warning: “Stencil buffer exceeded, clipping will not work as expected” and clipping become weird.

So if there is a way to increase the size of the stencil buffer or i have to find a workaround?

I think you need to find a workaround I’m afraid.

No problem, i have already one in mind

2 Likes

We faced with same problem.
Defold uses the full stencil or is it possible to use scissors test?

We use stencil buffer for this.
Not that this is for the clipping logic between the gui nodes, and there are are some upper limits.

2 Likes