summaryrefslogtreecommitdiff
path: root/src/rototiller.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2019-11-18 01:55:16 -0800
committerVito Caputo <vcaputo@pengaru.com>2019-11-18 01:59:13 -0800
commit01ab4fea185b451ed2d281a21ae62ba8c85e5237 (patch)
tree01ce924ffc86627c3b98a2460584cff5902aca66 /src/rototiller.c
parent975c81262faa7ed06de56974064fd918a088bc1b (diff)
swab: add a perlin noise visualization
This maps a different Z-slice through the noise field to each color channel. The slices are moved up and down through the field over time, and the size of the area each color samples is tweaked a bit to make them less coherent with the noise field cells. It could be improved, but I think the output is already neat enough to be worth sharing.
Diffstat (limited to 'src/rototiller.c')
-rw-r--r--src/rototiller.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rototiller.c b/src/rototiller.c
index 92f29fe..74ba006 100644
--- a/src/rototiller.c
+++ b/src/rototiller.c
@@ -43,6 +43,7 @@ extern rototiller_module_t snow_module;
extern rototiller_module_t sparkler_module;
extern rototiller_module_t stars_module;
extern rototiller_module_t submit_module;
+extern rototiller_module_t swab_module;
static const rototiller_module_t *modules[] = {
&flui2d_module,
@@ -56,6 +57,7 @@ static const rototiller_module_t *modules[] = {
&sparkler_module,
&stars_module,
&submit_module,
+ &swab_module,
};
typedef struct rototiller_t {
© All Rights Reserved