@gjsify/example-dom-three-postprocessing-pixel 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-postprocessing-pixel
2
+
3
+ A three.js pixel post-processing 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_postprocessing_pixel`](https://threejs.org/examples/#webgl_postprocessing_pixel). Demonstrates three.js `EffectComposer` with a custom pixel/posterize shader running on native GJS WebGL.
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-postprocessing-pixel
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
+ - three.js post-processing (`EffectComposer` + pixel shader) on GJS
24
+ - WebGL rendering via `@gjsify/webgl` (Vala bridge over `Gtk.GLArea` + libepoxy)
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