mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
docs
This commit is contained in:
@@ -7,6 +7,14 @@ Header: cglm/noise.h
|
|||||||
|
|
||||||
Classic Perlin noise implementation.
|
Classic Perlin noise implementation.
|
||||||
|
|
||||||
|
Based on the work of Stefan Gustavson and Ashima Arts on "webgl-noise":
|
||||||
|
https://github.com/stegu/webgl-noise
|
||||||
|
Following Stefan Gustavson's paper "Simplex noise demystified":
|
||||||
|
http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
|
||||||
|
|
||||||
|
Implementation based on glm::perlin function:
|
||||||
|
https://github.com/g-truc/glm/blob/master/glm/gtc/noise.inl
|
||||||
|
|
||||||
Table of contents (click to go):
|
Table of contents (click to go):
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
@@ -14,6 +22,7 @@ Functions:
|
|||||||
|
|
||||||
1. :c:func:`glm_perlin_vec4`
|
1. :c:func:`glm_perlin_vec4`
|
||||||
#. :c:func:`glm_perlin_vec3`
|
#. :c:func:`glm_perlin_vec3`
|
||||||
|
#. :c:func:`glm_perlin_vec2`
|
||||||
|
|
||||||
|
|
||||||
Functions documentation
|
Functions documentation
|
||||||
@@ -39,3 +48,13 @@ Functions documentation
|
|||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
| noise value
|
| noise value
|
||||||
|
|
||||||
|
.. c:function:: float glm_perlin_vec2(vec2 point)
|
||||||
|
|
||||||
|
| Classic Perlin noise
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
| *[in]* **point** 2D point
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
| noise value
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
* Following Stefan Gustavson's paper "Simplex noise demystified":
|
* Following Stefan Gustavson's paper "Simplex noise demystified":
|
||||||
* http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
|
* http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
|
||||||
*
|
*
|
||||||
* Implementation based on glm::glc::noise.hpp:
|
* Implementation based on glm::perlin function:
|
||||||
* https://github.com/g-truc/glm/blob/master/glm/gtc/noise.inl
|
* https://github.com/g-truc/glm/blob/master/glm/gtc/noise.inl
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user