@gjsify/example-dom-three-geometry-teapot 0.4.43 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # @gjsify/example-dom-three-geometry-teapot
2
+
3
+ A three.js Utah Teapot showcase running on GJS/GTK (via `@gjsify/webgl`'s `WebGLBridge` over `Gtk.GLArea`) and in the browser — from a shared `start(canvas)` entry point. Ported from [`three/examples/webgl_geometry_teapot`](https://threejs.org/examples/#webgl_geometry_teapot). The GJS variant renders inside a native Adwaita window; the browser variant uses `@gjsify/adwaita-web` components.
4
+
5
+ Part of the [gjsify](https://github.com/gjsify/gjsify) project — Node.js and Web APIs for GJS (GNOME JavaScript).
6
+
7
+ ## Run
8
+
9
+ ```bash
10
+ # Build first
11
+ gjsify run build
12
+
13
+ # GJS / GTK4 native window (WebGL via Gtk.GLArea)
14
+ gjsify showcase three-geometry-teapot
15
+ # or: gjsify run start
16
+
17
+ # Browser (serves dist/ on localhost:8080)
18
+ gjsify run start:browser
19
+ ```
20
+
21
+ ## What it demonstrates
22
+
23
+ - WebGL rendering on GJS via `@gjsify/webgl` (Vala bridge over `Gtk.GLArea` + libepoxy)
24
+ - three.js (`THREE.WebGLRenderer`) running unmodified on GJS
25
+ - Shared `start(canvas)` pattern — identical entry for GJS and browser
26
+ - Adwaita design language in both variants
27
+ - `gjsify build --app gjs` and `--app browser` dual-target build
28
+
29
+ ## License
30
+
31
+ MIT