From 01ab4fea185b451ed2d281a21ae62ba8c85e5237 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 18 Nov 2019 01:55:16 -0800 Subject: 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. --- src/rototiller.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rototiller.c') 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 { -- cgit v1.2.1