UE5.7 Refraction Screen Tearing

Hi, I have been having this issue in my water for a few engine versions and I cannot get rid of it.

  • Check the right side of the screen (the stretched lines).

    The issue seems to come from the refraction value, the pixels from outside the screen seem to be pushed inward so they cannot be processed and they are shown as straight lines.
    Any way to fix it?


    Below is the refraction side of the material, as you can see, its just a scalar

You need to account for screen percentage. Your viewport is probably not at 100%.

hmmm nope, screen percentage has been at 100% this entire time.
Doesnt seem to be the issue at hand

I made this temporary fix.
I draw a 2D rectangle on my screen and wherever its white, it applies full refraction. Whenever its black, it applies no refraction which is 1.0 refraction.
The white square on the second image is just to showcase the idea, the corners would get no refraction and the edges of the screen would get near to no refraction as well. Adapt it as much as you would like, its working good for me, tweak the values and adapt to your project.

(Not gonna mark this as an answer but as an alternative)