StencilAction
EditDifferent ways of updating the stencil buffer with Pass:setStencilWrite
.
Value | Description |
keep | Stencil buffer pixels will not be changed by draws. |
zero | Stencil buffer pixels will be set to zero. |
replace | Stencil buffer pixels will be replaced with a custom value. |
increment | Stencil buffer pixels will be incremented each time they're rendered to. |
decrement | Stencil buffer pixels will be decremented each time they're rendered to. |
incrementwrap | Similar to increment, but will wrap around to 0 when it exceeds 255. |
decrementwrap | Similar to decrement, but will wrap around to 255 when it goes below 0. |
invert | The bits in the stencil buffer pixels will be inverted. |