StencilAction

Different ways of updating the stencil buffer with Pass:setStencilWrite.

ValueDescription
keepStencil buffer pixels will not be changed by draws.
zeroStencil buffer pixels will be set to zero.
replaceStencil buffer pixels will be replaced with a custom value.
incrementStencil buffer pixels will be incremented each time they're rendered to.
decrementStencil buffer pixels will be decremented each time they're rendered to.
incrementwrapSimilar to increment, but will wrap around to 0 when it exceeds 255.
decrementwrapSimilar to decrement, but will wrap around to 255 when it goes below 0.
invertThe bits in the stencil buffer pixels will be inverted.

See also