Passing arbitrary float data to a shader through a vtkTexture
Patrick Bergeron <[email protected]> Tue, 19 Feb 2019 00:07:41 +0000
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <YQXPR0101MB077697E150C7C04AAB1C43B2D1630@YQXPR0101MB0776.CANPRD01.PROD.OUTLOOK.COM> |
Hi. I am trying to pass custom float data to my shader in the form of a vtkTexture which contains VTK_FLOAT data (4 components). As per the documentation, it appears that float data in the image buffer gets clamped in the 0-1 range, which is a huge problem for me as I'm only getting 0-1 data in the shader: I need the pixel data to be the actual float data (which can be anything, not restricted to any particular range). How can I do this in VTK ? Patrick. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers