From: Viktor UZLOV Date: Wed, 5 May 2021 14:00:10 +0000 (+0300) Subject: transparency with mesa X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fvuzlov%2F23995_vtk_opacity;p=modules%2Fgui.git transparency with mesa --- diff --git a/src/SVTK/SVTK_ViewWindow.cxx b/src/SVTK/SVTK_ViewWindow.cxx index 67fccd088..6273bd490 100644 --- a/src/SVTK/SVTK_ViewWindow.cxx +++ b/src/SVTK/SVTK_ViewWindow.cxx @@ -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);