I have a stride scene with alpha textures on planes and a sphere in the background. (large text renders after scene) When I activate DOF it seems to ignore my planes in the area in front of the sphere.
Unfortunately, this will not work, because DOF is a screen space effect, it only has the information of the final output, it doesn’t know of individual objects. the blur strength is then computed from the depth buffer. and since the sphere writes into the depth buffer, the value is different there.
so you have to build your own blur control mask based on the objects and control a blur texture effect with it. or render two scene textures and compose them together based on a mask or values in the depth buffer or so.
I guess you have to exclude sphere or text from DoF.
With graphics compositor i think you should be able to run DoF per render group, hover I’m not sure if DoF on 2d textured quad is possible unless it’s alpha to coverage or discard…