Another problem with distortion

Godot Version

4.2.1

Question

Hello! I’ve created a basic distortion shader (with flat plane) but when I apply refraction, it starts to swing left (with and without a texture). Here’s some photos.


Are you after something like this:

Some more:

https://godotshaders.com/shader-tag/refraction/

I’m after something like heat distortion

I think it uses some of the same ideas, just with a noise texture applied shifting like you have, I think the screen and UV setup you have is the problem.

Lots of resources online for this like:

etc.

So, weird offset when applying distortion is uv setup?
(Sorry for my understanding skills, I’m a newbie, also I prefer visual shaders, but it lacks tutorials, also 90% of the tutorials on this topic are 2d, but mine is 3d.)