I am having some difficulties to get it running. My biggest problem is finding suitable parameters to test it out properly.
In the downsample shader (1. step):
dofEqWorld - what exactly is stored in this vector?
its used in the equation:
sceneCoc = saturate( dofEqWorld.x * depth + dofEqWorld.y );
according to its usage i think its the cocScale and cocBias value as described here but i am not sure about this (it also uses abs instead of saturate)
if this is the case, what are usual values for aperture and focallength? and should the depth value in this equation be provided as view-depth? or normalized depth? and should the depth value be linear?
there is also a similar vector used in the last step:
farCoc = saturate( dofEqFar.x * depth + dofEqFar.y );
i guess these would be the same values, right?
hopefully someone can answer these questions, because i kept playing around with values but never get any reasonable results..