Rendering curves

Another way would be to use a sprites + special shader material to do it for you.
It would involve:

  • Calculate the bounding box of the spline segment (example)
  • Position & scale the sprite (gameobject) accordingly
  • Set the shader constants (example)
  • Render the sprites (with a new predicate in the render script)