This simple shader will dynamically swap the Color of UI Text between two user-defined colors, based on which of the two has a higher contrast with the background color.
This is very useful if you want the text to be readable, regardless of the background color.
Currently only works for certain on Desktop. Will be testing on IOS and Android and updating as necessary very soon!
I will also be releasing a shader pack which will incorporate this and other shaders which people will hopefully find helpful (or at least interesting).