phaser - v4.0.0-rc.4
    Preparing search index...
    • Creates a new WebGLStencilParameters.

      Parameters

      • renderer: WebGLRenderer

        The WebGLRenderer to create the WebGLStencilParameters for.

      • Optionalenabled: boolean

        Whether the stencil test is enabled. Default false.

      • Optionalfunc: number

        The comparison function. Default GL_ALWAYS.

      • OptionalfuncRef: number

        The reference value for the stencil test. Default 0.

      • OptionalfuncMask: number

        The mask to apply to the stencil test. Default 0xFF.

      • OptionalopFail: number

        The operation to perform if the stencil test fails. Default GL_KEEP.

      • OptionalopZfail: number

        The operation to perform if the depth test fails. Default GL_KEEP.

      • OptionalopZpass: number

        The operation to perform if the stencil test passes and the depth test passes or is disabled. Default GL_KEEP.

      • Optionalclear: number

        The value to clear the stencil buffer to. Default 0.

      Returns WebGLStencilParameters