Commit Graph

27 Commits

Author SHA1 Message Date
Rezmason
b6570de106 Fixed some major bugs: the WebGPU cache should store loaded images and text, never GPU resource handles; renamed renderer "formulate" to "configure"; WebGPU renderer's configure function needs early returns after each major await, in case there's a new config; the render loops are now locally stored closures; renderers now have start and stop functions; fixed bugs in the REGL and WebGPU mirror passes; WebGPU bloom pass now enforces texture dimensions are greater than zero; the react component now stores the renderer type in a useRef and returns early from renderer init awaits to prevent multiple renderers from instantiating. 2025-05-25 03:30:26 -07:00
Rezmason
3b837c6f06 Massive overhaul: the renderers are now classes that implement Renderer; replaced webpack and rollup with vite; converted bundle-contents to "core" and "full" bundle profiles; renamed "inclusions" to "staticAssets", which are "url" base64-encoded images and "raw" text strings; renamed the Matrix component module to the JSX extension; built out a test scaffold at tools/test/index.html to manually test the various deploy options. 2025-05-23 12:49:10 -07:00
Rezmason
f6e12ad795 Renaming renderer to rainPass, renaming its shaders, and cleaning up the main code a little. 2021-10-20 09:58:03 -07:00
Rezmason
c85642a270 A little more cleanup in the renderer code. 2021-10-20 09:50:58 -07:00
Rezmason
28d38b032f More code cleanup. Replacing Neapolitan ice cream stripes with trans flag stripes. 2021-10-20 09:19:06 -07:00
Rezmason
91deea34d6 Ran all the JS through prettier. 2021-10-20 03:25:04 -07:00
Rezmason
d8a1409907 Pushed virtually all the shader source into shader files that load as assets. 2021-10-20 03:20:46 -07:00
Rezmason
5902ecc625 Renaming some variables 2021-10-20 01:13:55 -07:00
Rezmason
7ec03bbeb1 Beginning to explore adding loop support. Permitting the effect to loop makes it easier to generate looping video. 2021-10-20 00:14:49 -07:00
Rezmason
80f5aea2a3 Adding support for "resurrecting" volumetric code, which is rendered to a separate channel and can be given separate colors. 2021-09-19 21:52:04 -07:00
Rezmason
70d04b2b50 Cleaned up some code in the renderer. 2021-09-12 00:51:20 -07:00
Rezmason
51f1b6ebf5 Updating the README.md. Renaming "threedee" to "volumetric". 2021-09-06 17:23:54 -07:00
Rezmason
99591e1186 Old and new matrix rendering now coexist. 2021-09-06 16:35:44 -07:00
Rezmason
4add0c3324 The renderer now accepts a density parameter, that multiplies the columns.
Glyph depth now impacts brightness.
Raindrops now move forward at a steady speed.
2021-09-05 21:58:00 -07:00
Rezmason
7973a11fd7 Added transform and camera matrices to the vertex shader. The matrix renderer's update shader now specifies a depth for every glyph. 2021-09-05 18:38:48 -07:00
Rezmason
e570af5bc8 Glyphs now blend additively, and the renderer's output buffer is cleared before it's drawn to. 2021-09-03 22:59:35 -07:00
Rezmason
4e2c18d375 Glyphs in the renderer are now independent quads. 2021-09-03 22:34:46 -07:00
Rezmason
6708ab03a7 Came up with some performance improvements. Hopefully this will help it run better on more machines leading up to the sequel coming out. 2021-07-11 18:18:13 -07:00
Rezmason
021ade45e1 Passes now accept as input and provide as output Objects with FBOs as values. This allows passes to work with more than one input texture. 2020-06-26 12:46:28 -07:00
Rezmason
a48b8dffbe Cleaned up config by moving its responsibilities into the passes 2020-01-26 13:53:19 -08:00
Rezmason
99ef8bbf0a Separated color passes into separate modules.
Moved main JS into its own module.
Main module now builds passes into a pipeline, based on the value of config.effect.
The passes no longer make stubs when they're not meant to be active.
Asset loading has been moved into the passes, which resolve their ready promise when they've finished loading.
2020-01-25 23:05:54 -08:00
Rezmason
7aaf85a345 Improving the readability of the renderer, I hope. 2020-01-24 05:50:29 -08:00
Rezmason
05933a5dda More cleanup 2020-01-22 13:02:08 -08:00
Rezmason
cadd769b63 More cleanup 2020-01-22 09:14:45 -08:00
Rezmason
1d629a20c4 A couple more style tweaks. 2020-01-21 18:47:34 -08:00
Rezmason
67636db908 Adding comments, and other small adjustments 2020-01-21 12:28:08 -08:00
Rezmason
a760d6854a Rebuilt on top of REGL. 2020-01-21 12:17:17 -08:00