Follow Focus for PostProcessing DOF effect

The following script can be used with the post processing stack. Editing the script at runtime is kind of a pain. Attach the script to an object that has the PostProcessing layer, such as the same object you are using for a post processing volume. Calculate the distance as needed – I’m just getting the…