Distortion problem

Godot Version

4.2 1

Question

Hello! I have a problem with shaders in Godot, particularly with air distortion. I want it to be a flat transparent plane, which I can distort using UV’s and noise, but I don’t understand how to do it.
You see, in Unity Shader Graph there is a node called “Scene Color”, but I have no idea, what is the analog in Godot. Can you guys help me?

You need to declare a sampler2d parameter (uniform) with the hint screen_texture

For visual shaders, you can get the screen texture via a Texture2D node. Here’s a part of a distortion shader I’ve made:

Notice how the Texture2D is set to Screen. You may use the screen_uv in the input node to distort the image.