diff --git a/ApplicationCode/ModelVisualization/RivWellFracturePartMgr.cpp b/ApplicationCode/ModelVisualization/RivWellFracturePartMgr.cpp index 994439c283..096351519e 100644 --- a/ApplicationCode/ModelVisualization/RivWellFracturePartMgr.cpp +++ b/ApplicationCode/ModelVisualization/RivWellFracturePartMgr.cpp @@ -197,21 +197,21 @@ void RivWellFracturePartMgr::updatePartGeometryTexture(caf::DisplayCoordTransfor caf::ScalarMapperEffectGenerator effGen(scalarMapper, caf::PO_NEG_LARGE); - effGen.setOpacityLevel(opacityLevel); + effGen.setOpacityLevel(0.5); + effGen.discardTransparentFragments(true); if (activeView && activeView->isLightingDisabled()) { effGen.disableLighting(true); } - cvf::ref eff = effGen.generateCachedEffect(); m_part->setEffect(eff.p()); } else { - cvf::Color4f fractureColor = cvf::Color4f(activeView->stimPlanColors->defaultColor(), opacityLevel); + cvf::Color4f fractureColor = cvf::Color4f(activeView->stimPlanColors->defaultColor(), 1.0); caf::SurfaceEffectGenerator surfaceGen(fractureColor, caf::PO_1); cvf::ref eff = surfaceGen.generateCachedEffect(); diff --git a/ApplicationCode/ProjectDataModel/RimStimPlanColors.cpp b/ApplicationCode/ProjectDataModel/RimStimPlanColors.cpp index 5a6088fcc1..ebf5a2824f 100644 --- a/ApplicationCode/ProjectDataModel/RimStimPlanColors.cpp +++ b/ApplicationCode/ProjectDataModel/RimStimPlanColors.cpp @@ -309,7 +309,6 @@ void RimStimPlanColors::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrder void RimStimPlanColors::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_resultNameAndUnit); - uiOrdering.add(&m_opacityLevel); uiOrdering.add(&m_defaultColor); uiOrdering.setForgetRemainingFields(true);