mirror of
https://github.com/recp/cglm.git
synced 2025-10-03 16:51:35 +00:00
initial impl
This commit is contained in:
28
include/cglm/perlin.h
Normal file
28
include/cglm/perlin.h
Normal file
@@ -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 */
|
Reference in New Issue
Block a user