You can make shaders in a “Visual Shader” if you want a node graph style instead of code.
This color replacement may work better as a splatting function
This example is essentially the same as my 3-textured island example, but using 3 source colors instead of 3 textures.
shader_type spatial;
uniform vec4 red_color: source_color = vec4(1);
uniform vec4 green_color: source_color = vec4(1);
uniform vec4 blue_color: source_color = vec4(1);
void vertex() {
vec4 r = red_color * COLOR.r;
vec4 g = green_color * COLOR.g;
vec4 b = blue_color * COLOR.b;
COLOR = r + g + b;
}
void fragment() {
ALBEDO = COLOR.rgb;
}