Class: StencilParameters

pc.StencilParameters

Holds stencil test settings

Constructor

new StencilParameters(options)

Create a new StencilParameters instance
Parameters:
Name Type Description
options Object Options object to configure the stencil parameters.
Properties:
Name Type Description
func Number Sets stencil test function. See pc.GraphicsDevice#setStencilFunc
ref Number Sets stencil test reference value. See pc.GraphicsDevice#setStencilFunc
fail Number Sets operation to perform if stencil test is failed. See pc.GraphicsDevice#setStencilOperation
zfail Number Sets operation to perform if depth test is failed. See pc.GraphicsDevice#setStencilOperation
zpass Number Sets operation to perform if both stencil and depth test are passed. See pc.GraphicsDevice#setStencilOperation
readMask Number Sets stencil test reading mask. See pc.GraphicsDevice#setStencilFunc
writeMask Number Sets stencil test writing mask. See pc.GraphicsDevice#setStencilOperation
Source: