study/first_study/Library/PackageCache/com.unity.render-pipelines.universal@d10049dfa479/Runtime/Data/RenderStateData.cs
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +09:00

40 lines
1.2 KiB
C#

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;
}
}