You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: WebGL stack at js/webgl, npm regl/twgl, smoke tests and CI
- Rename js/regl to js/webgl; renderer defaults to webgl; URL regl aliases to webgl
- Pin regl and twgl in package.json; postinstall vendors to lib/; drop duplicate lib/regl.js
- Holoplay forces WebGL when renderer=webgpu would be selected
- Playwright: effects, versions, image+local bg, gallery; WebGPU when available
- CI runs npm ci, playwright test; module check without clobbering package.json
- Track package-lock.json; add RENDERING.md and update README/SECURITY/DEV_README
Made-with: Cursor
- 💡 **Why it matters**: WebGPU provides compute shaders and better performance - essential for real-time particle systems like our rain
74
74
75
-
### REGL: Functional WebGL
75
+
### WebGL path (`js/webgl/`) and regl
76
76
77
-
- 🔗 [REGL Documentation](https://regl.party/) - WebGL made functional
78
-
- 💡 **Philosophy**: Treat graphics as pure functions - given the same inputs, always produce the same output. Very Matrix-like in its deterministic perfection.
77
+
- 🔗 [regl on npm](https://www.npmjs.com/package/regl) / [regl docs](https://regl.party/) — the WebGL renderer loads the package output from `lib/regl.min.js` (refreshed by `npm install`).
78
+
- 🔗 [RENDERING.md](RENDERING.md) — WebGPU vs WebGL, Holoplay constraints, and twgl for future glue code.
79
+
- 💡 **Philosophy**: Treat graphics as pure functions — given the same inputs, always produce the same output. Very Matrix-like in its deterministic perfection.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ _Concept_
62
62
63
63
## About
64
64
65
-
This project is a web implementation of the raining green code seen in the _Matrix_ franchise. It's built right on top of the functional WebGL wrapper, [REGL](https://regl.party), with beta support for the upcoming graphics API [WebGPU](https://github.com/gpuweb/gpuweb); its previous Three.js version is maintained in a separate branch.
65
+
This project is a web implementation of the raining green code seen in the _Matrix_ franchise. The WebGL path ([`js/webgl/`](js/webgl/)) uses the [regl](https://www.npmjs.com/package/regl) package (vendored to `lib/regl.min.js` after install); there is also a [WebGPU](https://github.com/gpuweb/gpuweb) implementation under [`js/webgpu/`](js/webgpu/). See [RENDERING.md](RENDERING.md) for how the two stacks relate. Its previous Three.js version is maintained in a separate branch.
66
66
67
67
This project runs right in the web browser; you can serve it with any HTTP/HTTPS server, with no additional setup. For example, on a Mac you can point a Terminal shell at a local copy of the project and run a simple HTTP server with Python: `cd /path/to/the/project ; python3 -m http.server`
0 commit comments