Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want my depth of field to be separated like this
You can use a combination of a lens distortion node and a mask.
In the lens distortion, chromatic aberration would be controlled by the Dispersion value.
With a mask you can designate areas of the screen that would be affected by such dispersion.
Required, but never shown