Hi there.
I added / changed the following things in your great dof effect:
- a desaturation effect (controlled by the 'DES' parameters).
- optimized a bit in the tight loop in PS_DepthOfField: (CenterCoC + 1) * BS_Highlight; is constant throughout the loop, so I precalculated that and moved it outside the forloop.
The desaturation effect desaturates depth pixels, meaning the more depth, the more desaturated the pixels, so you can get even more emphasis on the sharp subject.
Parameters added:
- DES Mode: 0 is normal DoF, 1 is saturate to greyscale, 2 is saturate to DES Blend Color
- DES Blend Color: the color to blend with the greyscale pixels so you can desaturate to another color instead of b/w.
- DES Blend factor, the factor with which DES Blend Color is blended onto the b/w pixels.
I used the 3.14 update, if you have changes made to this file, I can update it for you.
https://gist.github.com/FransBouma/99f041880582d35a2a25