Source

Branch

1/ @ko_yuki_lo

@iquilezles

Thanks for that. I’ve been told that the “if” node wad heavier a while ago. So i was using lerp in my shaders in unreal engine. Im not even putting the step because i ensure the value to be 0 or 1 into a parameter. Someone told me that actually “if” node is not that heavy

2/ @iquilezles

@ko_yuki_lo

Always measure (and/or check generated code)