Depth, Dust, & Position Procedural Masks tutorial

depth dust pposition_

This tutorial shows how to create Z Depth, dust, and Object Position masks that can be used in a compositing package to layer shading effects such as depth of field, dirt, dust, or snow. They use a combination of Arnold shaders such as utility, range, and state_float. Thanks to Slava Sych for the assistance with this tutorial.

A scene file can be found here.

Depth Mask

Note:

This mask directly depends on the distance from the camera.

Object Position (n) Dust Mask

Object Position (Po) Mask