File tree 7 files changed +819
-2
lines changed
7 files changed +819
-2
lines changed Original file line number Diff line number Diff line change 1
1
Acknowledgements
2
- ----------------
2
+ ================
3
+
4
+ Perlin noise
5
+ ------------
3
6
4
7
Perlin Noise Implementation is based on Ken Perlin's own Java reference code:
5
8
@@ -11,9 +14,14 @@ Tiled Perlin noise is based on Perlin Noise Math FAQ by M. Zucker
11
14
http://web.archive.org/web/20070708001151/\
12
15
http://www.cs.cmu.edu/~mzucker/code/perlin-noise-math-faq.html
13
16
17
+ Simplex noise
18
+ -------------
19
+
20
+ Simplex noise implementation is taken from MIT-licensed Mesa 7.5 library.
21
+ http://www.mesa3d.org/
14
22
15
23
Lua-Noise authors
16
- -----------------
24
+ =================
17
25
18
26
This Lua C module was coded by:
19
27
Original file line number Diff line number Diff line change 4
4
# Under Linux you'd need other flags to create .so.
5
5
6
6
gcc src/perlin.c -O2 -Werror -Wall --pedantic -c89 $LDFLAGS -llua -dynamiclib -undefined dynamic_lookup -o perlin.so
7
+
8
+ gcc src/mesa/prog_noise.c src/simplex.c -O2 -Werror -Wall --pedantic -c89 $LDFLAGS -llua -dynamiclib -undefined dynamic_lookup -o simplex.so
Original file line number Diff line number Diff line change
1
+ Excerpt from MIT-licensed Mesa 7.5
2
+ http://cgit.freedesktop.org/mesa/mesa/
3
+
4
+ File main/imports.h is substitute with slim version
5
+ to suit the needs of the prog_noise.c.
Original file line number Diff line number Diff line change
1
+ /*
2
+ * imports.h: drop-in replacement for mesa imports.h
3
+ * For the needs of prog_noise.c
4
+ * This file is NOT from the mesa sources.
5
+ */
6
+
7
+ #ifndef IMPORTS_H
8
+ #define IMPORTS_H
9
+
10
+ #ifdef __cplusplus
11
+ extern "C" {
12
+ #endif
13
+
14
+ typedef float GLfloat ;
15
+
16
+ #ifdef __cplusplus
17
+ }
18
+ #endif
19
+
20
+ #endif /* IMPORTS_H */
You can’t perform that action at this time.
0 commit comments