StencilAction

How to modify pixels in the stencil buffer when using lovr.graphics.stencil.

ValueDescription
replaceStencil values will be replaced with a custom value.
incrementStencil values will increment every time they are rendered to.
decrementStencil values will decrement every time they are rendered to.
incrementwrapSimilar to `increment`, but the stencil value will be set to 0 if it exceeds 255.
decrementwrapSimilar to `decrement`, but the stencil value will be set to 255 if it drops below 0.
invertStencil values will be bitwise inverted every time they are rendered to.

See also