Commit Graph

9 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
f61a4e29c9 Added cache check to WebGPU renderer's loadShader method. Un-commented entries into config.js. Inclusions are now explicit dynamic import lambdas, so the cache functions can detect and call them; however, webpack and rollup seem to use them differently. 2025-05-20 07:57:27 -07:00
Rezmason
eea341f50c Exploring ways to preserve the vanilla JS browser demo without compromising on the bundle. Experimenting with embedding images in the bundle as data URIs 2025-05-06 12:59:02 -07:00
Rezmason
f3cd449c7d Added WebGPU support and added caching to the WebGPU version. 2025-05-05 19:07:36 -07:00
Rezmason
237990b44c Ran the format script 2025-05-05 08:52:35 -07:00
Rezmason
3843dd90d1 Moving bloom strength math to the combine steps, and fixing a redundant multiply issue in the REGL based renderer 2022-10-04 21:53:53 -07:00
Rezmason
b86b97fde9 Adding an FPS argument. The renderers now determine whether the current frame should be rendered, and passes use that to determine whether to render or not. The rain pass, however, will still update the simulation at full speed. 2022-10-03 23:45:56 -07:00
Rezmason
ec831ce6f1 Adding named debug groups to the WebGPU passes, and switching the pipeline create calls to the async methods 2022-09-11 20:09:32 -07:00
Rezmason
3da3db61f1 Camera input and mirror effect now also work in WebGPU. Added the "once" parameter, which renders a single frame. Fixed bugs in gpu-buffer. 2022-08-11 00:08:05 -07:00