Documentation
    Preparing search index...

    Interface StencilStateOptions

    What a StencilState is asked for. Every field is optional and every default is GL's own initial state, so new StencilState() describes a material that enables the stencil test and changes nothing — see StencilState.

    interface StencilStateOptions {
        depthFailOp?: StencilOp;
        failOp?: StencilOp;
        func?: StencilFunc;
        passOp?: StencilOp;
        readMask?: number;
        ref?: number;
        writeMask?: number;
    }
    Index
    depthFailOp?: StencilOp

    Initial StencilState.depthFailOp; defaults to "keep".

    failOp?: StencilOp

    Initial StencilState.failOp; defaults to "keep".

    Initial StencilState.func; defaults to "always".

    passOp?: StencilOp

    Initial StencilState.passOp; defaults to "keep".

    readMask?: number

    Initial StencilState.readMask; defaults to 0xff.

    ref?: number

    Initial StencilState.ref; defaults to 0.

    writeMask?: number

    Initial StencilState.writeMask; defaults to 0xff.