Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RawDepth

Shadow sampling mode for sampling the depth value.
Read time 1 minuteLast updated 6 days ago

Definition

RawDepth = 1

Remarks

The texture and sampler can be declared with:
sampler2D _Shadowmap;
and sampled with:
tex2D(_Shadowmap, uv).r;
.