I spend most of my time programming, not on the nodes in Unreal’s material system.
I’m looking for a node which let me do something like:
“Given an array of vectors (RGB), look up RGB value X and return the closest color from given array”
This idea is quite a simple distance comparison over the elements of an array, a function, yet I don’t see such thing in the massive list of material nodes. I could do this in HLSL probably but documentation states this will not be optimized.
As a bonus, this “array” needs to be a parameter of RGB values somehow. A texture sample is acceptable in this case as long as I can pixel loop to exact values.