new StencilState(reference, comparison, onStencilFail, onDepthFail, onPass, readMask, writeMask)
Parameters:
Name | Type | Description |
---|---|---|
reference |
The stencil reference value. |
|
comparison |
The stencil comparison. |
|
onStencilFail |
The operation to use when the stencil test fails. |
|
onDepthFail |
The operation to use when the depth test fails. |
|
onPass |
The operation to use when both tests succeed. |
|
readMask |
The stencil read mask. |
|
writeMask |
The stencil write mask. |