What would be more efficient...

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!

If statements aren’t as expensive as they used to be on desktop hardware, but they’re still quite expensive on mobile especially if the condition is for sampling different textures or if the frequency in which they change is high (like you’re using a noise texture as the mask). I would say just sampling all of the textures and blending is probably faster.