Here’s the other GLSL code @Davide_Punzo mentioned. It’s less coupled to the vtk rendering process so it can make it simpler to do generic algorithms. At some point I plan to revisit this and see how it compares to the shader options recently added to VTK core and see if it’s still needed.