mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-03 12:50:52 -06:00
Increase polygon offset for surfaces to cope with GeoMech models
This commit is contained in:
1 parent
ddb5d0fd30
commit
35a8a96b97
3 files changed
+5
-2
No files matched your search
@@ -136,6 +136,7 @@ cvf::ref<cvf::RenderStatePolygonOffset> EffectGenerator::createAndConfigurePolyg
|
||||
{
|
||||
case PO_1: rs->setFactor(1.0f); rs->setUnits(1.0f); break;
|
||||
case PO_2: rs->setFactor(2.0f); rs->setUnits(2.0f); break;
|
||||
case PO_POS_LARGE: rs->setFactor(3.0f); rs->setUnits(50.0f); break;
|
||||
case PO_NEG_LARGE: rs->setFactor(-1.0f); rs->setUnits(-30.0f); break;
|
||||
default:
|
||||
CVF_FAIL_MSG("Unhandled polygon offset enum");
|
||||
|
||||
@@ -67,6 +67,7 @@ enum PolygonOffset
|
||||
PO_NONE, // No polygon offset
|
||||
PO_1, // 'Normal' positive polygon offset, equal to configurePolygonPositiveOffset(), ie factor=unit=1.0
|
||||
PO_2, // More positive offset
|
||||
PO_POS_LARGE, // Super high poly offset for special circumstances
|
||||
PO_NEG_LARGE // Currently, a large negative offset
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user