Custom colormap and `vtkTubeFilter`

The solution was to use InterpolateScalarsBeforeMapping:

https://www.kitware.com/what-is-interpolatescalarsbeforemapping-in-vtk/