diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 03:51:33 +0100 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 03:51:34 +0100 |
commit | 6f67371bb1b46579ae837d0e0c61ac1b291be743 (patch) | |
tree | 5a43692a064d84e5c5688b1b3639342555139c3c /external/include/glm/gtc/noise.hpp | |
parent | Backported to C++14 (diff) | |
download | AltCraft-6f67371bb1b46579ae837d0e0c61ac1b291be743.tar AltCraft-6f67371bb1b46579ae837d0e0c61ac1b291be743.tar.gz AltCraft-6f67371bb1b46579ae837d0e0c61ac1b291be743.tar.bz2 AltCraft-6f67371bb1b46579ae837d0e0c61ac1b291be743.tar.lz AltCraft-6f67371bb1b46579ae837d0e0c61ac1b291be743.tar.xz AltCraft-6f67371bb1b46579ae837d0e0c61ac1b291be743.tar.zst AltCraft-6f67371bb1b46579ae837d0e0c61ac1b291be743.zip |
Diffstat (limited to 'external/include/glm/gtc/noise.hpp')
-rw-r--r-- | external/include/glm/gtc/noise.hpp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/external/include/glm/gtc/noise.hpp b/external/include/glm/gtc/noise.hpp new file mode 100644 index 0000000..aec4f18 --- /dev/null +++ b/external/include/glm/gtc/noise.hpp @@ -0,0 +1,60 @@ +/// @ref gtc_noise +/// @file glm/gtc/noise.hpp +/// +/// @see core (dependence) +/// +/// @defgroup gtc_noise GLM_GTC_noise +/// @ingroup gtc +/// +/// Defines 2D, 3D and 4D procedural noise functions +/// Based on the work of Stefan Gustavson and Ashima Arts on "webgl-noise": +/// https://github.com/ashima/webgl-noise +/// Following Stefan Gustavson's paper "Simplex noise demystified": +/// http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf +/// <glm/gtc/noise.hpp> need to be included to use these functionalities. + +#pragma once + +// Dependencies +#include "../detail/setup.hpp" +#include "../detail/precision.hpp" +#include "../detail/_noise.hpp" +#include "../geometric.hpp" +#include "../common.hpp" +#include "../vector_relational.hpp" +#include "../vec2.hpp" +#include "../vec3.hpp" +#include "../vec4.hpp" + +#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED) +# pragma message("GLM: GLM_GTC_noise extension included") +#endif + +namespace glm +{ + /// @addtogroup gtc_noise + /// @{ + + /// Classic perlin noise. + /// @see gtc_noise + template <typename T, precision P, template<typename, precision> class vecType> + GLM_FUNC_DECL T perlin( + vecType<T, P> const & p); + + /// Periodic perlin noise. + /// @see gtc_noise + template <typename T, precision P, template<typename, precision> class vecType> + GLM_FUNC_DECL T perlin( + vecType<T, P> const & p, + vecType<T, P> const & rep); + + /// Simplex noise. + /// @see gtc_noise + template <typename T, precision P, template<typename, precision> class vecType> + GLM_FUNC_DECL T simplex( + vecType<T, P> const & p); + + /// @} +}//namespace glm + +#include "noise.inl" |