[vtkusers] how to add a glsl shader program to an actor
Nil
nil.goyette at imeka.ca
Thu May 29 13:52:36 EDT 2014
charlie tian wrote
> hi all,
> From the example
> http://vtk.org/gitweb?p=VTK.git;a=blob;f=Charts/Core/Testing/Cxx/TestGLSL.cxx
> I have known how to use the shader in vtk,but I don't know how to add a
> shader to a special actor(I have actors more than one).Does any one who
> can help me? Thanks!
I have the same problem here and I can't find any information on the web. I
found vtkProperty::ShadingOff but it does nothing. Anyway, I don't want to
disable it completely, I want to choose on which actor my vtkShaderProgram2
are applied. Someone know how to do that?
--
View this message in context: http://vtk.1045678.n5.nabble.com/how-to-add-a-glsl-shader-program-to-an-actor-tp5719568p5727268.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list