diff --git a/noise/fractal/hetero.hpp b/noise/fractal/hetero.hpp index 26c5ffed..803a9259 100644 --- a/noise/fractal/hetero.hpp +++ b/noise/fractal/hetero.hpp @@ -37,6 +37,14 @@ namespace util { namespace noise { namespace fractal { static constexpr T DEFAULT_GAIN = 1 / DEFAULT_LACUNARITY; static constexpr T DEFAULT_OFFSET = T(0.7); + hetero (seed_t, + unsigned octaves, + T H, + T frequency, + T lacunarity, + T amplitude, + T gain); + hetero (seed_t, unsigned octaves, T H, diff --git a/noise/fractal/hetero.ipp b/noise/fractal/hetero.ipp index 013b8a53..99315aea 100644 --- a/noise/fractal/hetero.ipp +++ b/noise/fractal/hetero.ipp @@ -22,6 +22,26 @@ namespace util { namespace noise { namespace fractal { /////////////////////////////////////////////////////////////////////////// template + hetero::hetero(seed_t _seed, + unsigned _octaves, + T _H, + T _frequency, + T _lacunarity, + T _amplitude, + T _gain): + hetero (_seed, + _octaves, + _H, + _frequency, + _lacunarity, + _amplitude, + _gain, + -this->basis ().bounds ().min + this->basis ().bounds ().magnitude () / T{2}) + { ; } + + + //------------------------------------------------------------------------- + template hetero::hetero(seed_t _seed, unsigned _octaves, T _H,