spline normals based on direction

hey all

i am looking for a way to get spline direction into a normal map.
could be a way of comparing normals of particular vertex with those of its predecessor; or world position instead of normals.

it's possible such a solution already exists, though I've had no luck finding it.

if anyone has ideas, let me know. thanks.