[vtkusers] vtkShaderProgram2 Example

Francois Bertel francois.bertel at kitware.com
Thu Oct 2 15:59:02 EDT 2008


The current shader mechanism is attached to a vtkProperty which
restricts is usage to material shaders on polydata mappers.
It is unusable for other kind of mappers (volume mappers), or
algorithm working at the renderer level, not at the prop level (depth
peeling).

vtkShaderProgram2 is just pretty much a wrapper above the OpenGL calls
so it can be used in more cases.

What do you want to do with your geometry shader?

PS: I just updated the .h accordingly.

On Thu, Oct 2, 2008 at 11:35 AM, pjtr hahn <pjtr.hahn at googlemail.com> wrote:
> Oh, ok I didn't saw that. Just looked into the doxygen docs. However
> any Idee what would be the best way to integrate geomentry shaders? I
> thought of patching VTK to extend the mechanism that is currently used
> for vertex and fragment shaders.
>
> 2008/10/2 Francois Bertel <francois.bertel at kitware.com>:
>> As I said in the cvs log, don't play with vtkShaderProgram2,
>> vtkFrameBufferObject, vtkPixelBufferObject, vtkTextureObject yet.




-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtkusers mailing list