summaryrefslogtreecommitdiff
path: root/src/rototiller.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-02-08 04:49:41 -0800
committerVito Caputo <vcaputo@pengaru.com>2021-02-08 04:55:11 -0800
commitaadd3f1c3b2f299d9e68335f34a98dad2c730ea6 (patch)
tree0556336cc6126c4e824f1c27f3b3938fb2d1c455 /src/rototiller.c
parentbad854ca397cd784c4b4d8f7ff9adf1190ce16cd (diff)
modules/swarm: implement a particles swarm module
Just a fun little swarm based loosely on 80s-era boids It would be interesting to make stuff like the # of particles and the weights runtime configurable, or exposed as knobs. Using a Z-buffer for occlusions and perhaps shading by depth might make a significant improvement on the visual quality. It might also be interesting to draw the particles as lines connecting their current position with their previous, instead as pixels. Or fat pixels like stars...
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 7e96545..6857e72 100644
--- a/src/rototiller.c
+++ b/src/rototiller.c
@@ -51,6 +51,7 @@ extern rototiller_module_t spiro_module;
extern rototiller_module_t stars_module;
extern rototiller_module_t submit_module;
extern rototiller_module_t swab_module;
+extern rototiller_module_t swarm_module;
static const rototiller_module_t *modules[] = {
&compose_module,
@@ -71,6 +72,7 @@ static const rototiller_module_t *modules[] = {
&stars_module,
&submit_module,
&swab_module,
+ &swarm_module,
};
typedef struct rototiller_t {
© All Rights Reserved