vtkCompositePolyDataMapper2::AddShaderReplacement doesn't work
vtkCompositePolyDataMapper2
appears to create additional vtkOpenGLPolyDataMappers
under the cover, and propagates several things, but it seems the information I give to AddShaderReplacement()
is not propagated.
My alternative at the moment is to use vtkPolyDataFS
, do my own substitutions and then call SetFragmentShaderCode()
.