Controls the front and/or back writing of individual bits in the stencil planes.
- face [in]
Specifies whether the front and/or back stencil write mask is updated.
- mask [in]
Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is composed entirely of 1's.
This method does not return a value.
Different write masks can be set on the front and back-facing stencil buffers, but attempting to render will generate the INVALID_OPERATION error and does not affect the contents of the WebGL viewport.
Stencil buffer boundary regions can be written to (that is, corner areas).
The stencil buffer isn’t modified when a rendering error occurs.
Stencil buffer values are clamped to the range [0, 2(n - 1)], where n is the size of the stencil buffer (in bits).