@needle-tools/three-mesh-effects 0.1.0-alpha → 0.1.0-alpha.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.
Files changed (86) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +94 -88
  3. package/build/deformation-runtime.js.map +1 -1
  4. package/build/impostor-runtime-needle-engine.js.map +1 -1
  5. package/build/impostor-runtime.js.map +1 -1
  6. package/build/internal/deformation/cloth-surface.js.map +1 -1
  7. package/build/internal/deformation/fur-surface.js.map +1 -1
  8. package/build/internal/deformation/ik-constraints.js.map +1 -1
  9. package/build/internal/deformation/joints-json.js.map +1 -1
  10. package/build/internal/deformation/limits.js.map +1 -1
  11. package/build/internal/deformation/motion-settings.js.map +1 -1
  12. package/build/internal/deformation/pin-cloth.js.map +1 -1
  13. package/build/internal/deformation/pin-ik.js.map +1 -1
  14. package/build/internal/deformation/pin-types.js.map +1 -1
  15. package/build/internal/deformation/pin-wiggle.js.map +1 -1
  16. package/build/internal/deformation/pose-slots.js.map +1 -1
  17. package/build/internal/deformation/pose-timeline.js.map +1 -1
  18. package/build/internal/deformation/rig-drivers.js.map +1 -1
  19. package/build/internal/deformation/rig-extension.js.map +1 -1
  20. package/build/internal/deformation/rig-runtime.js.map +1 -1
  21. package/build/internal/deformation/wind.js.map +1 -1
  22. package/build/internal/impostor/impostor-metadata.js.map +1 -1
  23. package/build/internal/impostor/impostor-node-material.js.map +1 -1
  24. package/build/internal/impostor/impostor-runtime-support.js.map +1 -1
  25. package/build/internal/impostor/octahedral.js.map +1 -1
  26. package/build/internal/pixel-impostor/pixel-impostor-display.js.map +1 -1
  27. package/build/internal/pixel-impostor/pixel-impostor-metadata.js.map +1 -1
  28. package/build/internal/pixel-impostor/pixel-impostor-runtime.js.map +1 -1
  29. package/build/internal/rendering/skin-projection.js +52 -52
  30. package/build/internal/rendering/skin-projection.js.map +2 -2
  31. package/build/internal/rendering/surface-query.js +52 -52
  32. package/build/internal/rendering/surface-query.js.map +2 -2
  33. package/build/internal/rendering/wireframe.js.map +1 -1
  34. package/build/internal/rendering/wrap-preview-settings.js.map +1 -1
  35. package/build/internal/rendering/wrap-preview.js +52 -52
  36. package/build/internal/rendering/wrap-preview.js.map +2 -2
  37. package/build/internal/rendering/wrap-skin.js +52 -52
  38. package/build/internal/rendering/wrap-skin.js.map +2 -2
  39. package/build/pixel-impostor-runtime.js.map +1 -1
  40. package/build/wrap-effects.js +52 -52
  41. package/build/wrap-effects.js.map +2 -2
  42. package/package.json +107 -94
  43. package/src/deformation/cloth-surface.ts +223 -223
  44. package/src/deformation/fur-surface.ts +129 -129
  45. package/src/deformation/ik-constraints.ts +37 -37
  46. package/src/deformation/joints-json.ts +94 -94
  47. package/src/deformation/limits.ts +25 -25
  48. package/src/deformation/motion-settings.ts +9 -9
  49. package/src/deformation/pin-cloth.ts +149 -149
  50. package/src/deformation/pin-ik.ts +582 -582
  51. package/src/deformation/pin-types.ts +22 -22
  52. package/src/deformation/pin-wiggle.ts +119 -119
  53. package/src/deformation/pose-slots.ts +106 -106
  54. package/src/deformation/pose-timeline.ts +242 -242
  55. package/src/deformation/rig-drivers.ts +32 -32
  56. package/src/deformation/rig-extension.ts +87 -87
  57. package/src/deformation/rig-runtime.ts +416 -416
  58. package/src/deformation/wind.ts +36 -36
  59. package/src/impostor/impostor-metadata.js +137 -137
  60. package/src/impostor/impostor-node-material.js +1581 -1581
  61. package/src/impostor/impostor-runtime-support.js +139 -139
  62. package/src/impostor/octahedral.js +280 -280
  63. package/src/pixel-impostor/pixel-impostor-display.js +794 -794
  64. package/src/pixel-impostor/pixel-impostor-metadata.js +74 -74
  65. package/src/pixel-impostor/pixel-impostor-runtime.js +78 -78
  66. package/src/public/deformation-runtime.ts +3 -3
  67. package/src/public/impostor-runtime-needle-engine.js +56 -56
  68. package/src/public/impostor-runtime.js +21 -21
  69. package/src/public/pixel-impostor-runtime.js +5 -5
  70. package/src/public/wrap-effects.js +21 -21
  71. package/src/rendering/skin-projection.js +113 -113
  72. package/src/rendering/surface-query.js +88 -88
  73. package/src/rendering/wireframe.js +115 -115
  74. package/src/rendering/wrap-preview-settings.js +123 -123
  75. package/src/rendering/wrap-preview.js +645 -645
  76. package/src/rendering/wrap-skin.js +109 -109
  77. package/build/internal/public/deformation-runtime.js +0 -2143
  78. package/build/internal/public/deformation-runtime.js.map +0 -7
  79. package/build/internal/public/impostor-runtime-needle-engine.js +0 -42
  80. package/build/internal/public/impostor-runtime-needle-engine.js.map +0 -7
  81. package/build/internal/public/impostor-runtime.js +0 -1333
  82. package/build/internal/public/impostor-runtime.js.map +0 -7
  83. package/build/internal/public/pixel-impostor-runtime.js +0 -876
  84. package/build/internal/public/pixel-impostor-runtime.js.map +0 -7
  85. package/build/internal/public/wrap-effects.js +0 -5640
  86. package/build/internal/public/wrap-effects.js.map +0 -7
@@ -6,10 +6,10 @@ import { Triangle as Triangle4, Vector3 as Vector312 } from "three";
6
6
  // src/rendering/surface-query.js
7
7
  import { BackSide as BackSide2, BufferAttribute as BufferAttribute3, BufferGeometry, FrontSide as FrontSide2, Ray as Ray2, Vector3 as Vector311 } from "three";
8
8
 
9
- // ../../node_modules/three-mesh-bvh/src/core/BVH.js
9
+ // node_modules/three-mesh-bvh/src/core/BVH.js
10
10
  import { Box3 as Box33 } from "three";
11
11
 
12
- // ../../node_modules/three-mesh-bvh/src/core/Constants.js
12
+ // node_modules/three-mesh-bvh/src/core/Constants.js
13
13
  var CENTER = 0;
14
14
  var AVERAGE = 1;
15
15
  var SAH = 2;
@@ -35,7 +35,7 @@ var DEFAULT_OPTIONS = {
35
35
  [SKIP_GENERATION]: false
36
36
  };
37
37
 
38
- // ../../node_modules/three-mesh-bvh/src/utils/ArrayBoxUtilities.js
38
+ // node_modules/three-mesh-bvh/src/utils/ArrayBoxUtilities.js
39
39
  function arrayToBox(nodeIndex32, array, target) {
40
40
  target.min.x = array[nodeIndex32];
41
41
  target.min.y = array[nodeIndex32 + 1];
@@ -93,7 +93,7 @@ function computeSurfaceArea(bounds) {
93
93
  return 2 * (d0 * d1 + d1 * d2 + d2 * d0);
94
94
  }
95
95
 
96
- // ../../node_modules/three-mesh-bvh/src/core/utils/nodeBufferUtils.js
96
+ // node_modules/three-mesh-bvh/src/core/utils/nodeBufferUtils.js
97
97
  function IS_LEAF(n16, uint16Array2) {
98
98
  return uint16Array2[n16 + 15] === IS_LEAFNODE_FLAG;
99
99
  }
@@ -117,7 +117,7 @@ function BOUNDING_DATA_INDEX(n32) {
117
117
  return n32;
118
118
  }
119
119
 
120
- // ../../node_modules/three-mesh-bvh/src/core/build/computeBoundsUtils.js
120
+ // node_modules/three-mesh-bvh/src/core/build/computeBoundsUtils.js
121
121
  function getBounds(primitiveBounds, offset, count, target, centroidTarget) {
122
122
  let minx = Infinity;
123
123
  let miny = Infinity;
@@ -172,7 +172,7 @@ function getBounds(primitiveBounds, offset, count, target, centroidTarget) {
172
172
  centroidTarget[5] = cmaxz;
173
173
  }
174
174
 
175
- // ../../node_modules/three-mesh-bvh/src/core/build/splitUtils.js
175
+ // node_modules/three-mesh-bvh/src/core/build/splitUtils.js
176
176
  var BIN_COUNT = 32;
177
177
  var binsSort = (a, b) => a.candidate - b.candidate;
178
178
  var sahBins = /* @__PURE__ */ new Array(BIN_COUNT).fill().map(() => {
@@ -348,14 +348,14 @@ function getAverage(primitiveBounds, offset, count, axis) {
348
348
  return avg / count;
349
349
  }
350
350
 
351
- // ../../node_modules/three-mesh-bvh/src/core/BVHNode.js
351
+ // node_modules/three-mesh-bvh/src/core/BVHNode.js
352
352
  var BVHNode = class {
353
353
  constructor() {
354
354
  this.boundingData = new Float32Array(6);
355
355
  }
356
356
  };
357
357
 
358
- // ../../node_modules/three-mesh-bvh/src/core/build/sortUtils.js
358
+ // node_modules/three-mesh-bvh/src/core/build/sortUtils.js
359
359
  function partition(buffer, stride, primitiveBounds, offset, count, split) {
360
360
  let left = offset;
361
361
  let right = offset + count - 1;
@@ -390,7 +390,7 @@ function partition(buffer, stride, primitiveBounds, offset, count, split) {
390
390
  }
391
391
  }
392
392
 
393
- // ../../node_modules/three-mesh-bvh/src/core/build/buildUtils.js
393
+ // node_modules/three-mesh-bvh/src/core/build/buildUtils.js
394
394
  var float32Array;
395
395
  var uint32Array;
396
396
  var uint16Array;
@@ -444,7 +444,7 @@ function _populateBuffer(byteOffset, node) {
444
444
  }
445
445
  }
446
446
 
447
- // ../../node_modules/three-mesh-bvh/src/core/build/buildTree.js
447
+ // node_modules/three-mesh-bvh/src/core/build/buildTree.js
448
448
  function buildTree(bvh, primitiveBounds, offset, count, options, loadRange) {
449
449
  const {
450
450
  maxDepth,
@@ -530,10 +530,10 @@ function buildPackedTree(bvh, options) {
530
530
  });
531
531
  }
532
532
 
533
- // ../../node_modules/three-mesh-bvh/src/core/cast/shapecast.js
533
+ // node_modules/three-mesh-bvh/src/core/cast/shapecast.js
534
534
  import { Box3 } from "three";
535
535
 
536
- // ../../node_modules/three-mesh-bvh/src/utils/PrimitivePool.js
536
+ // node_modules/three-mesh-bvh/src/utils/PrimitivePool.js
537
537
  var PrimitivePool = class {
538
538
  constructor(getNewPrimitive) {
539
539
  this._getNewPrimitive = getNewPrimitive;
@@ -552,7 +552,7 @@ var PrimitivePool = class {
552
552
  }
553
553
  };
554
554
 
555
- // ../../node_modules/three-mesh-bvh/src/core/utils/BufferStack.js
555
+ // node_modules/three-mesh-bvh/src/core/utils/BufferStack.js
556
556
  var _BufferStack = class {
557
557
  constructor() {
558
558
  this.float32Array = null;
@@ -582,7 +582,7 @@ var _BufferStack = class {
582
582
  };
583
583
  var BufferStack = /* @__PURE__ */ new _BufferStack();
584
584
 
585
- // ../../node_modules/three-mesh-bvh/src/core/cast/shapecast.js
585
+ // node_modules/three-mesh-bvh/src/core/cast/shapecast.js
586
586
  var _box1;
587
587
  var _box2;
588
588
  var boxStack = [];
@@ -704,7 +704,7 @@ function shapecastTraverse(nodeIndex32, geometry, intersectsBoundsFunc, intersec
704
704
  }
705
705
  }
706
706
 
707
- // ../../node_modules/three-mesh-bvh/src/core/cast/bvhcast.js
707
+ // node_modules/three-mesh-bvh/src/core/cast/bvhcast.js
708
708
  import { Box3 as Box32, Matrix4 } from "three";
709
709
  var _bufferStack1 = /* @__PURE__ */ new BufferStack.constructor();
710
710
  var _bufferStack2 = /* @__PURE__ */ new BufferStack.constructor();
@@ -976,7 +976,7 @@ function _traverse(node1Index32, node2Index32, matrix2to1, matrix1to2, intersect
976
976
  return result;
977
977
  }
978
978
 
979
- // ../../node_modules/three-mesh-bvh/src/core/BVHTraversalHelper.js
979
+ // node_modules/three-mesh-bvh/src/core/BVHTraversalHelper.js
980
980
  var BVHTraversalHelper = new class {
981
981
  constructor() {
982
982
  let buffer = null;
@@ -1056,7 +1056,7 @@ var BVHTraversalHelper = new class {
1056
1056
  }
1057
1057
  }();
1058
1058
 
1059
- // ../../node_modules/three-mesh-bvh/src/core/BVH.js
1059
+ // node_modules/three-mesh-bvh/src/core/BVH.js
1060
1060
  var _tempBox = /* @__PURE__ */ new Box33();
1061
1061
  var _tempBuffer = /* @__PURE__ */ new Float32Array(6);
1062
1062
  var BVH = class {
@@ -1301,15 +1301,15 @@ var BVH = class {
1301
1301
  }
1302
1302
  };
1303
1303
 
1304
- // ../../node_modules/three-mesh-bvh/src/core/GeometryBVH.js
1304
+ // node_modules/three-mesh-bvh/src/core/GeometryBVH.js
1305
1305
  import { Box3 as Box34 } from "three";
1306
1306
 
1307
- // ../../node_modules/three-mesh-bvh/src/utils/BufferUtils.js
1307
+ // node_modules/three-mesh-bvh/src/utils/BufferUtils.js
1308
1308
  function isSharedArrayBufferSupported() {
1309
1309
  return typeof SharedArrayBuffer !== "undefined";
1310
1310
  }
1311
1311
 
1312
- // ../../node_modules/three-mesh-bvh/src/core/build/geometryUtils.js
1312
+ // node_modules/three-mesh-bvh/src/core/build/geometryUtils.js
1313
1313
  import { BufferAttribute } from "three";
1314
1314
  function getVertexCount(geo) {
1315
1315
  return geo.index ? geo.index.count : geo.attributes.position.count;
@@ -1397,7 +1397,7 @@ function getRootPrimitiveRanges(geo, range, stride) {
1397
1397
  return ranges;
1398
1398
  }
1399
1399
 
1400
- // ../../node_modules/three-mesh-bvh/src/core/GeometryBVH.js
1400
+ // node_modules/three-mesh-bvh/src/core/GeometryBVH.js
1401
1401
  function generateIndirectBuffer(ranges, useSharedArrayBuffer) {
1402
1402
  const lastRange = ranges[ranges.length - 1];
1403
1403
  const useUint32 = lastRange.offset + lastRange.count > 2 ** 16;
@@ -1487,13 +1487,13 @@ var GeometryBVH = class extends BVH {
1487
1487
  }
1488
1488
  };
1489
1489
 
1490
- // ../../node_modules/three-mesh-bvh/src/core/MeshBVH.js
1490
+ // node_modules/three-mesh-bvh/src/core/MeshBVH.js
1491
1491
  import { BufferAttribute as BufferAttribute2, FrontSide, Ray, Vector3 as Vector310, Matrix4 as Matrix47 } from "three";
1492
1492
 
1493
- // ../../node_modules/three-mesh-bvh/src/math/OrientedBox.js
1493
+ // node_modules/three-mesh-bvh/src/math/OrientedBox.js
1494
1494
  import { Vector3 as Vector34, Matrix4 as Matrix42, Line3 as Line33 } from "three";
1495
1495
 
1496
- // ../../node_modules/three-mesh-bvh/src/math/SeparatingAxisBounds.js
1496
+ // node_modules/three-mesh-bvh/src/math/SeparatingAxisBounds.js
1497
1497
  import { Vector3 } from "three";
1498
1498
  var SeparatingAxisBounds = class {
1499
1499
  constructor() {
@@ -1552,10 +1552,10 @@ SeparatingAxisBounds.prototype.setFromBox = /* @__PURE__ */ (function() {
1552
1552
  };
1553
1553
  })();
1554
1554
 
1555
- // ../../node_modules/three-mesh-bvh/src/math/ExtendedTriangle.js
1555
+ // node_modules/three-mesh-bvh/src/math/ExtendedTriangle.js
1556
1556
  import { Triangle, Vector3 as Vector33, Vector2 as Vector22, Line3 as Line32, Plane as Plane2 } from "three";
1557
1557
 
1558
- // ../../node_modules/three-mesh-bvh/src/math/MathUtilities.js
1558
+ // node_modules/three-mesh-bvh/src/math/MathUtilities.js
1559
1559
  import { Vector3 as Vector32, Vector2, Plane, Line3 } from "three";
1560
1560
  var closestPointLineToLine = /* @__PURE__ */ (function() {
1561
1561
  const dir1 = /* @__PURE__ */ new Vector32();
@@ -1674,7 +1674,7 @@ var sphereIntersectTriangle = /* @__PURE__ */ (function() {
1674
1674
  };
1675
1675
  })();
1676
1676
 
1677
- // ../../node_modules/three-mesh-bvh/src/math/ExtendedTriangle.js
1677
+ // node_modules/three-mesh-bvh/src/math/ExtendedTriangle.js
1678
1678
  var componentKeys = ["x", "y", "z"];
1679
1679
  var ZERO_EPSILON = 1e-15;
1680
1680
  var ZERO_EPSILON_SQR = ZERO_EPSILON * ZERO_EPSILON;
@@ -2157,7 +2157,7 @@ ExtendedTriangle.prototype.distanceToTriangle = /* @__PURE__ */ (function() {
2157
2157
  };
2158
2158
  })();
2159
2159
 
2160
- // ../../node_modules/three-mesh-bvh/src/math/OrientedBox.js
2160
+ // node_modules/three-mesh-bvh/src/math/OrientedBox.js
2161
2161
  var OrientedBox = class {
2162
2162
  constructor(min, max, matrix) {
2163
2163
  this.isOrientedBox = true;
@@ -2424,7 +2424,7 @@ OrientedBox.prototype.distanceToBox = /* @__PURE__ */ (function() {
2424
2424
  };
2425
2425
  })();
2426
2426
 
2427
- // ../../node_modules/three-mesh-bvh/src/utils/ExtendedTrianglePool.js
2427
+ // node_modules/three-mesh-bvh/src/utils/ExtendedTrianglePool.js
2428
2428
  var ExtendedTrianglePoolBase = class extends PrimitivePool {
2429
2429
  constructor() {
2430
2430
  super(() => new ExtendedTriangle());
@@ -2432,7 +2432,7 @@ var ExtendedTrianglePoolBase = class extends PrimitivePool {
2432
2432
  };
2433
2433
  var ExtendedTrianglePool = /* @__PURE__ */ new ExtendedTrianglePoolBase();
2434
2434
 
2435
- // ../../node_modules/three-mesh-bvh/src/core/cast/closestPointToPoint.js
2435
+ // node_modules/three-mesh-bvh/src/core/cast/closestPointToPoint.js
2436
2436
  import { Vector3 as Vector35 } from "three";
2437
2437
  var temp = /* @__PURE__ */ new Vector35();
2438
2438
  var temp1 = /* @__PURE__ */ new Vector35();
@@ -2474,7 +2474,7 @@ function closestPointToPoint(bvh, point, target = {}, minThreshold = 0, maxThres
2474
2474
  return target;
2475
2475
  }
2476
2476
 
2477
- // ../../node_modules/three-mesh-bvh/src/utils/ThreeRayIntersectUtilities.js
2477
+ // node_modules/three-mesh-bvh/src/utils/ThreeRayIntersectUtilities.js
2478
2478
  import { Vector3 as Vector36, Vector2 as Vector23, Triangle as Triangle2, DoubleSide, BackSide, REVISION } from "three";
2479
2479
  var IS_GT_REVISION_169 = parseInt(REVISION) >= 169;
2480
2480
  var IS_LT_REVISION_161 = parseInt(REVISION) <= 161;
@@ -2612,7 +2612,7 @@ function intersectTri(geometry, materialOrSide, ray, tri, intersections, near, f
2612
2612
  return null;
2613
2613
  }
2614
2614
 
2615
- // ../../node_modules/three-mesh-bvh/src/utils/TriangleUtilities.js
2615
+ // node_modules/three-mesh-bvh/src/utils/TriangleUtilities.js
2616
2616
  import { Vector2 as Vector24, Vector3 as Vector37, Triangle as Triangle3 } from "three";
2617
2617
  function setTriangle(tri, i, index, pos) {
2618
2618
  const ta = tri.a;
@@ -2637,7 +2637,7 @@ function setTriangle(tri, i, index, pos) {
2637
2637
  tc.z = pos.getZ(i2);
2638
2638
  }
2639
2639
 
2640
- // ../../node_modules/three-mesh-bvh/src/core/utils/iterationUtils.generated.js
2640
+ // node_modules/three-mesh-bvh/src/core/utils/iterationUtils.generated.js
2641
2641
  function intersectTris(bvh, materialOrSide, ray, offset, count, intersections, near, far) {
2642
2642
  const { geometry, _indirectBuffer } = bvh;
2643
2643
  for (let i = offset, end = offset + count; i < end; i++) {
@@ -2674,7 +2674,7 @@ function iterateOverTriangles(offset, count, bvh, intersectsTriangleFunc, contai
2674
2674
  return false;
2675
2675
  }
2676
2676
 
2677
- // ../../node_modules/three-mesh-bvh/src/core/cast/refit.generated.js
2677
+ // node_modules/three-mesh-bvh/src/core/cast/refit.generated.js
2678
2678
  function refit(bvh, nodeIndices = null) {
2679
2679
  if (nodeIndices && Array.isArray(nodeIndices)) {
2680
2680
  nodeIndices = new Set(nodeIndices);
@@ -2773,7 +2773,7 @@ function refit(bvh, nodeIndices = null) {
2773
2773
  }
2774
2774
  }
2775
2775
 
2776
- // ../../node_modules/three-mesh-bvh/src/core/utils/intersectUtils.js
2776
+ // node_modules/three-mesh-bvh/src/core/utils/intersectUtils.js
2777
2777
  function intersectsNodeBounds(nodeIndex32, array, ray, near, far) {
2778
2778
  let tmin, tmax, tymin, tymax, tzmin, tzmax;
2779
2779
  const invdirx = 1 / ray.direction.x, invdiry = 1 / ray.direction.y, invdirz = 1 / ray.direction.z;
@@ -2816,7 +2816,7 @@ function intersectsNodeBounds(nodeIndex32, array, ray, near, far) {
2816
2816
  return tmin <= far && tmax >= near;
2817
2817
  }
2818
2818
 
2819
- // ../../node_modules/three-mesh-bvh/src/core/utils/iterationUtils_indirect.generated.js
2819
+ // node_modules/three-mesh-bvh/src/core/utils/iterationUtils_indirect.generated.js
2820
2820
  function intersectTris_indirect(bvh, materialOrSide, ray, offset, count, intersections, near, far) {
2821
2821
  const { geometry, _indirectBuffer } = bvh;
2822
2822
  for (let i = offset, end = offset + count; i < end; i++) {
@@ -2854,7 +2854,7 @@ function iterateOverTriangles_indirect(offset, count, bvh, intersectsTriangleFun
2854
2854
  return false;
2855
2855
  }
2856
2856
 
2857
- // ../../node_modules/three-mesh-bvh/src/core/cast/raycast.generated.js
2857
+ // node_modules/three-mesh-bvh/src/core/cast/raycast.generated.js
2858
2858
  function raycast(bvh, root, materialOrSide, ray, intersects, near, far) {
2859
2859
  BufferStack.setBuffer(bvh._roots[root]);
2860
2860
  _raycast(0, bvh, materialOrSide, ray, intersects, near, far);
@@ -2880,7 +2880,7 @@ function _raycast(nodeIndex32, bvh, materialOrSide, ray, intersects, near, far)
2880
2880
  }
2881
2881
  }
2882
2882
 
2883
- // ../../node_modules/three-mesh-bvh/src/core/cast/raycastFirst.generated.js
2883
+ // node_modules/three-mesh-bvh/src/core/cast/raycastFirst.generated.js
2884
2884
  var _xyzFields = ["x", "y", "z"];
2885
2885
  function raycastFirst(bvh, root, materialOrSide, ray, near, far) {
2886
2886
  BufferStack.setBuffer(bvh._roots[root]);
@@ -2931,7 +2931,7 @@ function _raycastFirst(nodeIndex32, bvh, materialOrSide, ray, near, far) {
2931
2931
  }
2932
2932
  }
2933
2933
 
2934
- // ../../node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry.generated.js
2934
+ // node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry.generated.js
2935
2935
  import { Box3 as Box35, Matrix4 as Matrix43 } from "three";
2936
2936
  var boundingBox = /* @__PURE__ */ new Box35();
2937
2937
  var triangle = /* @__PURE__ */ new ExtendedTriangle();
@@ -3017,7 +3017,7 @@ function _intersectsGeometry(nodeIndex32, bvh, otherGeometry, geometryToBvh, cac
3017
3017
  }
3018
3018
  }
3019
3019
 
3020
- // ../../node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry.generated.js
3020
+ // node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry.generated.js
3021
3021
  import { Matrix4 as Matrix44, Vector3 as Vector38 } from "three";
3022
3022
  var tempMatrix = /* @__PURE__ */ new Matrix44();
3023
3023
  var obb3 = /* @__PURE__ */ new OrientedBox();
@@ -3157,7 +3157,7 @@ function closestPointToGeometry(bvh, otherGeometry, geometryToBvh, target1 = {},
3157
3157
  return target1;
3158
3158
  }
3159
3159
 
3160
- // ../../node_modules/three-mesh-bvh/src/core/cast/refit_indirect.generated.js
3160
+ // node_modules/three-mesh-bvh/src/core/cast/refit_indirect.generated.js
3161
3161
  function refit_indirect(bvh, nodeIndices = null) {
3162
3162
  if (nodeIndices && Array.isArray(nodeIndices)) {
3163
3163
  nodeIndices = new Set(nodeIndices);
@@ -3260,7 +3260,7 @@ function refit_indirect(bvh, nodeIndices = null) {
3260
3260
  }
3261
3261
  }
3262
3262
 
3263
- // ../../node_modules/three-mesh-bvh/src/core/cast/raycast_indirect.generated.js
3263
+ // node_modules/three-mesh-bvh/src/core/cast/raycast_indirect.generated.js
3264
3264
  function raycast_indirect(bvh, root, materialOrSide, ray, intersects, near, far) {
3265
3265
  BufferStack.setBuffer(bvh._roots[root]);
3266
3266
  _raycast2(0, bvh, materialOrSide, ray, intersects, near, far);
@@ -3286,7 +3286,7 @@ function _raycast2(nodeIndex32, bvh, materialOrSide, ray, intersects, near, far)
3286
3286
  }
3287
3287
  }
3288
3288
 
3289
- // ../../node_modules/three-mesh-bvh/src/core/cast/raycastFirst_indirect.generated.js
3289
+ // node_modules/three-mesh-bvh/src/core/cast/raycastFirst_indirect.generated.js
3290
3290
  var _xyzFields2 = ["x", "y", "z"];
3291
3291
  function raycastFirst_indirect(bvh, root, materialOrSide, ray, near, far) {
3292
3292
  BufferStack.setBuffer(bvh._roots[root]);
@@ -3337,7 +3337,7 @@ function _raycastFirst2(nodeIndex32, bvh, materialOrSide, ray, near, far) {
3337
3337
  }
3338
3338
  }
3339
3339
 
3340
- // ../../node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry_indirect.generated.js
3340
+ // node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry_indirect.generated.js
3341
3341
  import { Box3 as Box36, Matrix4 as Matrix45 } from "three";
3342
3342
  var boundingBox2 = /* @__PURE__ */ new Box36();
3343
3343
  var triangle3 = /* @__PURE__ */ new ExtendedTriangle();
@@ -3424,7 +3424,7 @@ function _intersectsGeometry2(nodeIndex32, bvh, otherGeometry, geometryToBvh, ca
3424
3424
  }
3425
3425
  }
3426
3426
 
3427
- // ../../node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry_indirect.generated.js
3427
+ // node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry_indirect.generated.js
3428
3428
  import { Matrix4 as Matrix46, Vector3 as Vector39 } from "three";
3429
3429
  var tempMatrix2 = /* @__PURE__ */ new Matrix46();
3430
3430
  var obb5 = /* @__PURE__ */ new OrientedBox();
@@ -3567,7 +3567,7 @@ function closestPointToGeometry_indirect(bvh, otherGeometry, geometryToBvh, targ
3567
3567
  return target1;
3568
3568
  }
3569
3569
 
3570
- // ../../node_modules/three-mesh-bvh/src/utils/GeometryRayIntersectUtilities.js
3570
+ // node_modules/three-mesh-bvh/src/utils/GeometryRayIntersectUtilities.js
3571
3571
  function convertRaycastIntersect(hit, object, raycaster) {
3572
3572
  if (hit === null) {
3573
3573
  return null;
@@ -3578,7 +3578,7 @@ function convertRaycastIntersect(hit, object, raycaster) {
3578
3578
  return hit;
3579
3579
  }
3580
3580
 
3581
- // ../../node_modules/three-mesh-bvh/src/core/MeshBVH.js
3581
+ // node_modules/three-mesh-bvh/src/core/MeshBVH.js
3582
3582
  var _obb = /* @__PURE__ */ new OrientedBox();
3583
3583
  var _ray = /* @__PURE__ */ new Ray();
3584
3584
  var _direction = /* @__PURE__ */ new Vector310();
@@ -4093,8 +4093,8 @@ var MeshBVH = class _MeshBVH extends GeometryBVH {
4093
4093
  * `getTriangleHitPointInfo` to obtain more information like UV coordinates, triangle normal
4094
4094
  * and materialIndex.
4095
4095
  *
4096
- * _Note that this function can be very slow if `geometry` does not have a
4097
- * `geometry.boundsTree` computed._
4096
+ * @note This function can be very slow if `geometry` does not have a `geometry.boundsTree`
4097
+ * computed.
4098
4098
  *
4099
4099
  * @param {BufferGeometry} otherGeometry
4100
4100
  * @param {Matrix4} geometryToBvh - Transform of `otherGeometry` into the local space of
@@ -4147,7 +4147,7 @@ var MeshBVH = class _MeshBVH extends GeometryBVH {
4147
4147
  }
4148
4148
  };
4149
4149
 
4150
- // ../../node_modules/three-mesh-bvh/src/webgl/glsl/common_functions.glsl.js
4150
+ // node_modules/three-mesh-bvh/src/webgl/glsl/common_functions.glsl.js
4151
4151
  var common_functions = (
4152
4152
  /* glsl */
4153
4153
  `
@@ -4235,7 +4235,7 @@ void ndcToCameraRay(
4235
4235
  `
4236
4236
  );
4237
4237
 
4238
- // ../../node_modules/three-mesh-bvh/src/webgl/glsl/bvh_ray_functions.glsl.js
4238
+ // node_modules/three-mesh-bvh/src/webgl/glsl/bvh_ray_functions.glsl.js
4239
4239
  var bvh_ray_functions = (
4240
4240
  /* glsl */
4241
4241
  `
@@ -4445,7 +4445,7 @@ bool _bvhIntersectFirstHit(
4445
4445
  `
4446
4446
  );
4447
4447
 
4448
- // ../../node_modules/three-mesh-bvh/src/index.js
4448
+ // node_modules/three-mesh-bvh/src/index.js
4449
4449
  var shaderIntersectFunction = `
4450
4450
  ${common_functions}
4451
4451
  ${bvh_ray_functions}