Why does my water have shading issues?

I have created a water shader and I am trying to add foam around objects that displays a panning texture around it. Around the edges of the foam there is a very sharp edge and it makes the water look very unnatural. Any help would be appreciated and I am happy to give more information! Thanks


Was the water created with the water volume/tools inside Unreal?

No it was just a plane, I assumed it was because it was low poly so i created a plane with a high subdivision and still had the same issue.

Let’s start removing some parts of your material to debug. Please remove refraction and let me know if it still persists.
The reason is, refraction can cause weird problems.

This is an issue with the DistanceToNearestSurface node in Unreal Engine 5. There’s no solution for it currently and a fix isn’t expected until 5.2.

You can upvote the issue here to let Epic know it is important to you.

1 Like