Update, this is working with a texture object, but not a spline (and I really need it to work with the latter)