diff options
author | Joursoir <chat@joursoir.net> | 2021-04-10 17:29:02 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-04-10 17:29:02 +0000 |
commit | a8b3118e8305fd1c668ea25e07157b625c9747ff (patch) | |
tree | 69aeec3c40e123443675da381774ef656a2c86e0 /src/include/glm/gtc/noise.hpp | |
parent | 887314d01046ed2c00db3eb7b4b227f070501aa1 (diff) | |
download | space-simulator-a8b3118e8305fd1c668ea25e07157b625c9747ff.tar.gz space-simulator-a8b3118e8305fd1c668ea25e07157b625c9747ff.tar.bz2 space-simulator-a8b3118e8305fd1c668ea25e07157b625c9747ff.zip |
add glm headers
Diffstat (limited to 'src/include/glm/gtc/noise.hpp')
-rw-r--r-- | src/include/glm/gtc/noise.hpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/include/glm/gtc/noise.hpp b/src/include/glm/gtc/noise.hpp new file mode 100644 index 0000000..3199cb3 --- /dev/null +++ b/src/include/glm/gtc/noise.hpp @@ -0,0 +1,61 @@ +/// @ref gtc_noise
+/// @file glm/gtc/noise.hpp
+///
+/// @see core (dependence)
+///
+/// @defgroup gtc_noise GLM_GTC_noise
+/// @ingroup gtc
+///
+/// Include <glm/gtc/noise.hpp> to use the features of this extension.
+///
+/// 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
+
+#pragma once
+
+// Dependencies
+#include "../detail/setup.hpp"
+#include "../detail/qualifier.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_ENABLE && !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<length_t L, typename T, qualifier Q>
+ GLM_FUNC_DECL T perlin(
+ vec<L, T, Q> const& p);
+
+ /// Periodic perlin noise.
+ /// @see gtc_noise
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_DECL T perlin(
+ vec<L, T, Q> const& p,
+ vec<L, T, Q> const& rep);
+
+ /// Simplex noise.
+ /// @see gtc_noise
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_DECL T simplex(
+ vec<L, T, Q> const& p);
+
+ /// @}
+}//namespace glm
+
+#include "noise.inl"
|