How to enable global fog effect in post-processing?

How to ignore global fog in post-processing? I am currently performing delayed rendering in post-processing, but the colors are overlaid with global fog.

The code logic is similar to this Pg code, and I want to consider global fog when calculating. I want the color of the center to be affected by the global fog when it is turned on.

You will have to implement it yourself. You will need to pass the depth texture to the post-process, to get the depth from the camera position used in the fog calculation: