players on the left, here is the shader
shader_type canvas_item;
uniform bool enable_white = true; // Boolean variable to enable/disable effect
void fragment() {
vec4 current_pixel = texture(TEXTURE, UV);
if (enable_white) {
// Set the output color to white
COLOR = vec4(1.0, 1.0, 1.0, current_pixel.a); // RGB and Alpha
} else {
// Keep the original color
COLOR = vec4(current_pixel.r, current_pixel.g, current_pixel.b, current_pixel.a);
}
}
this enable_white is off by default for all the players