[vtkusers] How to add custom shaders in OpenGL2 backend

eternallite2 cdavid.tran at gmail.com
Wed Aug 13 18:54:01 EDT 2014


Hello thanks for the reply :) but I'm using VTK 6.2.0 with the OpenGL2
backend.

OpenGL2 seems to be mutually exclusive of VTK 6.1.0's OpenGL 1.1 backend
(like

the vtkOpenGLProperty in OpenGL2 doesn't seem to have a "setPropProgram"
function

and the vtkShaderProgram2 and vtkShader2 classes don't exist either, and

seem to be replaced with vtkglShaderProgram and vtkglShader.

Hmm...also the rendering seems to be performed in vtkOpenGLPolyDataMapper
itself where

they are dynamically replacing commented lines in vertex/fragment shader
programs to implementations.

I'm wondering how to plug in custom shader code in this new backend.

Thanks again for any replies (as it's still very new and experimental)




--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-add-custom-shaders-in-OpenGL2-backend-tp5728201p5728216.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list