Change between 2 materials

Instead of branch, use a Flip Flop node, it will sequentially flip between the two.