@needle-tools/three-mesh-effects 0.3.5 → 0.3.7

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 (63) hide show
  1. package/CHANGELOG.md +33 -28
  2. package/README.md +63 -231
  3. package/SKILL.md +11 -68
  4. package/build/box-impostor-runtime.js +652 -257
  5. package/build/box-impostor-runtime.js.map +4 -4
  6. package/build/deformation-runtime.js +1 -1
  7. package/build/deformation-runtime.js.map +1 -1
  8. package/build/hull-effects.js.map +1 -1
  9. package/build/impostor-runtime.js +2 -2
  10. package/build/impostor-runtime.js.map +2 -2
  11. package/build/index.js +2 -2
  12. package/build/index.js.map +2 -2
  13. package/build/internal/box-impostor/box-impostor-display.js +662 -265
  14. package/build/internal/box-impostor/box-impostor-display.js.map +4 -4
  15. package/build/internal/box-impostor/box-impostor-material.js +662 -265
  16. package/build/internal/box-impostor/box-impostor-material.js.map +4 -4
  17. package/build/internal/box-impostor/box-impostor-ray-bounds.js +369 -0
  18. package/build/internal/box-impostor/box-impostor-ray-bounds.js.map +7 -0
  19. package/build/internal/box-impostor/box-impostor-runtime.js +652 -257
  20. package/build/internal/box-impostor/box-impostor-runtime.js.map +4 -4
  21. package/build/internal/deformation/rig-runtime.js +1 -1
  22. package/build/internal/deformation/rig-runtime.js.map +1 -1
  23. package/build/internal/impostor/impostor-node-material.js +2 -2
  24. package/build/internal/impostor/impostor-node-material.js.map +2 -2
  25. package/build/internal/impostor/octahedral.js.map +1 -1
  26. package/build/internal/pixel-impostor/pixel-impostor-display.js +39 -16
  27. package/build/internal/pixel-impostor/pixel-impostor-display.js.map +2 -2
  28. package/build/internal/pixel-impostor/pixel-impostor-metadata.js +61 -6
  29. package/build/internal/pixel-impostor/pixel-impostor-metadata.js.map +2 -2
  30. package/build/internal/pixel-impostor/pixel-impostor-runtime.js +980 -26
  31. package/build/internal/pixel-impostor/pixel-impostor-runtime.js.map +4 -4
  32. package/build/internal/rendering/hull-effect-runtime.js.map +1 -1
  33. package/build/internal/rendering/renderer-support.js.map +1 -1
  34. package/build/internal/rendering/skin-projection.js.map +1 -1
  35. package/build/internal/rendering/surface-query.js.map +1 -1
  36. package/build/internal/rendering/wrap-preview.js.map +1 -1
  37. package/build/internal/rendering/wrap-skin.js.map +1 -1
  38. package/build/pixel-impostor-runtime.js +362 -172
  39. package/build/pixel-impostor-runtime.js.map +4 -4
  40. package/build/types/box-impostor/box-impostor-material.d.ts +2 -1
  41. package/build/types/box-impostor/box-impostor-ray-bounds.d.ts +6 -0
  42. package/build/types/box-impostor/box-impostor-ray-bounds.js +1 -0
  43. package/build/types/deformation/rig-runtime.d.ts +1 -1
  44. package/build/types/impostor/octahedral.d.ts +1 -1
  45. package/build/types/pixel-impostor/pixel-impostor-display.d.ts +3 -3
  46. package/build/types/pixel-impostor/pixel-impostor-metadata.d.ts +76 -5
  47. package/build/types/pixel-impostor/pixel-impostor-runtime.d.ts +19 -7
  48. package/build/types/public/pixel-impostor-runtime.d.ts +1 -1
  49. package/build/types/rendering/renderer-support.d.ts +1 -1
  50. package/build/types/rendering/surface-query.d.ts +2 -2
  51. package/package.json +2 -2
  52. package/src/box-impostor/box-impostor-material.js +128 -90
  53. package/src/box-impostor/box-impostor-ray-bounds.js +452 -0
  54. package/src/deformation/rig-runtime.ts +1 -1
  55. package/src/impostor/impostor-node-material.js +2 -2
  56. package/src/impostor/octahedral.js +1 -1
  57. package/src/pixel-impostor/pixel-impostor-display.js +32 -18
  58. package/src/pixel-impostor/pixel-impostor-metadata.js +69 -9
  59. package/src/pixel-impostor/pixel-impostor-runtime.js +32 -9
  60. package/src/public/index.js +2 -2
  61. package/src/public/pixel-impostor-runtime.js +1 -1
  62. package/src/rendering/renderer-support.js +1 -1
  63. package/src/rendering/surface-query.js +2 -2
@@ -359,7 +359,7 @@ function upgradeImpostorScene(root, bindings = /* @__PURE__ */ new Map(), inputF
359
359
  }
360
360
  const descriptor = parseImpostorDescriptor(metadata);
361
361
  if (!descriptor) {
362
- throw new Error("Unsupported impostor GLB descriptor; rebake this asset with the current baker.");
362
+ throw new Error("Unsupported NEEDLE_mesh_impostor descriptor.");
363
363
  }
364
364
  if (!binding) {
365
365
  throw new Error("NEEDLE_mesh_impostor textures require the registered GLTFLoader plugin.");
@@ -517,7 +517,7 @@ var NeedleImpostorLoaderPlugin = class {
517
517
  );
518
518
  const descriptor = parseImpostorDescriptor(definition);
519
519
  if (!descriptor) {
520
- throw new Error("Unsupported NEEDLE_mesh_impostor descriptor; rebake this asset.");
520
+ throw new Error("Unsupported NEEDLE_mesh_impostor descriptor.");
521
521
  }
522
522
  const rawTextures = definition.textures;
523
523
  if (!rawTextures || typeof rawTextures !== "object") {