this shader I wrote lets me input a color palette then snap an incoming color to the color it most resembles in the palette BUT if that color is kinda between two colors I can dither the pixels to "mix" the colors without breaking the palette
shaders are FUN, DUDE!!!