namespace UnityEngine.Rendering.Universal { /// /// Container class for stencil rendering settings. /// [System.Serializable] public class StencilStateData { /// /// Used to mark whether the stencil values should be overridden or not. /// public bool overrideStencilState = false; /// /// The stencil reference value. /// public int stencilReference = 0; /// /// The comparison function to use. /// public CompareFunction stencilCompareFunction = CompareFunction.Always; /// /// The stencil operation to use when the stencil test passes. /// public StencilOp passOperation = StencilOp.Keep; /// /// The stencil operation to use when the stencil test fails. /// public StencilOp failOperation = StencilOp.Keep; /// /// The stencil operation to use when the stencil test fails because of depth. /// public StencilOp zFailOperation = StencilOp.Keep; } }