API Reference

Class List

pc.StencilParameters

Holds stencil test settings.

Summary

Properties

fail

Sets operation to perform if stencil test is failed.

func

Sets stencil test function.

readMask

Sets stencil test reading mask.

ref

Sets stencil test reference value.

writeMask

Sets stencil test writing mask.

zfail

Sets operation to perform if depth test is failed.

zpass

Sets operation to perform if both stencil and depth test are passed.

Details

Constructor

StencilParameters(options)

Create a new StencilParameters instance.

Parameters

optionsobject

Options object to configure the stencil parameters.

Properties

numberfail

Sets operation to perform if stencil test is failed. See pc.GraphicsDevice#setStencilOperation.

numberfunc

Sets stencil test function. See pc.GraphicsDevice#setStencilFunc.

numberreadMask

Sets stencil test reading mask. See pc.GraphicsDevice#setStencilFunc.

numberref

Sets stencil test reference value. See pc.GraphicsDevice#setStencilFunc.

numberwriteMask

Sets stencil test writing mask. See pc.GraphicsDevice#setStencilOperation.

numberzfail

Sets operation to perform if depth test is failed. See pc.GraphicsDevice#setStencilOperation.

numberzpass

Sets operation to perform if both stencil and depth test are passed. See pc.GraphicsDevice#setStencilOperation.