C implementation of Perlin Simplex Noise over 1,2,3, and 4 dimensions.
More...
Go to the source code of this file.
|
float | grad1 (int hash, float x) |
|
float | grad2 (int hash, float x, float y) |
|
float | grad3 (int hash, float x, float y, float z) |
|
float | grad4 (int hash, float x, float y, float z, float t) |
|
float | _slang_library_noise1 (float x) |
|
float | _slang_library_noise2 (float x, float y) |
|
float | _slang_library_noise3 (float x, float y, float z) |
|
float | _slang_library_noise4 (float x, float y, float z, float w) |
|
C implementation of Perlin Simplex Noise over 1,2,3, and 4 dimensions.
- Author
- Stefan Gustavson (stegu.nosp@m.@itn.nosp@m..liu..nosp@m.se)
◆ OFNOISE_FASTFLOOR
#define OFNOISE_FASTFLOOR |
( |
|
x | ) |
( ((x)>0) ? ((int)x) : (((int)x)-1) ) |
◆ _slang_library_noise1()
float _slang_library_noise1 |
( |
float |
x | ) |
|
|
inline |
◆ _slang_library_noise2()
float _slang_library_noise2 |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
◆ _slang_library_noise3()
float _slang_library_noise3 |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
|
inline |
◆ _slang_library_noise4()
float _slang_library_noise4 |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
float |
w |
|
) |
| |
|
inline |
◆ grad1()
float grad1 |
( |
int |
hash, |
|
|
float |
x |
|
) |
| |
|
inline |
◆ grad2()
float grad2 |
( |
int |
hash, |
|
|
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
◆ grad3()
float grad3 |
( |
int |
hash, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
|
inline |
◆ grad4()
float grad4 |
( |
int |
hash, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
float |
t |
|
) |
| |
|
inline |