MATERIAL : spline with custom points

Transferring all those points to the shader might be a bit heavy. I would recommend calculating the curve itself inside the shader to simplify the process (unless the math is somehow super complicated)

If you don’t mind reading some GLSL there are plenty of examples of graphing a line on shadertoy, such as this one or this one that should help you to achieve just that.