11-16-2016, 01:14 AM
Too bad the Simplex noise can't be optimized as much.
It would be pretty cool if you could simply change the used noise for a generator though. We'd have to re-organize the Noise class to be some kind of interface which other classes inherit from. That way we could simply do something like this:
It would be pretty cool if you could simply change the used noise for a generator though. We'd have to re-organize the Noise class to be some kind of interface which other classes inherit from. That way we could simply do something like this:
switch (inifile.GetValueSet("Generator", "BiomalNoise3DNoiseType", "Cubic"))
{
case "Cubic":
{
m_Noise = CubicNoise(seed);
break;
}
case "Simplex":
{
m_Noise = SimplexNoise(seed);
break;
}
}

