From a4cd7e008d016cef80f5abb278ba5f7a3806b4f6 Mon Sep 17 00:00:00 2001 From: Marcin Date: Tue, 14 Jan 2025 17:31:35 +0000 Subject: [PATCH] initial impl --- include/cglm/perlin.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/cglm/perlin.h diff --git a/include/cglm/perlin.h b/include/cglm/perlin.h new file mode 100644 index 0000000..7c74590 --- /dev/null +++ b/include/cglm/perlin.h @@ -0,0 +1,28 @@ +/* + * Copyright (c), Recep Aslantas. + * + * MIT License (MIT), http://opensource.org/licenses/MIT + * Full license can be found in the LICENSE file + */ + +#ifndef cglm_perlin_h +#define cglm_perlin_h + +#include "vec4.h" +#include "vec4-ext.h" + + +/*! + * @brief Classic perlin noise + * + * @param[in] point 4D vector + * @returns perlin noise value + */ +CGLM_INLINE +float +glm_perlin(vec4 point) { + return point[0] + point[1] + point[2] + point[3]; +} + + +#endif /* cglm_perlin_h */