How to make smooth underwater post process transition for water from water ue5 plugin?

I have water from the water plugin but as I understood in it post process works on the height and not on the terrain of the water, I want to do something similar as in this video, but I do not know how it can be implemented in ue5 and on the water from the plugin how to do it?

video