Okay, I am really stuck on this one, I am trying to figure out how to write a shader in MSL that has two color inputs, and a character string that would perform a calculation on the two color inputs, such if the user typed a + sign, or has to type A + B in the string, the two colors would be added together. This way I don't need a switch statement that has to store multiple calculations. If anyone knows how to do this, please, please let me know.


Reply With Quote