Z Depth

 
 
 

| Render Tree Usage

Category: Lens

Shader Family: Lens

Output: Color

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.

Name

The shader's name. Enter any name you like, or leave the default.

Maximum Depth

Defines the maximum depth the shader will calculate the Z-depth. The start distance is the camera location. Beyond the maximum depth, everything is white (unless Invert is toggled).

Blend Color

Blends the grayscale depth value with the object color.

Invert

Blends from white to black instead of black to white.

Render Tree Usage

This shader can be applied directly to the camera in the lens shader stack. See Applying Lens Shaders to Cameras [Cameras and Motion Blur].

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License