Why is my waterfoam clipped by viewdistance?

hi, I use the kinda abandoned water plugin of unreal engine and I still love to work with it.
There are a some people on the web who explained how to get the waterfoam working again in UE5.

I have achieved this by listening to this tutorial
UE5 Water Material Tutorial: Color, Transparency, Foam, and Caustics #unrealengine #gamedev

But I have an issue that no one else seems to have. The screenshot is supposed to show that the waterfoam just gets clipped very ugly after a certain distance.

I have the same issue with the fluidsim foam around physics objects that are colliding with the water surface. Whyyyyy? Please help me!

Hello FallOut, let me help you with this, try adjusting the Global Distance Field View Distance
PS: This setting may have performance implications, especially in large scenes.

I encountered the same problem and found a solution thanks to a post on Reddit.
https://www.reddit.com/r/unrealengine/comments/13pbdfj/water_body_ocean_foam_display_issue/

I hope this helps you as it helped me. If you still have any problems or questions, don’t hesitate to ask.