@gjsify/example-dom-three-postprocessing-pixel 0.4.43 → 0.4.44
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 +31 -0
- package/package.json +6 -6
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/example-dom-three-postprocessing-pixel",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.44",
|
|
4
4
|
"description": "Three.js pixel post-processing example ported from refs/three/examples/webgl_postprocessing_pixel.html with Adwaita controls",
|
|
5
5
|
"main": "dist/gjs.js",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"build:assets": "cp -f src/browser/index.html dist/index.html && cp -f src/browser/webgl.css dist/webgl.css && cp -rf src/assets dist/assets"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@gjsify/webgl": "^0.4.
|
|
27
|
+
"@gjsify/webgl": "^0.4.44"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@girs/adw-1": "1.10.0-4.0.4",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@girs/gjs": "4.0.4",
|
|
33
33
|
"@girs/gobject-2.0": "2.88.0-4.0.4",
|
|
34
34
|
"@girs/gtk-4.0": "4.23.0-4.0.4",
|
|
35
|
-
"@gjsify/adwaita-icons": "^0.4.
|
|
36
|
-
"@gjsify/adwaita-web": "^0.4.
|
|
37
|
-
"@gjsify/cli": "^0.4.
|
|
38
|
-
"@gjsify/vite-plugin-blueprint": "^0.4.
|
|
35
|
+
"@gjsify/adwaita-icons": "^0.4.44",
|
|
36
|
+
"@gjsify/adwaita-web": "^0.4.44",
|
|
37
|
+
"@gjsify/cli": "^0.4.44",
|
|
38
|
+
"@gjsify/vite-plugin-blueprint": "^0.4.44",
|
|
39
39
|
"@types/node": "^25.9.1",
|
|
40
40
|
"@types/three": "^0.184.1",
|
|
41
41
|
"http-server": "^14.1.1",
|