@adatechnology/game-items-three 0.1.5 → 0.1.6

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/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  // src/kit.ts
2
+ import { shapeGeometries } from "@adatechnology/game-shapes-three";
2
3
  var WEAR_TAGS = ["metal", "wood", "cloth", "plastic", "paper", "food", "glass"];
3
4
  var channelsOf = (hex2) => [(hex2 >> 16 & 255) / 255, (hex2 >> 8 & 255) / 255, (hex2 & 255) / 255];
4
- function createItemKit(T) {
5
+ function createItemKit(three) {
6
+ const T = shapeGeometries(three);
5
7
  const materials = [];
6
8
  const M = (color, tag, options = {}) => {
7
9
  const material = new T.MeshStandardMaterial(Object.assign({ color, roughness: 0.78, metalness: 0 }, options));
@@ -780,7 +782,7 @@ function buildItem(T, item, options = {}) {
780
782
  }
781
783
 
782
784
  // src/merge.ts
783
- import { mergeByMaterial } from "@adatechnology/game-props3d";
785
+ import { mergeByMaterial } from "@adatechnology/game-shapes-three";
784
786
  function mergeItem(T, model) {
785
787
  model.root.updateMatrixWorld(true);
786
788
  const merged = new T.Group();