Say I have an object that can’t be multi matted (to save calls), and I want it to take on the properties of two entire different texture sheet combinations…
Would it be faster to sample all 8 texture sheets and only use the values I need based on a mask, or would it be faster to read the mask and put each half of the shader behind an if block, dividing the tex2d’s behind each?
I’ve been told using if statements in shaders is slow, but I’m not sure just how slow
Thanks!