Help with pixelated post-processing

Godot Version

4.2

Question

Hi everybody, i was trying to obtain a pixelated post-processing effect in a 2D game with the Compatibility setting for rendering.

I tried all these CanvasItem shaders following the standard “ColorRect as child of a CanvasLayer” method, but none of those appeared to work correcty:

Then I tried to reimplement this GLSL shader in the Godot’s shader language but I honestly don’t have the skills (i’m confused on how to translate gl_TexCoord[0] into Godot’s shader language).

I wanted to ask what should I do? Thanks in advance.

It would help if you could clarify why the approaches you listed didn’t work; what did the shaders produce? The first two look rather simple so I wonder what went wrong.

Something like this?

1 Like