Increase polygon offset for surfaces to cope with GeoMech models

This commit is contained in:
Jacob Støren committed 2020-01-30 12:04:26 +01:00
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
};