Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ShadowSamplingMode.CompareDepths

Description

Default shadow sampling mode: sampling with a comparison filter.

The texture and sampler should be declared with: UNITY_DECLARE_SHADOWMAP(_Shadowmap);

and sampled with: UNITY_SAMPLE_SHADOW(_Shadowmap, half3(uv, depth_for_comparison));.

Did you find this page useful? Please give it a rating: