Commit Graph

31 Commits

Author SHA1 Message Date
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
6663c92f99 Removing holoplay for now. 2025-05-06 08:15:57 -07:00
Rezmason
f3cd449c7d Added WebGPU support and added caching to the WebGPU version. 2025-05-05 19:07:36 -07:00
Rezmason
664f484723 Component now reuses its canvas. regl implementation reuses its regl instance, and caches resources that already loaded. 2025-05-05 18:59:18 -07:00
Rezmason
237990b44c Ran the format script 2025-05-05 08:52:35 -07:00
nohren
3bc0d5d346 Matrix React component 1.0.0 2025-04-24 08:54:03 -07:00
Rezmason
507f907096 Fixing the resize logic 2022-10-04 21:52:44 -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
95b67d1dad Detect and advise against running through SwiftShader 2022-10-02 13:20:50 -07:00
Rezmason
87bd6c1681 Adding a "testFix" URL variable to help test potential fixes to open bugs in production. 2022-10-01 21:01:06 -07:00
Rezmason
cde709b044 Renaming paletteEntries to palette 2022-09-29 22:15:01 -07:00
Rezmason
b0406978d7 It's hard to tune the glint brightness and contrast 2022-09-18 19:46:26 -07:00
Rezmason
4c6e6fd662 Removed sun shower. Thunder and ripples are now handled by a third compute shader. 2022-09-14 23:09:00 -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
33edffc99c Removing the "resurrection" effect that mirrored the Matrix Resurrections trailers, as they aren't canon and the color channels of the output textures can be put to better use 2022-09-04 23:56:49 -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
Rezmason
aabf0a32ee Double click now toggles full screen. Delayed initializing regl until the camera is set up, so its start time comes after the visitor closes the browser prompt 2022-08-02 21:39:47 -07:00
Rezmason
ad81de744d Renamed ripples pass to mirror pass 2022-08-02 21:25:54 -07:00
Rezmason
8aeb156875 By default, camera features are disabled; they're opted into by URL param and browser prompt. 2022-08-02 21:23:27 -07:00
Rezmason
503c97adeb Ripples pass now supports five simultaneous clicks; the ripples are circular, accounting for the aspect ratio; click event is handled within the ripples pass module. 2022-08-02 03:42:36 -07:00
serge
ed2fff88a8 onclick ripple 2022-07-30 17:37:34 +10:00
serge
65d0380bde 2/3 2022-07-29 19:54:52 +10:00
serge
c2eb3d0602 not bad for first time 2022-07-05 05:24:38 +10:00
Rezmason
62e9bfea82 Click-to-fullscreen now works with Safari as well. 2021-12-19 23:24:15 -08:00
Rezmason
bdd8782619 The lkg object shouldn't be retrieved from the device or spoofed unless holoplay is enabled. 2021-12-19 22:41:10 -08:00
Rezmason
1a7043a986 Moved looking glass context logic into an "lkgHelper" module. Fixed math issues. 2021-12-19 22:02:19 -08:00
Rezmason
87fa3462ea Add error handling if the holoplay service cannot be reached. 2021-12-19 12:33:29 -08:00
Rezmason
2364bbc8bc rainPass now renders multiple cameras and viewports, using data from the hardware.
Added quiltPass (which uses holoplay’s quilting shader).
Added a holoplay effect version. (Versions can also now specify a preferred renderer.)
2021-12-19 12:08:31 -08:00
Rezmason
d273573348 Non-module scripts are now imported through the JS. It's not pretty, but it keeps the WebGPU project from loading regl unnecessarily. 2021-11-15 08:05:31 -08:00
Rezmason
87c2093281 Unifying the interfaces of regl and webgpu makePass and makePipeline. 2021-11-09 09:17:01 -08:00
Rezmason
94f5f1e5ec Rearranging the shaders and scripts to hopefully make the project easier to work on 2021-10-29 09:27:28 -07:00