Minor fixes
*Seed is uint instead of int *Permutation table is uint instead of int, could lead before to program crash with negative seeds Former-commit-id: 49ad04987a09a5f5b4bcab6ee3916db9818172b6
This commit is contained in:
@@ -21,11 +21,6 @@ NzComplexNoiseBase::NzComplexNoiseBase()
|
||||
}
|
||||
}
|
||||
|
||||
const std::array<float, 30>& NzComplexNoiseBase::GetExponentArray() const
|
||||
{
|
||||
return m_exponent_array;
|
||||
}
|
||||
|
||||
float NzComplexNoiseBase::GetLacunarity() const
|
||||
{
|
||||
|
||||
@@ -44,20 +39,16 @@ float NzComplexNoiseBase::GetOctaveNumber() const
|
||||
|
||||
void NzComplexNoiseBase::SetLacunarity(float lacunarity)
|
||||
{
|
||||
// if(lacunarity != m_lacunarity)
|
||||
//{
|
||||
m_lacunarity = lacunarity;
|
||||
m_parametersModified = true;
|
||||
//}
|
||||
m_lacunarity = lacunarity;
|
||||
m_parametersModified = true;
|
||||
|
||||
}
|
||||
|
||||
void NzComplexNoiseBase::SetHurstParameter(float h)
|
||||
{
|
||||
//if(h != m_hurst)
|
||||
//{
|
||||
m_hurst = h;
|
||||
m_parametersModified = true;
|
||||
//}
|
||||
|
||||
m_hurst = h;
|
||||
m_parametersModified = true;
|
||||
}
|
||||
|
||||
void NzComplexNoiseBase::SetOctavesNumber(float octaves)
|
||||
|
||||
Reference in New Issue
Block a user