API Reference

Class List

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 GraphicsDevice#setStencilOperation.

numberfunc

Sets stencil test function. See GraphicsDevice#setStencilFunc.

numberreadMask

Sets stencil test reading mask. See GraphicsDevice#setStencilFunc.

numberref

Sets stencil test reference value. See GraphicsDevice#setStencilFunc.

numberwriteMask

Sets stencil test writing mask. See GraphicsDevice#setStencilOperation.

numberzfail

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

numberzpass

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