@adatechnology/game-interactables-three 0.1.6 → 0.1.8

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 CHANGED
@@ -48,7 +48,9 @@ Every function also exists unbound and takes `THREE` first: `createMeshApi(THREE
48
48
 
49
49
  ### Mesh api
50
50
 
51
- `createMeshApi(THREE, { materials, quality, shadows })` returns `{ api, finish, materials }`.
51
+ `createMeshApi(THREE, { materials, quality, shadows })` returns `{ api, finish, materials }`. The builders draw into a
52
+ [`game-shapes`](../game-shapes) schema (`createShapeRecorder` of game-props3d) and `finish` bakes it with `generate`; the bytes are the
53
+ ones this api made with its own templates before the move (`tests/exact-golden.test.ts`, 222 cases).
52
54
 
53
55
  - Implements `box`, `cylinder` (shapes `cyl`, `cyl6`, `cone`, `sphere`), `leaf`, `plane` (with atlas `uv`), `light` and `part`.
54
56
  - Static primitives are baked (vertex colors) into **one `BufferGeometry` per material**: the draw calls of the static body are the number
package/dist/index.d.ts CHANGED
@@ -148,6 +148,9 @@ declare function createDefaultMaterials(THREE: ThreeLib, quality?: Quality): Rec
148
148
  /**
149
149
  * Mesh api for content packs. Every primitive is baked (vertex colors) into one `BufferGeometry` per material and per target
150
150
  * (the root, or a part), so the draw calls are the number of materials in use plus the same again for each part.
151
+ *
152
+ * The builders draw into a `game-shapes` schema (`createShapeRecorder` of game-props3d: unit templates, the item frame, parts and lights) and
153
+ * `generate` bakes it; the bytes are the ones this api made with its own templates before (tests/exact-golden.test.ts).
151
154
  */
152
155
  declare function createMeshApi(THREE: ThreeLib, options?: MeshApiOptions): MeshApi;
153
156