Skip to content

Commit

Permalink
vtkF3DRenderer fix for vtk9.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Nov 20, 2021
1 parent 7ca34de commit 8fb58dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vtkF3DRenderer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,13 @@ void vtkF3DRenderer::SetupRenderPasses()
vtkOSPRayRendererNode::SetDenoiserThreshold(0, this);

bool hasHDRI = this->GetEnvironmentTexture() != nullptr;
#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 0, 20210123)
vtkOSPRayRendererNode::SetBackgroundMode(
hasHDRI ? vtkOSPRayRendererNode::Environment : vtkOSPRayRendererNode::Backplate, this);
#else
vtkOSPRayRendererNode::SetBackgroundMode(hasHDRI ? 2 : 1, this);
#endif

#else
if (this->UseRaytracing || this->UseRaytracingDenoiser)
{
Expand Down

0 comments on commit 8fb58dc

Please sign in to comment.