Only draw ref 2 where ref 1 is with stencil

I read about nested stencils, but I don’t know how to do that.

How do I use keep and increment to do nested stencils?

Stencils take some time to bend your head around, especially if you’re not too familiar with binary operations.

For something like draw 2 where ref is 1, you can do that in a few different ways. The easiest would be something like this:

Stencil {
  Ref 1
  Comp Equal
  Pass IncrSat
}

Compare the current value against 1, if it’s equal it passes the comparison and increments the value so it’s now 2.