mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix typo when generating light NNC colors
This commit is contained in:
parent
a55740a376
commit
bffc50b826
@ -705,8 +705,9 @@ void RivFaultPartMgr::updateNNCColors(size_t timeStepIndex, RimEclipseCellColors
|
|||||||
cvf::Color3f nncColor = m_defaultColor;
|
cvf::Color3f nncColor = m_defaultColor;
|
||||||
nncColor.r() += (1.0 - nncColor.r()) * 0.2;
|
nncColor.r() += (1.0 - nncColor.r()) * 0.2;
|
||||||
nncColor.g() += (1.0 - nncColor.g()) * 0.2;
|
nncColor.g() += (1.0 - nncColor.g()) * 0.2;
|
||||||
nncColor.g() += (1.0 - nncColor.b()) * 0.2;
|
nncColor.b() += (1.0 - nncColor.b()) * 0.2;
|
||||||
|
|
||||||
|
CVF_ASSERT(nncColor.isValid());
|
||||||
cvf::ref<cvf::Effect> nncEffect;
|
cvf::ref<cvf::Effect> nncEffect;
|
||||||
|
|
||||||
if (m_rimFaultCollection->showFaultFaces || m_rimFaultCollection->showOppositeFaultFaces)
|
if (m_rimFaultCollection->showFaultFaces || m_rimFaultCollection->showOppositeFaultFaces)
|
||||||
|
@ -259,6 +259,8 @@ void EffectGenerator::releaseUnreferencedEffects()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
SurfaceEffectGenerator::SurfaceEffectGenerator(const cvf::Color4f& color, PolygonOffset polygonOffset)
|
SurfaceEffectGenerator::SurfaceEffectGenerator(const cvf::Color4f& color, PolygonOffset polygonOffset)
|
||||||
{
|
{
|
||||||
|
CVF_ASSERT(color.isValid());
|
||||||
|
|
||||||
m_color = color;
|
m_color = color;
|
||||||
m_polygonOffset = polygonOffset;
|
m_polygonOffset = polygonOffset;
|
||||||
m_cullBackfaces = FC_NONE;
|
m_cullBackfaces = FC_NONE;
|
||||||
@ -271,6 +273,8 @@ SurfaceEffectGenerator::SurfaceEffectGenerator(const cvf::Color4f& color, Polygo
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
SurfaceEffectGenerator::SurfaceEffectGenerator(const cvf::Color3f& color, PolygonOffset polygonOffset)
|
SurfaceEffectGenerator::SurfaceEffectGenerator(const cvf::Color3f& color, PolygonOffset polygonOffset)
|
||||||
{
|
{
|
||||||
|
CVF_ASSERT(color.isValid());
|
||||||
|
|
||||||
m_color = cvf::Color4f(color, 1.0f);
|
m_color = cvf::Color4f(color, 1.0f);
|
||||||
m_polygonOffset = polygonOffset;
|
m_polygonOffset = polygonOffset;
|
||||||
m_cullBackfaces = FC_NONE;
|
m_cullBackfaces = FC_NONE;
|
||||||
|
Loading…
Reference in New Issue
Block a user