My guess I could use “greater than” node to get something true/false but what how can i so the switch in between two vectors ?
You can up to a certain point using “mix shader” and “mix RGB”. The factor of those nodes switches between the 2 paths (except it can also be anywhere in between the 2 options)
etn249 etn249 Thank you. I wonder perhaps vector math node itself has something like those?
ps. Oh. I found mix node has vector option in drop down
You can do any Boolean math in shaders, not limited to if/else- it’s very simple to make an AND expression, for example, just use a Math node set to Minimum and remap the two inputs to 0 or 1 however (for example, a Greater Than node).
Minimum works because 0 and 1 = 0, 0 and 0 = 0, and 1 and 1 = 1. Minimum always takes the smallest of the two inputs, which you can quickly see gives you that same truth table. For an Or operation, you would use Maximum, and so forth
I never thought of using maximum and minimum ! I usually do AND with a multiplication & OR with an addition
And NOT with a subtraction… ![]()