]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
transparency with mesa vuzlov/23995_vtk_opacity
authorViktor UZLOV <vuzlov@salomex.nnov.opencascade.com>
Wed, 5 May 2021 14:00:10 +0000 (17:00 +0300)
committerViktor UZLOV <vuzlov@salomex.nnov.opencascade.com>
Wed, 5 May 2021 14:00:10 +0000 (17:00 +0300)
src/SVTK/SVTK_ViewWindow.cxx

index 67fccd08850c5fb0df3c1792a9bc612a695e30a7..6273bd49022de3282e8a3fa724b2439f6844a6d3 100644 (file)
@@ -251,6 +251,9 @@ void SVTK_ViewWindow::Initialize(SVTK_ViewModelBase* theModel)
   myKeyFreeInteractorStyle->AddObserver(SVTK::OperationFinished,
                                         myEventCallbackCommand.GetPointer(), 0.0);
 
+  char *mesavar = getenv("SALOME_USE_MESA");
+  if (mesavar)
+    getRenderer()->SetUseDepthPeeling(1);
 
   getRenderer()->SetBackgroundAlpha(1.0);
   myInteractor->getRenderWindow()->SetMultiSamples(0);