Need help converting a shader from Godot 3 to Godot 4


In the above picture the shader works great in Godot 3.


In Godot 4 it displays totally wrong.

I don’t really understand how this shader works so I’m not sure how to fix it.

1 Like