mirror of
https://github.com/recp/cglm.git
synced 2025-12-24 20:34:58 +00:00
34 lines
585 B
C
34 lines
585 B
C
/*
|
|
* Copyright (c), Recep Aslantas.
|
|
*
|
|
* MIT License (MIT), http://opensource.org/licenses/MIT
|
|
* Full license can be found in the LICENSE file
|
|
*/
|
|
|
|
#ifndef cglms_perlins_h
|
|
#define cglms_perlins_h
|
|
|
|
#include "../common.h"
|
|
#include "../types-struct.h"
|
|
#include "../perlin.h"
|
|
#include "vec4.h"
|
|
|
|
/*
|
|
Functions:
|
|
CGLM_INLINE float glms_perlin(vec4s point);
|
|
*/
|
|
|
|
/*!
|
|
* @brief Classic perlin noise
|
|
*
|
|
* @param[in] point 4D vector
|
|
* @returns perlin noise value
|
|
*/
|
|
CGLM_INLINE
|
|
float
|
|
glms_perlin(vec4s point) {
|
|
return glm_perlin(point.raw);
|
|
}
|
|
|
|
#endif /* cglms_perlins_h */
|