Topic was automatically imported from the old Question2Answer platform.
Asked By
9BitStrider
How would be the best way to go about limiting my game’s color palette to the NES one? I did this with an earlier build, but was curious to see if there was another way.
Completely unrelated this is the only thing i hate about Godot.
No uniform arrays in shaders
Wakatta | 2022-12-05 15:30
@Wakatta - I don’t have much shader experience, but doesn’t this provide the support you mention?
jgodfrey | 2022-12-05 15:38
I’ll give that a try to clean up the code a bit. I’m just curious if there’s a way to limit the overall color palette of my game to the colors in the image above. Is there a way to check color range compared to X color?
Step 3: In shader params, add your palette texture. It should have all the colors in one row. I tried downloading palettes from lospec in 1x png format, works well. Set filtering off from import settings!
hye, im new to godot. could you link your demo project for me to dissect? ive been trying to do this, and the vague instructions in pllaces make it hard to follow for me
thanks!