How to compress color in post processing?

Hello,

I am working on a project where I am trying to compress the color data in my scene in the post-processing phase.

For example, I would like to be able to compress an image like this:

Into an image like this during post-processing:

Does anyone know the steps to take to achieve this or some resources that could get me started?

Any help is greatly appreciated.

you want posterize colors

here is a video that may be useful for you

3 Likes