You are here: Reference Guide > Filter Nodes > ZDefocus

ZDefocus

Blurs the image according to a depth map channel. This allows you to simulate depth-of-field (DOF) blurring.

In order to defocus the image, ZDefocus splits the image up into layers, each of which is assigned the same depth value everywhere and processed with a single blur size. After ZDefocus has processed all the layers, it blends them together from the back to the front of the image, with each new layer going over the top of the previous ones. This allows it to preserve the ordering of objects in the image.