Under review
William Lau 3 years ago • updated by Peter Dörr (X-Super-Turboloser 1 week ago 5
Refraction seems to distort things in front of and behind it.
I presume its because the current refraction does nothing during the grabpass and grabs all pixel data within the geometry.

Here's an example of the current problem:
Under review
It's not really a bug; it's what happens when you have a screen-space effect like that. But there may be a solution, but I wouldn't count on it being fixed anytime soon
I have the same issue here.. Any help with this?

Hey Joachim! It's been a while since this post was opened and it'll be nice to know if you have any idea how to fix it. I'm developing a game in which water in really important and this refraction thing is killing me!

Please HELP!


You may be able to partially solve it by sampling the depth buffer at the refracted UV and do something else if it turns out the depth is closer to the camera than the surface itself. Though this isn't possible yet, because the Scene Depth node doesn't support custom UV input. I may add this at some point, but I'm not sure when. I wouldn't wait for it! You can always edit the shader by hand afterwards to see if you can get it to work

Don't know, if this Issue has been fixed in any new Version. In 1.30, I think it is not. Showing the same Effect in this Scene - a "Stick" of Dirt raising from Water, which is using Refraction for 'Special Effects'. Right below the Stick, the submerged Part is rendered quite nicely. Behind the Stick, the Refraction does still refract the Stick, which is not supposed to happen.

Since Holmér already anounced, that this Issue is probably a tricky one and might need some (a lot) more Time to fix: is anyone out there, which was smart enough to figure out a Solution?