CompareDepths
Default shadow sampling mode: sampling with a comparison filter.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Field
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
CompareDepths = 0
Remarks
The texture and sampler should be declared with:
UNITY_DECLARE_SHADOWMAP(_Shadowmap);and sampled with: .
UNITY_SAMPLE_SHADOW(_Shadowmap, half3(uv, depth_for_comparison));