Renders an RGB image according to the surface's distance from the camera. The color increases from black to white as the distance is increased. This shader can be applied directly to a camera in the render tree or to pass camera's lens shader stack to create a depth pass.
This shader can be applied directly to the camera in the lens shader stack. See Applying Lens Shaders to Cameras [Cameras and Motion Blur].