@needle-tools/three-mesh-effects 0.2.0 → 0.2.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +21 -19
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1 - 2026-10-21
4
+
5
+ - Put installation and features before the Quick start, and clarify that consumers configure compression decoders themselves when needed.
6
+
3
7
  ## 0.2.0 - 2026-10-21
4
8
 
5
9
  - Register `useLoader(loader, renderer)` once to load any combination of Needle glTF runtime extensions without inspecting an asset beforehand. Extension handlers load dynamically as needed.
package/README.md CHANGED
@@ -1,6 +1,23 @@
1
1
  Three.js loaders and TSL materials for GLBs exported by [Needle Mesh Baker](https://mesh-baker.needle.tools).
2
2
 
3
- ## Automatic glTF loading
3
+ ## Install
4
+
5
+ ```sh
6
+ npm install @needle-tools/three-mesh-effects three
7
+ ```
8
+
9
+ The package supports Three.js r185 and r186. Its Needle Engine adapter is an
10
+ optional import. The examples use ordinary Three.js and assume an existing
11
+ `renderer`, `scene`, and `camera`.
12
+
13
+ ## Features
14
+
15
+ - **Hull effects:** Restore the saved effect automatically, optionally binding its source model.
16
+ - **Octahedral impostors:** Load exported glTF extensions with a Three.js TSL material.
17
+ - **Deformation rigs:** Run IK and secondary motion alongside standard animation clips.
18
+ - **Pixel and voxel impostors:** Create the display mode selected in the workbench.
19
+
20
+ ## Quick start
4
21
 
5
22
  Register once, then load any Mesh Baker glTF without knowing its extensions:
6
23
 
@@ -34,28 +51,13 @@ asset's `extensionsRequired` rejects the load with an error. Calling `useLoader`
34
51
  again replaces the renderer and disable list for subsequent parses; omitting
35
52
  options enables everything again.
36
53
 
37
- Configure Draco, Meshopt and KTX2 decoders on the loader as usual when needed.
54
+ If a model uses Draco, Meshopt, or KTX2 compression, you must configure the
55
+ corresponding decoder or texture loader on your `GLTFLoader` yourself.
56
+ `useLoader` handles Needle extensions; it does not configure compression decoders.
38
57
  Rig animation still needs a per-frame update, pixel display modes remain available
39
58
  through `createPixelImpostorDisplay`. Hull effects load alone; optionally use
40
59
  `bindHull` to add an original model and animation syncing.
41
60
 
42
- ## Install
43
-
44
- ```sh
45
- npm install @needle-tools/three-mesh-effects three
46
- ```
47
-
48
- The package supports Three.js r185 and r186. Its Needle Engine adapter is an
49
- optional import. The examples use ordinary Three.js and assume an existing
50
- `renderer`, `scene`, and `camera`.
51
-
52
- ## Features
53
-
54
- - **Hull effects:** Restore the saved effect automatically, optionally binding its source model.
55
- - **Octahedral impostors:** Load exported glTF extensions with a Three.js TSL material.
56
- - **Deformation rigs:** Run IK and secondary motion alongside standard animation clips.
57
- - **Pixel and voxel impostors:** Create the display mode selected in the workbench.
58
-
59
61
  ## Hull effects
60
62
 
61
63
  When exporting with a hull effect selected, Mesh Baker saves its mode and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/three-mesh-effects",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Three.js loaders and TSL effects for Needle Mesh Baker outputs.",
5
5
  "keywords": [
6
6
  "three.js",