[Texture] Added custom palette management.