[vtkusers] Custom shaders

graphicsmonkey k.weatherly at gmail.com
Mon Apr 15 20:11:52 EDT 2019

Hi VTK experts,

Trying to get my head around converting some old OpenGL shaders to work with
VTK and i'm confused as to where certain values come from in some of the
examples ( E.g. Rendering/OpenGL2/Testing/Cxx/TestUserShader.cxx )

The test shader makes use of variables like normalMC, normatMatrix Etc. but
i cannot see where they are defined? If there a list of these variables

For example;

        attribute vec3 normalMC
        uniform mat3 normalMatrix
        varying vec3 normalVCVSOutput

Many thanks!

Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html

More information about the vtkusers mailing list