From 18a1f93f9da89b83c9498c54dec36ea2aee51c09 Mon Sep 17 00:00:00 2001 From: Viktor UZLOV Date: Wed, 5 May 2021 17:00:10 +0300 Subject: [PATCH] transparency with mesa --- src/SVTK/SVTK_ViewWindow.cxx | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2