arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.render-pipelines.universal@0d0962426023/Runtime/Data/RenderStateData.cs

40 lines
1.2 KiB
C#
Raw Normal View History

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