Create a new StencilParameters instance.
Optional
options: object = {}Options object to configure the stencil parameters.
Private
_dirtyPrivate
_failPrivate
_funcPrivate
_keyPrivate
_readPrivate
_refPrivate
_writePrivate
_zfailPrivate
_zpassStatic
Readonly
DEFAULTA default stencil state.
Operation to perform if stencil test is failed. Can be:
A comparison function that decides if the pixel should be written, based on the current stencil buffer value, reference value, and mask value. Can be:
Mask applied to stencil buffer value and reference value before comparison.
Sets stencil test reference value used in comparisons.
A bit mask applied to the stencil value, when written.
Operation to perform if depth test is failed. Accepts the same values as fail
.
Operation to perform if both stencil and depth test are passed. Accepts the same values as
fail
.
Clone the stencil parameters.
A cloned StencilParameters object.
Copies the contents of a source stencil parameters to this stencil parameters.
A stencil parameters to copy from.
Self for chaining.
Holds stencil test settings.