Switch on int for materials (scalars/grayscale textures)

This is exactly what I need!!! THANK YOU SO SO MUCH!
At first I got it wrong because I didn’t change the inputs to be vector3…
I am very grateful you are golden!!!