What it does
A Depth Texture records how far visible surfaces are from the camera. Effects can read it separately from the color image, for example to fade particles where they meet the floor.
How to use it
In URP, inspect the active asset and camera depth settings, then visualize Scene Depth. Raw, Linear01 and Eye modes have different meanings; align units and coordinate spaces before comparing values.
A concrete example
Soft particles can use the difference between background eye depth and particle eye depth. Subtracting a world position directly from raw depth gives projection- and distance-dependent errors.
How to check it
- Place near and far test surfaces and check the expected grayscale relationship.
Testing and writing are separate settings - For transparent objects inspect depth writing; for custom passes also verify that depth exists at the sampling point.
Testing and writing are separate settings
Limitations
Values depend on reversed Z and projection; many transparent surfaces are absent.