diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-12-31 17:14:48 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-12-31 17:14:48 -0800 |
commit | fda032d3e3445f449cd82053505a399a404fa6d3 (patch) | |
tree | a2625a954b5f6b4069386662b1069ab62a3001b5 /src/rototiller.c | |
parent | 6a643daad79440988845f9242acf50055fa17c52 (diff) |
modules/submit: add bilinearly-interpolated variant
This substantially reworks the cell sampling in submit.
As a result, it's now threaded in the rendering phase which now
resembles a texture mapper sans transformations.
This produces a full-screen rendering rather than a potentially
smaller one when the resolution wasn't cleanly divisable by the grid
size.
A new module, named submit-softly has also been added to expose the
bilinearly interpolated variant. The transition between cells is also
employing a smoothstep so it's not actually linear.
The original non-interpolated version is retained as well, at the same
submit module name.
Some minor cleanups happened as well, nothing worth mentioning, except
perhaps that the cells are now a uint8_t which is fine unless someone
tries to redefine NUM_PLAYERS > 255.
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 ad3b215..2a9a469 100644 --- a/src/rototiller.c +++ b/src/rototiller.c @@ -39,6 +39,7 @@ extern rototiller_module_t ray_module; extern rototiller_module_t sparkler_module; extern rototiller_module_t stars_module; extern rototiller_module_t submit_module; +extern rototiller_module_t submit_softly_module; static rototiller_module_t *modules[] = { &roto32_module, @@ -49,6 +50,7 @@ static rototiller_module_t *modules[] = { &plasma_module, &julia_module, &submit_module, + &submit_softly_module, }; |