mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1282 Mesh lines : Use LEQUAL for depth test to make sure highest pri is visible
This commit is contained in:
parent
84f76e5242
commit
6c6049a317
@ -262,7 +262,7 @@ void RivFaultPartMgr::generatePartGeometry()
|
||||
|
||||
part->updateBoundingBox();
|
||||
part->setEnableMask(meshFaultBit);
|
||||
part->setPriority(RivPartPriority::PartType::MeshLines);
|
||||
part->setPriority(RivPartPriority::PartType::FaultMeshLines);
|
||||
|
||||
m_nativeFaultGridLines = part;
|
||||
}
|
||||
@ -314,7 +314,7 @@ void RivFaultPartMgr::generatePartGeometry()
|
||||
|
||||
part->updateBoundingBox();
|
||||
part->setEnableMask(meshFaultBit);
|
||||
part->setPriority(RivPartPriority::PartType::MeshLines);
|
||||
part->setPriority(RivPartPriority::PartType::FaultMeshLines);
|
||||
|
||||
m_oppositeFaultGridLines = part;
|
||||
}
|
||||
@ -403,12 +403,12 @@ void RivFaultPartMgr::updatePartEffect()
|
||||
|
||||
if (m_nativeFaultGridLines.notNull())
|
||||
{
|
||||
m_nativeFaultGridLines->setPriority(RivPartPriority::PartType::TransparentMeshLines);
|
||||
m_nativeFaultGridLines->setPriority(RivPartPriority::PartType::FaultMeshLines);
|
||||
}
|
||||
|
||||
if (m_oppositeFaultGridLines.notNull())
|
||||
{
|
||||
m_oppositeFaultGridLines->setPriority(RivPartPriority::PartType::TransparentMeshLines);
|
||||
m_oppositeFaultGridLines->setPriority(RivPartPriority::PartType::FaultMeshLines);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ public:
|
||||
Intersection,
|
||||
CrossSectionNnc,
|
||||
MeshLines,
|
||||
FaultMeshLines,
|
||||
Transparent,
|
||||
TransparentFault,
|
||||
TransparentNnc,
|
||||
@ -47,5 +48,4 @@ public:
|
||||
Highlight,
|
||||
Text
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -846,6 +846,8 @@ void MeshEffectGenerator::updateForShaderBasedRendering(cvf::Effect* effect) con
|
||||
{
|
||||
eff->setRenderState(new cvf::RenderStateLine(m_lineWidth));
|
||||
}
|
||||
|
||||
eff->setRenderState(new cvf::RenderStateDepth(true, cvf::RenderStateDepth::LEQUAL));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user