Apply a limited palette to the camera

Hi all, first time posting, sorry if this is a dumb question or in the wrong category!

I am working on a project that is supposed to have a limited palette. Some 60 something colors, but I want to apply it after everything. The game processes everything, then just before it draws the frame, apply the color palette. This way I wouldn’t have to necessarily make perfect textures, they would just be given the palette. Is there any way of doing this? Google wasn’t much help. Thanks!

Hi,

That would be a post process, specifically posterization or color quantization: basically a fullscreen shader that takes the color of each pixel in your final image, and replaces it by the closest one in your palette.

Here’s a basic example: