hz-particles 1.3.0 → 1.4.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 +15 -8
- package/dist-lib/hz-particles.cjs +61 -19
- package/dist-lib/hz-particles.d.ts +16 -1
- package/dist-lib/hz-particles.mjs +756 -753
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,10 +19,9 @@ export function Scene() {
|
|
|
19
19
|
}
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
- **
|
|
24
|
-
- **
|
|
25
|
-
- **Docs:** https://YOUR-SITE/docs
|
|
22
|
+
- **Prompt FX generator / editor:** https://particles.hole.zone/editor
|
|
23
|
+
- **Gallery (live WebGPU previews):** https://particles.hole.zone/discover
|
|
24
|
+
- **Docs:** https://particles.hole.zone/docs
|
|
26
25
|
- **NPM:** https://www.npmjs.com/package/hz-particles
|
|
27
26
|
|
|
28
27
|
## Why hz-particles?
|
|
@@ -59,6 +58,10 @@ HZ editor (manual or prompt) → preset (JSON / .hzfx) → faithful WebGPU r
|
|
|
59
58
|
frustum, hemisphere, disc, annulus, arc, spiral, polygon, `cubeSurface`, `sphereSurface`,
|
|
60
59
|
`boxFrame`, and more
|
|
61
60
|
- **Real-time physics** — gravity, attractors, drag, velocity, lifetime
|
|
61
|
+
- **Particle orientation modes** — `billboard` (fixed/random/velocity-aligned), `oriented` (a fixed
|
|
62
|
+
world angle via Euler `orientX/Y/Z`), and `cylindrical` (upright, faces the camera horizontally)
|
|
63
|
+
- **Keyframe animation** — animate per-system parameters over time with curves + easing
|
|
64
|
+
(`keyframes` + `keyframesEnabled`), driven by the unified clock; per-emitter `startAt` sequencing
|
|
62
65
|
- **Serialized presets** — self-contained `.hzfx` binary package (textures + GLB inlined) or plain JSON
|
|
63
66
|
- **3D object support** — static 3D objects alongside particle systems
|
|
64
67
|
|
|
@@ -296,6 +299,11 @@ Presets are plain `SceneData`. A few key per-system fields:
|
|
|
296
299
|
| `bloom` | `boolean` | Enable bloom glow on particles |
|
|
297
300
|
| `gravity` | `number` | Gravity strength applied to particles |
|
|
298
301
|
| `damping` | `number` | Velocity damping factor (0 = no drag, 1 = full stop) |
|
|
302
|
+
| `rotationMode` | `string` | Particle orientation: `fixed` / `random` / `velocity` (billboard), `oriented` (fixed world angle), `cylindrical` (upright, camera-facing) |
|
|
303
|
+
| `orientX` / `orientY` / `orientZ` | `number` | Euler angles (radians) for `rotationMode: 'oriented'` |
|
|
304
|
+
| `keyframesEnabled` | `boolean` | Enable keyframe animation of system parameters over time |
|
|
305
|
+
| `keyframes` | `object` | Per-parameter keyframe tracks (value + curve/easing) applied via the clock |
|
|
306
|
+
| `startAt` | `number` | Delay (seconds) before this emitter starts, for relative sequencing |
|
|
299
307
|
| `emissionTrailEnabled` | `boolean` | Enable particle trail rendering |
|
|
300
308
|
| `emissionTrailDuration` | `number` | How long trail segments persist (seconds) |
|
|
301
309
|
| `emissionTrailWidth` | `number` | Width of the emission trail |
|
|
@@ -469,9 +477,8 @@ Also exported for advanced usage:
|
|
|
469
477
|
Generate effects from a prompt — or build them by hand — in the HZ editor, then export a preset and
|
|
470
478
|
render it with this package.
|
|
471
479
|
|
|
472
|
-
|
|
473
|
-
-
|
|
474
|
-
- Local: `http://localhost:8110/editor` (run `docker-compose up` from the repo root)
|
|
480
|
+
- Hosted editor & prompt FX generator: https://particles.hole.zone/editor
|
|
481
|
+
- Browse the community gallery (live previews): https://particles.hole.zone/discover
|
|
475
482
|
|
|
476
483
|
The editor provides real-time configuration, emitter-shape tuning, GLB import + animation control, a
|
|
477
484
|
preset library, and `JSON` / `.hzfx` export.
|
|
@@ -487,4 +494,4 @@ preset library, and `JSON` / `.hzfx` export.
|
|
|
487
494
|
|
|
488
495
|
MIT License — see [LICENSE](LICENSE).
|
|
489
496
|
|
|
490
|
-
Copyright (c) 2025 HZ
|
|
497
|
+
Copyright (c) 2025-2026 HZ
|