Getting shader code ready for palette textures.