Topic was automatically imported from the old Question2Answer platform.
Asked By
Vernon3264
Hi!
I’m trying to make a retro-styled game and I want to do a Sprite that changes its colors simulating a palette like in NES games , I tried to find tutorials but none of them worked for me, I only know that I need to do a shader for the sprite, but I don’t know how to simulate the palette.
Using a palette means you should not draw your sprites with arbitrary colors, but rather specific colors which you can then swap in a shader with a bit of math to map the original color to a palette texture coordinate, which you then use to replace the final color.