CompareFunction
Depth or stencil comparison function.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public enum CompareFunction
Fields
Value | Description |
|---|---|
| Always | Always pass depth or stencil test. |
| Disabled | Depth or stencil test is disabled. |
| Equal | Pass depth or stencil test when values are equal. |
| Greater | Pass depth or stencil test when new value is greater than current value. |
| GreaterEqual | Pass depth or stencil test when new value is greater or equal than current value. |
| Less | Pass depth or stencil test when new value is less than current value. |
| LessEqual | Pass depth or stencil test when new value is less or equal than current value. |
| Never | Never pass depth or stencil test. |
| NotEqual | Pass depth or stencil test when values are different. |