How do you create half in half out effect in water transition between above water and under water?

Hi everyone,
I need some help understanding how to recreate the effect shown in the attached image using UE4. Any advice or tip would be greatly appreciated.
Thank you in advance.
Paulo

just look at it as 2 different meshes, the “buoy” and this “metal tower” the “buoy” blocks the water, the “metal tower” overlaps (or ignore) the water
(very similar to what it is in real life)

“but what if i just have one mesh?”
you can put a “Box Collision Component” in the Actor’s blueprint in the midle of the static mesh, set the static mesh to ignore/overlap and the box collision to block it.

Hi veccher,

Thank you very much for your prompt reply. More than the effect with he mesh I was referring to the effect in which the camera is able to see above and under the water at the same time. I am not sure if I need 2 post process volumes or antihero resource in order to achieve such effect.

Same question here, is there any way we can do that using Blendable materials ? I already checked this topic : Underwater fog, half in and half out - Rendering - Unreal Engine Forums
But it didnt work, i cant set the scalar parameter :confused:

That one is from the ocean shader plugin,
you can find it here:

and is using stencil buffer to detect the water line.
Check “M_Underwater_PP” material

Here is the blueprint
https://forums.unrealengine.com/development-discussion/rendering/22804-underwater-fog-half-in-and-half-out/page2?52118-Underwater-fog-half-in-and-half-out=