Fix gradient background for tiled displays
- address paraview/paraview#22559
- The rendering of textured/gradient backgrounds is now implemented using abstract VTK rendering classes like it was done prior to !10297 (merged)
- Basically, the previous procedure rendered a full-screen quadrilateral as an overlay by using a
vtkActor2D
andvtkPolyDataMapper2D
. This had the benefit of correct viewport coordinate calculations when using tiled displays. - this MR rolls back to that approach and customizes the fragment shader for texturing or custom gradient directions.
- It was neither possible to customize shader code of 2D actors, nor pass custom uniforms. Therefore, an additional commit adds support and tests for customizing shader code of 2D actors.
- Even the OpenGL ES 3.0 2D mapper was updated to support custom shader replacements and uniforms.
backport: paraview/release
Edited by Jaswant Panchumarti (Kitware)