for anyone having troubles with the edge detection shader in the demo this is because you are probably using a higher version of godot. The following has the code to change based on your version.
The project comes in 4.2 version even tho the vid shows 4.3+ version at 3:40 Godot 4.2: https://docs.godotengine.org/en/4.2/tutorials/shaders/advanced_postprocessing.ht...
void vertex() {
POSITION = vec4(VERTEX, 1.0);
}
Godot 4.3+: https://docs.godotengine.org/en/4.3/tutorials/shaders/advanced_postprocessing.ht...
void vertex() {
POSITION = vec4(VERTEX.xy, 1.0, 1.0);
}
If stops working/breaks again in future look at https://docs.godotengine.org/en/stable/tutorials/shaders/advanced_postprocessing... for insight