Hello everyone,
I'm looking for a solution to use one texture for all nations color. I see i can do that by shader code, but the basis don't allow me to modify an array of pixel.
It seems we need to absolutely to respect somes color to work correctly but it seems to be possible to modify that, even the "shadow" (dark pixels) in the texture, but how ?
shader_type canvas_item;
uniform vec4 oldcol1 : hint_color;
uniform vec4 newcol1 : hint_color;
void fragment(){
vec4 currentColor = texture(TEXTURE, UV);
if (currentColor == oldcol1)
{
COLOR = newcol1;
}
else
{
COLOR = currentColor;
}
}
This is what i was able to do with this code:
This is what i want to have when i generate a vehicle: