diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-09-17 01:08:57 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-01-17 18:51:36 -0800 |
commit | b02bf111ab873aad70c169e2159ee96c8aea690b (patch) | |
tree | 27317d2f05d73b15677ad000066b547832030f42 /src/rototiller.c | |
parent | c962c3deb21b0faec28fdabb460649b68c250eb6 (diff) |
plato: regular convex polyhedrons in 3D
plato implements very simple software-rendered 3D models of
the five convex regular polyhedra / Platonic solids
Some TODO items:
- procedurally generate vertices at runtime
- add hidden surface removal setting (Z-buffer?)
- add flat shaded rendering setting
- add gouraud shading, maybe phong too?
- show dual polyhedra
This was more about slapping together a minimal 3D wireframe
software renderer than anything to do with polyhedra, convex
regular polyhedra just seemed like an excellent substrate since
they're so simple to model.
Diffstat (limited to 'src/rototiller.c')
-rw-r--r-- | src/rototiller.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rototiller.c b/src/rototiller.c index 48056db..7e96545 100644 --- a/src/rototiller.c +++ b/src/rototiller.c @@ -41,6 +41,7 @@ extern rototiller_module_t meta2d_module; extern rototiller_module_t montage_module; extern rototiller_module_t pixbounce_module; extern rototiller_module_t plasma_module; +extern rototiller_module_t plato_module; extern rototiller_module_t ray_module; extern rototiller_module_t roto_module; extern rototiller_module_t rtv_module; @@ -60,6 +61,7 @@ static const rototiller_module_t *modules[] = { &montage_module, &pixbounce_module, &plasma_module, + &plato_module, &ray_module, &roto_module, &rtv_module, |