docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetStencilState

    SetStencilState(int, CompareFunction, StencilOp, StencilOp, StencilOp)

    Sets up the stencil settings for the pass.

    Declaration
    public void SetStencilState(int reference, CompareFunction compareFunction, StencilOp passOp, StencilOp failOp, StencilOp zFailOp)
    Parameters
    Type Name Description
    int reference

    The stencil reference value.

    CompareFunction compareFunction

    The comparison function to use.

    StencilOp passOp

    The stencil operation to use when the stencil test passes.

    StencilOp failOp

    The stencil operation to use when the stencil test fails.

    StencilOp zFailOp

    The stencil operation to use when the stencil test fails because of depth.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)