How to Pass an Array of Floats, into a Material

You can use texture for that.