Create a new StencilParameters instance.
Optional
options: object = {}Options object to configure the stencil parameters.
Gets the operation to perform if stencil test is failed.
Sets the operation to perform if stencil test is failed. Can be:
Sets the comparison function that decides if the pixel should be written.
Sets the comparison function that decides if the pixel should be written, based on the current stencil buffer value, reference value, and mask value. Can be:
Gets the mask applied to stencil buffer value and reference value before comparison.
Sets the mask applied to stencil buffer value and reference value before comparison.
Gets the stencil test reference value used in comparisons.
Sets the stencil test reference value used in comparisons.
Gets the bit mask applied to the stencil value when written.
Sets the bit mask applied to the stencil value when written.
Gets the operation to perform if depth test is failed.
Sets the operation to perform if depth test is failed. Accepts the same values as fail
.
Gets the operation to perform if both stencil and depth test are passed.
Sets the 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.