[vtk-developers] Update Custom Uniforms for Shaders

Ken Martin ken.martin at kitware.com
Tue Aug 23 09:38:34 EDT 2016


See this example

https://gitlab.kitware.com/vtk/vtk/blob/v7.0.0.rc2/Rendering/OpenGL2/Testing/Cxx/TestUserShader2.cxx

referenced from

http://www.vtk.org/Wiki/Shader_In_VTK

that should get you going.

 - Ken


On Mon, Aug 22, 2016 at 8:01 PM, Milef, Nicholas Boris <milefn at rpi.edu>
wrote:

> I need to update a custom uniform for a vtkOpenGLPolyDataMapper object.
> Where would be the best place for me to do this?
>
> I need to update it every render frame. I assume this would be similar to
> updating one of the color uniforms, but I can't find where those uniforms
> are updated.
>
> Thanks,
> Nick
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
>


-- 
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160823/6eb6d305/attachment-0001.html>


More information about the vtk-developers mailing list