Distance along spline - but in a material shader?

Anyone done distance along spline, but in a material function / node?

Wondering if is there a built-in way or would we need to make custom nodes?

Goal: at BeginPlay() give the material the spline points. Then shaders can use the distance in rendering. The splines would be static so no need for constant update.

I have never encountered getting spline points directly in the material, but you can get the spline points/distance with a blueprint and then use a Parameter collection.

With the parameter collection you set the spline points distance in the blueprint and then use those collections in the material.

1 Like