Skip to content

Custom uniform variables for OpenGL GPU volume mapper

Added functionality to let users of vtkOpenGLGPURaycastMapper set the value of custom shader uniform variable. The functionality is based on a new class (vtkOpenGLUniformCache) which caches the value of custom uniform variables when set by users and sets it in the shader once the shader program is active.

See this example for a demonstration of the functionality: https://gitlab.kitware.com/drouin-simon/vtkVolumeRenderCustomUniforms

Edited by Simon Drouin

Merge request reports