In an optimized way (without going through a dozen if), I would like to compare a given color in a material with a list of colors. If the color is not part of the list of colors, it should display another one; otherwise, it should display the color.
For comparing a value to a list of values, you want to make sure the list is inside an array, and then use a for each loop (possibly for each with break node) to compare your color to each one
I don’t want a bleuprint method, this method is CPU side, but I want a comparaison method in a material, so GPU side. I know that I can chain a lot of if, but I’m wondering if there is a more optimized method.