perlin_noise.h

Back to Perlin’s classic noise

pastel/gfx/noise/

// Description: Perlin's classic noise

#ifndef PASTELGFX_PERLIN_NOISE_H
#define PASTELGFX_PERLIN_NOISE_H

#include "pastel/sys/mytypes.h"
#include "pastel/sys/vector.h"

namespace Pastel
{

    //! Perlin noise
    /*!
   The returned values are in the range [0, 1].
   */
    template <typename Real>
    Real perlinNoise(const NoDeduction<Real>& position);

    //! Perlin noise
    /*!
   The returned values are in the range [0, 1].
   */
    template <typename Real, integer N>
    Real perlinNoise(const Vector<Real, N>& position);

}

#include "pastel/gfx/noise/perlin_noise.hpp"

#endif