Combining 2 shaders into one (2d)

Godot Version

4.3

Question

I want to combine 2 shaders into one shader or achieve the same effect in a different way
Shader 1: 9-slice shader - Godot Shaders
Shader 2: Extensible Color Palette (Gradient Maps) Now with Palette Blending! - Godot Shaders

Is this even possible? I am completely new to shaders.

I mean it should be possible the question is if the result is the one you are expecting. You just have to find out the best way to add the endresult of both shaders together or if one should use the endproduct of the other one to continue their calculation