Background: I am using VTK 6.1 with Python 2.7 and want to define my own OpenGL shaders. In VTK 6 onwards the way to do this has changed, and it should now be done using vtkShader2 rather than XML files. VTK provides wrappers for most of the underlying functionality of the C++ code using a semi-automated process which is documented here.
My problem: is it possible to access vtkShader2 from Python?
Tried so far:
- I haven't found anything on the online documentation for the Shader2 class
- vtkShader2 doesn't seem to exist when exploring the module using pydoc
- A relevant post on the official vtk users mailing list was asked in 2012 but hasn't been answered...
- No mention of shader issues on the official Python Wrapping FAQ (though the page seems targeted at VTK pre-5.6)
Any suggestions would be very welcome. If vtkShader2 can be accessed, then that would be great! If it can't be accessed, then it would be useful to know so that I (and others) can work around it...