Here is an example that uses texture: https://lorensen.github.io/VTKExamples/site/Cxx/Rendering/StippledLine/