Fixed bug in the palette shader: it was inverting the color coordinates.