The following shader works in the editor, but when running the scene it doesn't work
shader_type canvas_item;
uniform bool active_color = true;
uniform vec4 color_to_replace : source_color;
uniform vec4 color_replacement : source_color;
void fragment() {
vec4 texture_color = texture(TEXTURE, UV);
if (texture_color == color_to_replace) {
texture_color = color_replacement;
}
COLOR = texture_color;
}
As you can see in the image it works fine in the editor, but when I run the scene the changes don't appear

EspaƱol
El shader no se muestra al ejecutar la escena
El siguiente shader funciona en el editor, pero al ejecutar la escena no funciona
Como se puede ver en la imagen funciona bien en el editor, pero cuando ejecuto la escena no aparecen los cambios