Hello guys, I'm trying to translate a very simple and short shader, that I have listed here on shadertoy .
And here is my godot shader code .
The problem is, in shadertoy output, the shader "overlays" the image, and quantizes and dithers the colors of set image (iChannel0) ordered by bayer8x8 texture (iChannel1). I've tried using a TextureRect node with the same bayer8x8 texture, and assigning the shader to it. But for some reason it renders a weird pattern on a solid black color instead. I'm really close to having it work but I have no clue at all what can be causing this now.
Here is a screenshot from godot.
Any help is highly appreciated!