暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

RenderStateData.cs 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. namespace UnityEngine.Rendering.Universal
  2. {
  3. /// <summary>
  4. /// Container class for stencil rendering settings.
  5. /// </summary>
  6. [System.Serializable]
  7. public class StencilStateData
  8. {
  9. /// <summary>
  10. /// Used to mark whether the stencil values should be overridden or not.
  11. /// </summary>
  12. public bool overrideStencilState = false;
  13. /// <summary>
  14. /// The stencil reference value.
  15. /// </summary>
  16. public int stencilReference = 0;
  17. /// <summary>
  18. /// The comparison function to use.
  19. /// </summary>
  20. public CompareFunction stencilCompareFunction = CompareFunction.Always;
  21. /// <summary>
  22. /// The stencil operation to use when the stencil test passes.
  23. /// </summary>
  24. public StencilOp passOperation = StencilOp.Keep;
  25. /// <summary>
  26. /// The stencil operation to use when the stencil test fails.
  27. /// </summary>
  28. public StencilOp failOperation = StencilOp.Keep;
  29. /// <summary>
  30. /// The stencil operation to use when the stencil test fails because of depth.
  31. /// </summary>
  32. public StencilOp zFailOperation = StencilOp.Keep;
  33. }
  34. }