Hi, everyone!
I want to use the DOF with orthographic Camera in URP, but don’t know how to adjust the “Focus Distance” value.
I’m using 2021.2.0b13, URP in 12.0.0.
My test scene likes that:
Camera in (0, 0, 0), three planes in (-2, 0, 8), (0, 0, 5), (2, 0, 2):

Camera and postprocessing settings likes that:
In orthographic camera, in order to focus a target, I must try the “Focus Distance” value little by little, when other setting parameters change (such as “Focal Length”, “Aperture”, camera’s position, camera’s “Clipping Planes”), I must re-try the “Focus Distance” value to re-focus the target, it is inconvenient. And I don’t know the connection of them, it seems like they have complex influence relationship, so I also can’t calculate the “Focus Distance” value precisely, it is the reason why I must try it little by little.My sample likes that:
To focus the target in Z:8(the left one), the “Focus Distance” value is 3.55.
To focus the target in Z:5(the middle one), the “Focus Distance” value is 1.8.
To focus the target in Z:2(the right one), the “Focus Distance” value is 1.22.
But in perspective camera, the “Focus Distance” value is easy to use, it means the offset between camera and target, so I can focus a target precisely, the sample likes that:
To focus the target in Z:8(the left one), the “Focus Distance” value is 8.
To focus the target in Z:5(the middle one), the “Focus Distance” value is 5.
To focus the target in Z:2(the right one), the “Focus Distance” value is 2.
My question is:
- Is there a auto method that I can use in orthographic camera to focus the target precisely?
- If the method does not exist, what is the connection between “Focus Distance” value and other setting parameters, and how to calculate “Focus Distance” value precisely?
- Is this a bug or a feature, will it be repaired in the future?
Thank you for reading to the end!!!


