Fixed HybridMultiFractal*D code (missing "m_")
Former-commit-id: de44ce541d0d040f484faf58c9a308c291d99cf4
This commit is contained in:
parent
33a929c198
commit
c1751ae648
|
|
@ -53,7 +53,7 @@ float NzHybridMultiFractal3D::GetValue(float x, float y, float z, float resoluti
|
|||
|
||||
m_remainder = m_octaves - static_cast<int>(m_octaves);
|
||||
|
||||
if(remainder != 0)
|
||||
if (m_remainder != 0)
|
||||
m_value += m_remainder * m_source->GetValue(x,y,z,resolution) * m_exponent_array[static_cast<int>(m_octaves-1)];
|
||||
|
||||
return m_value/this->m_sum - m_offset;
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ float NzHybridMultiFractal4D::GetValue(float x, float y, float z, float w, float
|
|||
|
||||
m_remainder = m_octaves - static_cast<int>(m_octaves);
|
||||
|
||||
if(remainder != 0)
|
||||
if (m_remainder != 0)
|
||||
m_value += m_remainder * m_source->GetValue(x,y,z,w,resolution) * m_exponent_array[static_cast<int>(m_octaves-1)];
|
||||
|
||||
return m_value/this->m_sum - m_offset;
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ float NzHybridMultiFractal2D::GetValue(float x, float y, float resolution)
|
|||
|
||||
m_remainder = m_octaves - static_cast<int>(m_octaves);
|
||||
|
||||
if(remainder != 0)
|
||||
if (m_remainder != 0)
|
||||
m_value += m_remainder * m_source->GetValue(x,y,resolution) * m_exponent_array[static_cast<int>(m_octaves-1)];
|
||||
|
||||
return m_value/this->m_sum - m_offset;
|
||||
|
|
|
|||
Loading…
Reference in New Issue