@babylonjs/viewer 7.40.3 → 7.40.4-alpha

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 (619) hide show
  1. package/assets/photoStudio.env +0 -0
  2. package/dist/babylon-viewer.esm.js +2 -0
  3. package/dist/babylon-viewer.esm.js.map +1 -0
  4. package/dist/babylon-viewer.esm.min.js +2 -0
  5. package/dist/babylon-viewer.esm.min.js.map +1 -0
  6. package/dist/chunks/EXT_lights_ies-B7tVMCka.esm.min.js +2 -0
  7. package/dist/chunks/EXT_lights_ies-B7tVMCka.esm.min.js.map +1 -0
  8. package/dist/chunks/EXT_lights_ies-T0Tkc0j0.esm.js +84 -0
  9. package/dist/chunks/EXT_lights_ies-T0Tkc0j0.esm.js.map +1 -0
  10. package/dist/chunks/EXT_lights_image_based-CyoPcoDC.esm.min.js +2 -0
  11. package/dist/chunks/EXT_lights_image_based-CyoPcoDC.esm.min.js.map +1 -0
  12. package/dist/chunks/EXT_lights_image_based-TRLY00MY.esm.js +171 -0
  13. package/dist/chunks/EXT_lights_image_based-TRLY00MY.esm.js.map +1 -0
  14. package/dist/chunks/EXT_mesh_gpu_instancing-CNSWr-2o.esm.js +86 -0
  15. package/dist/chunks/EXT_mesh_gpu_instancing-CNSWr-2o.esm.js.map +1 -0
  16. package/dist/chunks/EXT_mesh_gpu_instancing-DvkytavO.esm.min.js +2 -0
  17. package/dist/chunks/EXT_mesh_gpu_instancing-DvkytavO.esm.min.js.map +1 -0
  18. package/dist/chunks/EXT_meshopt_compression-C5Jf55Kx.esm.min.js +2 -0
  19. package/dist/chunks/EXT_meshopt_compression-C5Jf55Kx.esm.min.js.map +1 -0
  20. package/dist/chunks/EXT_meshopt_compression-CWVLJCmT.esm.js +134 -0
  21. package/dist/chunks/EXT_meshopt_compression-CWVLJCmT.esm.js.map +1 -0
  22. package/dist/chunks/EXT_texture_avif-Bv2Pa-Lr.esm.js +44 -0
  23. package/dist/chunks/EXT_texture_avif-Bv2Pa-Lr.esm.js.map +1 -0
  24. package/dist/chunks/EXT_texture_avif-DZmsorD-.esm.min.js +2 -0
  25. package/dist/chunks/EXT_texture_avif-DZmsorD-.esm.min.js.map +1 -0
  26. package/dist/chunks/EXT_texture_webp-CBpWQrqC.esm.js +43 -0
  27. package/dist/chunks/EXT_texture_webp-CBpWQrqC.esm.js.map +1 -0
  28. package/dist/chunks/EXT_texture_webp-D6RSOJSe.esm.min.js +2 -0
  29. package/dist/chunks/EXT_texture_webp-D6RSOJSe.esm.min.js.map +1 -0
  30. package/dist/chunks/ExtrasAsMetadata-6ZohdbjJ.esm.js +64 -0
  31. package/dist/chunks/ExtrasAsMetadata-6ZohdbjJ.esm.js.map +1 -0
  32. package/dist/chunks/ExtrasAsMetadata-CrG2l0Kf.esm.min.js +2 -0
  33. package/dist/chunks/ExtrasAsMetadata-CrG2l0Kf.esm.min.js.map +1 -0
  34. package/dist/chunks/KHR_animation_pointer-Cvu5a-gj.esm.js +352 -0
  35. package/dist/chunks/KHR_animation_pointer-Cvu5a-gj.esm.js.map +1 -0
  36. package/dist/chunks/KHR_animation_pointer-Rk2uzfDp.esm.min.js +2 -0
  37. package/dist/chunks/KHR_animation_pointer-Rk2uzfDp.esm.min.js.map +1 -0
  38. package/dist/chunks/KHR_draco_mesh_compression-BrXprwd5.esm.js +610 -0
  39. package/dist/chunks/KHR_draco_mesh_compression-BrXprwd5.esm.js.map +1 -0
  40. package/dist/chunks/KHR_draco_mesh_compression-Iv3q50MG.esm.min.js +2 -0
  41. package/dist/chunks/KHR_draco_mesh_compression-Iv3q50MG.esm.min.js.map +1 -0
  42. package/dist/chunks/KHR_interactivity-B4iFgkk7.esm.min.js +2 -0
  43. package/dist/chunks/KHR_interactivity-B4iFgkk7.esm.min.js.map +1 -0
  44. package/dist/chunks/KHR_interactivity-Db4iHU65.esm.js +4033 -0
  45. package/dist/chunks/KHR_interactivity-Db4iHU65.esm.js.map +1 -0
  46. package/dist/chunks/KHR_lights_punctual-B7yNiRZy.esm.min.js +2 -0
  47. package/dist/chunks/KHR_lights_punctual-B7yNiRZy.esm.min.js.map +1 -0
  48. package/dist/chunks/KHR_lights_punctual-iZl19DTA.esm.js +581 -0
  49. package/dist/chunks/KHR_lights_punctual-iZl19DTA.esm.js.map +1 -0
  50. package/dist/chunks/KHR_materials_anisotropy-Bk9K0k0q.esm.js +65 -0
  51. package/dist/chunks/KHR_materials_anisotropy-Bk9K0k0q.esm.js.map +1 -0
  52. package/dist/chunks/KHR_materials_anisotropy-DlDnL4o4.esm.min.js +2 -0
  53. package/dist/chunks/KHR_materials_anisotropy-DlDnL4o4.esm.min.js.map +1 -0
  54. package/dist/chunks/KHR_materials_clearcoat-BrT4VgMS.esm.min.js +2 -0
  55. package/dist/chunks/KHR_materials_clearcoat-BrT4VgMS.esm.min.js.map +1 -0
  56. package/dist/chunks/KHR_materials_clearcoat-DXAyxIfA.esm.js +96 -0
  57. package/dist/chunks/KHR_materials_clearcoat-DXAyxIfA.esm.js.map +1 -0
  58. package/dist/chunks/KHR_materials_diffuse_transmission-CRqI4Umg.esm.js +97 -0
  59. package/dist/chunks/KHR_materials_diffuse_transmission-CRqI4Umg.esm.js.map +1 -0
  60. package/dist/chunks/KHR_materials_diffuse_transmission-jyVvmpFx.esm.min.js +2 -0
  61. package/dist/chunks/KHR_materials_diffuse_transmission-jyVvmpFx.esm.min.js.map +1 -0
  62. package/dist/chunks/KHR_materials_dispersion-BwXQSsRC.esm.min.js +2 -0
  63. package/dist/chunks/KHR_materials_dispersion-BwXQSsRC.esm.min.js.map +1 -0
  64. package/dist/chunks/KHR_materials_dispersion-DTMaHZal.esm.js +62 -0
  65. package/dist/chunks/KHR_materials_dispersion-DTMaHZal.esm.js.map +1 -0
  66. package/dist/chunks/KHR_materials_emissive_strength-BCWSR6Zg.esm.js +55 -0
  67. package/dist/chunks/KHR_materials_emissive_strength-BCWSR6Zg.esm.js.map +1 -0
  68. package/dist/chunks/KHR_materials_emissive_strength-dEqNWrU4.esm.min.js +2 -0
  69. package/dist/chunks/KHR_materials_emissive_strength-dEqNWrU4.esm.min.js.map +1 -0
  70. package/dist/chunks/KHR_materials_ior-DXmoDlX8.esm.min.js +2 -0
  71. package/dist/chunks/KHR_materials_ior-DXmoDlX8.esm.min.js.map +1 -0
  72. package/dist/chunks/KHR_materials_ior-NvWqR2ZR.esm.js +64 -0
  73. package/dist/chunks/KHR_materials_ior-NvWqR2ZR.esm.js.map +1 -0
  74. package/dist/chunks/KHR_materials_iridescence-2VKZo_Mv.esm.min.js +2 -0
  75. package/dist/chunks/KHR_materials_iridescence-2VKZo_Mv.esm.min.js.map +1 -0
  76. package/dist/chunks/KHR_materials_iridescence-B2wLtYQ4.esm.js +72 -0
  77. package/dist/chunks/KHR_materials_iridescence-B2wLtYQ4.esm.js.map +1 -0
  78. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-DYK5fci0.esm.js +81 -0
  79. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-DYK5fci0.esm.js.map +1 -0
  80. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-PlzNRHwZ.esm.min.js +2 -0
  81. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-PlzNRHwZ.esm.min.js.map +1 -0
  82. package/dist/chunks/KHR_materials_sheen-CvA19viC.esm.min.js +2 -0
  83. package/dist/chunks/KHR_materials_sheen-CvA19viC.esm.min.js.map +1 -0
  84. package/dist/chunks/KHR_materials_sheen-DY8Hlw2C.esm.js +85 -0
  85. package/dist/chunks/KHR_materials_sheen-DY8Hlw2C.esm.js.map +1 -0
  86. package/dist/chunks/KHR_materials_specular-DPankAYO.esm.js +75 -0
  87. package/dist/chunks/KHR_materials_specular-DPankAYO.esm.js.map +1 -0
  88. package/dist/chunks/KHR_materials_specular-SFjYTaHn.esm.min.js +2 -0
  89. package/dist/chunks/KHR_materials_specular-SFjYTaHn.esm.min.js.map +1 -0
  90. package/dist/chunks/KHR_materials_transmission-CBvCfGeN.esm.js +307 -0
  91. package/dist/chunks/KHR_materials_transmission-CBvCfGeN.esm.js.map +1 -0
  92. package/dist/chunks/KHR_materials_transmission-DeRHqgMd.esm.min.js +2 -0
  93. package/dist/chunks/KHR_materials_transmission-DeRHqgMd.esm.min.js.map +1 -0
  94. package/dist/chunks/KHR_materials_unlit-Dp-VzfY2.esm.min.js +2 -0
  95. package/dist/chunks/KHR_materials_unlit-Dp-VzfY2.esm.min.js.map +1 -0
  96. package/dist/chunks/KHR_materials_unlit-xG3eIsVn.esm.js +74 -0
  97. package/dist/chunks/KHR_materials_unlit-xG3eIsVn.esm.js.map +1 -0
  98. package/dist/chunks/KHR_materials_variants-DtTs7enl.esm.min.js +2 -0
  99. package/dist/chunks/KHR_materials_variants-DtTs7enl.esm.min.js.map +1 -0
  100. package/dist/chunks/KHR_materials_variants-POauQPs7.esm.js +262 -0
  101. package/dist/chunks/KHR_materials_variants-POauQPs7.esm.js.map +1 -0
  102. package/dist/chunks/KHR_materials_volume-BO1lvsUq.esm.min.js +2 -0
  103. package/dist/chunks/KHR_materials_volume-BO1lvsUq.esm.min.js.map +1 -0
  104. package/dist/chunks/KHR_materials_volume-BqCunks7.esm.js +87 -0
  105. package/dist/chunks/KHR_materials_volume-BqCunks7.esm.js.map +1 -0
  106. package/dist/chunks/KHR_mesh_quantization-3ON-a5Bz.esm.js +26 -0
  107. package/dist/chunks/KHR_mesh_quantization-3ON-a5Bz.esm.js.map +1 -0
  108. package/dist/chunks/KHR_mesh_quantization-C1uR5Lci.esm.min.js +2 -0
  109. package/dist/chunks/KHR_mesh_quantization-C1uR5Lci.esm.min.js.map +1 -0
  110. package/dist/chunks/KHR_node_hoverability-CZIi0X9e.esm.js +39 -0
  111. package/dist/chunks/KHR_node_hoverability-CZIi0X9e.esm.js.map +1 -0
  112. package/dist/chunks/KHR_node_hoverability-gPD0oS5c.esm.min.js +2 -0
  113. package/dist/chunks/KHR_node_hoverability-gPD0oS5c.esm.min.js.map +1 -0
  114. package/dist/chunks/KHR_node_visibility-B5fFI1TX.esm.js +46 -0
  115. package/dist/chunks/KHR_node_visibility-B5fFI1TX.esm.js.map +1 -0
  116. package/dist/chunks/KHR_node_visibility-DPw-0W4p.esm.min.js +2 -0
  117. package/dist/chunks/KHR_node_visibility-DPw-0W4p.esm.min.js.map +1 -0
  118. package/dist/chunks/KHR_texture_basisu-D6tStneN.esm.min.js +2 -0
  119. package/dist/chunks/KHR_texture_basisu-D6tStneN.esm.min.js.map +1 -0
  120. package/dist/chunks/KHR_texture_basisu-Did7TM-4.esm.js +43 -0
  121. package/dist/chunks/KHR_texture_basisu-Did7TM-4.esm.js.map +1 -0
  122. package/dist/chunks/KHR_texture_transform-Da5NeRUm.esm.js +63 -0
  123. package/dist/chunks/KHR_texture_transform-Da5NeRUm.esm.js.map +1 -0
  124. package/dist/chunks/KHR_texture_transform-jNMzm3zb.esm.min.js +2 -0
  125. package/dist/chunks/KHR_texture_transform-jNMzm3zb.esm.min.js.map +1 -0
  126. package/dist/chunks/KHR_xmp_json_ld-D514my_a.esm.js +51 -0
  127. package/dist/chunks/KHR_xmp_json_ld-D514my_a.esm.js.map +1 -0
  128. package/dist/chunks/KHR_xmp_json_ld-D5Gbko_w.esm.min.js +2 -0
  129. package/dist/chunks/KHR_xmp_json_ld-D5Gbko_w.esm.min.js.map +1 -0
  130. package/dist/chunks/MSFT_audio_emitter-CiB3yG6v.esm.js +2201 -0
  131. package/dist/chunks/MSFT_audio_emitter-CiB3yG6v.esm.js.map +1 -0
  132. package/dist/chunks/MSFT_audio_emitter-Cn-DCgMh.esm.min.js +2 -0
  133. package/dist/chunks/MSFT_audio_emitter-Cn-DCgMh.esm.min.js.map +1 -0
  134. package/dist/chunks/MSFT_lod-BDP9fUoB.esm.js +337 -0
  135. package/dist/chunks/MSFT_lod-BDP9fUoB.esm.js.map +1 -0
  136. package/dist/chunks/MSFT_lod-BEbIdncN.esm.min.js +2 -0
  137. package/dist/chunks/MSFT_lod-BEbIdncN.esm.min.js.map +1 -0
  138. package/dist/chunks/MSFT_minecraftMesh-jASzndfE.esm.min.js +2 -0
  139. package/dist/chunks/MSFT_minecraftMesh-jASzndfE.esm.min.js.map +1 -0
  140. package/dist/chunks/MSFT_minecraftMesh-mKnNUrKI.esm.js +46 -0
  141. package/dist/chunks/MSFT_minecraftMesh-mKnNUrKI.esm.js.map +1 -0
  142. package/dist/chunks/MSFT_sRGBFactors-B1Bk1U5N.esm.min.js +2 -0
  143. package/dist/chunks/MSFT_sRGBFactors-B1Bk1U5N.esm.min.js.map +1 -0
  144. package/dist/chunks/MSFT_sRGBFactors-IZnSmmDU.esm.js +47 -0
  145. package/dist/chunks/MSFT_sRGBFactors-IZnSmmDU.esm.js.map +1 -0
  146. package/dist/chunks/animationGroup-B1YyqoTa.esm.js +2482 -0
  147. package/dist/chunks/animationGroup-B1YyqoTa.esm.js.map +1 -0
  148. package/dist/chunks/animationGroup-C9C7qST_.esm.min.js +2 -0
  149. package/dist/chunks/animationGroup-C9C7qST_.esm.min.js.map +1 -0
  150. package/dist/chunks/assetContainer-BzlRl_4x.esm.js +1720 -0
  151. package/dist/chunks/assetContainer-BzlRl_4x.esm.js.map +1 -0
  152. package/dist/chunks/assetContainer-D7C3a-Xn.esm.min.js +2 -0
  153. package/dist/chunks/assetContainer-D7C3a-Xn.esm.min.js.map +1 -0
  154. package/dist/chunks/audioEngine-BZB34VjD.esm.js +305 -0
  155. package/dist/chunks/audioEngine-BZB34VjD.esm.js.map +1 -0
  156. package/dist/chunks/audioEngine-BoxJPZL7.esm.min.js +2 -0
  157. package/dist/chunks/audioEngine-BoxJPZL7.esm.min.js.map +1 -0
  158. package/dist/chunks/bakedVertexAnimation-BQki1eZ4.esm.min.js +2 -0
  159. package/dist/chunks/bakedVertexAnimation-BQki1eZ4.esm.min.js.map +1 -0
  160. package/dist/chunks/bakedVertexAnimation-DpSHNKcC.esm.js +114 -0
  161. package/dist/chunks/bakedVertexAnimation-DpSHNKcC.esm.js.map +1 -0
  162. package/dist/chunks/basisTextureLoader-C3RlzqZl.esm.min.js +2 -0
  163. package/dist/chunks/basisTextureLoader-C3RlzqZl.esm.min.js.map +1 -0
  164. package/dist/chunks/basisTextureLoader-D6uyehp2.esm.js +600 -0
  165. package/dist/chunks/basisTextureLoader-D6uyehp2.esm.js.map +1 -0
  166. package/dist/chunks/dds-C1QgDMMC.esm.min.js +2 -0
  167. package/dist/chunks/dds-C1QgDMMC.esm.min.js.map +1 -0
  168. package/dist/chunks/dds-zApWiwah.esm.js +540 -0
  169. package/dist/chunks/dds-zApWiwah.esm.js.map +1 -0
  170. package/dist/chunks/ddsTextureLoader-CSYQAUdw.esm.js +88 -0
  171. package/dist/chunks/ddsTextureLoader-CSYQAUdw.esm.js.map +1 -0
  172. package/dist/chunks/ddsTextureLoader-Dyl2CjaG.esm.min.js +2 -0
  173. package/dist/chunks/ddsTextureLoader-Dyl2CjaG.esm.min.js.map +1 -0
  174. package/dist/chunks/decalFragment-BbsT8PSx.esm.min.js +2 -0
  175. package/dist/chunks/decalFragment-BbsT8PSx.esm.min.js.map +1 -0
  176. package/dist/chunks/decalFragment-DqgT4NiX.esm.js +18 -0
  177. package/dist/chunks/decalFragment-DqgT4NiX.esm.js.map +1 -0
  178. package/dist/chunks/default.fragment-Bpw23SLq.esm.min.js +2 -0
  179. package/dist/chunks/default.fragment-Bpw23SLq.esm.min.js.map +1 -0
  180. package/dist/chunks/default.fragment-C8lcinV9.esm.js +446 -0
  181. package/dist/chunks/default.fragment-C8lcinV9.esm.js.map +1 -0
  182. package/dist/chunks/default.fragment-De3FJCJD.esm.js +515 -0
  183. package/dist/chunks/default.fragment-De3FJCJD.esm.js.map +1 -0
  184. package/dist/chunks/default.fragment-b__nAv93.esm.min.js +2 -0
  185. package/dist/chunks/default.fragment-b__nAv93.esm.min.js.map +1 -0
  186. package/dist/chunks/default.vertex-BnpZVKdz.esm.min.js +2 -0
  187. package/dist/chunks/default.vertex-BnpZVKdz.esm.min.js.map +1 -0
  188. package/dist/chunks/default.vertex-CD2qxrmB.esm.js +190 -0
  189. package/dist/chunks/default.vertex-CD2qxrmB.esm.js.map +1 -0
  190. package/dist/chunks/default.vertex-CN5WYROZ.esm.min.js +2 -0
  191. package/dist/chunks/default.vertex-CN5WYROZ.esm.min.js.map +1 -0
  192. package/dist/chunks/default.vertex-DRHq60qX.esm.js +211 -0
  193. package/dist/chunks/default.vertex-DRHq60qX.esm.js.map +1 -0
  194. package/dist/chunks/defaultUboDeclaration-C0gMCjYL.esm.min.js +2 -0
  195. package/dist/chunks/defaultUboDeclaration-C0gMCjYL.esm.min.js.map +1 -0
  196. package/dist/chunks/defaultUboDeclaration-CGRrluBg.esm.min.js +2 -0
  197. package/dist/chunks/defaultUboDeclaration-CGRrluBg.esm.min.js.map +1 -0
  198. package/dist/chunks/defaultUboDeclaration-DCybxQ0F.esm.js +13 -0
  199. package/dist/chunks/defaultUboDeclaration-DCybxQ0F.esm.js.map +1 -0
  200. package/dist/chunks/defaultUboDeclaration-xxIrKyXf.esm.js +15 -0
  201. package/dist/chunks/defaultUboDeclaration-xxIrKyXf.esm.js.map +1 -0
  202. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
  203. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
  204. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
  205. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
  206. package/dist/chunks/dumpTools-BOVGklo2.esm.min.js +2 -0
  207. package/dist/chunks/dumpTools-BOVGklo2.esm.min.js.map +1 -0
  208. package/dist/chunks/dumpTools-Dy-fD64p.esm.js +200 -0
  209. package/dist/chunks/dumpTools-Dy-fD64p.esm.js.map +1 -0
  210. package/dist/chunks/engine-CBGABL2W.esm.min.js +2 -0
  211. package/dist/chunks/engine-CBGABL2W.esm.min.js.map +1 -0
  212. package/dist/chunks/engine-D9Sn-BC6.esm.js +2213 -0
  213. package/dist/chunks/engine-D9Sn-BC6.esm.js.map +1 -0
  214. package/dist/chunks/engine.common-BM1GAef8.esm.js +1162 -0
  215. package/dist/chunks/engine.common-BM1GAef8.esm.js.map +1 -0
  216. package/dist/chunks/engine.common-xMH7x2b0.esm.min.js +2 -0
  217. package/dist/chunks/engine.common-xMH7x2b0.esm.min.js.map +1 -0
  218. package/dist/chunks/envTextureLoader-BRdNaVH2.esm.min.js +2 -0
  219. package/dist/chunks/envTextureLoader-BRdNaVH2.esm.min.js.map +1 -0
  220. package/dist/chunks/envTextureLoader-DT_xwrde.esm.js +64 -0
  221. package/dist/chunks/envTextureLoader-DT_xwrde.esm.js.map +1 -0
  222. package/dist/chunks/environmentTextureTools-BxWsgzT8.esm.min.js +2 -0
  223. package/dist/chunks/environmentTextureTools-BxWsgzT8.esm.min.js.map +1 -0
  224. package/dist/chunks/environmentTextureTools-DuNLB_SE.esm.js +382 -0
  225. package/dist/chunks/environmentTextureTools-DuNLB_SE.esm.js.map +1 -0
  226. package/dist/chunks/exrTextureLoader-BBL1-v_g.esm.min.js +2 -0
  227. package/dist/chunks/exrTextureLoader-BBL1-v_g.esm.min.js.map +1 -0
  228. package/dist/chunks/exrTextureLoader-CUiWw4Oh.esm.js +1683 -0
  229. package/dist/chunks/exrTextureLoader-CUiWw4Oh.esm.js.map +1 -0
  230. package/dist/chunks/fogFragment-BCz1GIrJ.esm.min.js +2 -0
  231. package/dist/chunks/fogFragment-BCz1GIrJ.esm.min.js.map +1 -0
  232. package/dist/chunks/fogFragment-BQLWFsYl.esm.min.js +2 -0
  233. package/dist/chunks/fogFragment-BQLWFsYl.esm.min.js.map +1 -0
  234. package/dist/chunks/fogFragment-DANl-YQk.esm.js +102 -0
  235. package/dist/chunks/fogFragment-DANl-YQk.esm.js.map +1 -0
  236. package/dist/chunks/fogFragment-DptoygQ5.esm.js +101 -0
  237. package/dist/chunks/fogFragment-DptoygQ5.esm.js.map +1 -0
  238. package/dist/chunks/fresnelFunction-3-z89NGn.esm.js +12 -0
  239. package/dist/chunks/fresnelFunction-3-z89NGn.esm.js.map +1 -0
  240. package/dist/chunks/fresnelFunction-CbnLfwWn.esm.min.js +2 -0
  241. package/dist/chunks/fresnelFunction-CbnLfwWn.esm.min.js.map +1 -0
  242. package/dist/chunks/glTFLoader-Qw5JObwf.esm.js +7658 -0
  243. package/dist/chunks/glTFLoader-Qw5JObwf.esm.js.map +1 -0
  244. package/dist/chunks/glTFLoader-iKlvKEG-.esm.min.js +2 -0
  245. package/dist/chunks/glTFLoader-iKlvKEG-.esm.min.js.map +1 -0
  246. package/dist/chunks/glTFLoaderAnimation-BCUZthxT.esm.js +77 -0
  247. package/dist/chunks/glTFLoaderAnimation-BCUZthxT.esm.js.map +1 -0
  248. package/dist/chunks/glTFLoaderAnimation-DnTkRibM.esm.min.js +2 -0
  249. package/dist/chunks/glTFLoaderAnimation-DnTkRibM.esm.min.js.map +1 -0
  250. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +2 -0
  251. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +1 -0
  252. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +67 -0
  253. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +1 -0
  254. package/dist/chunks/harmonicsFunctions-19PWyV81.esm.js +34 -0
  255. package/dist/chunks/harmonicsFunctions-19PWyV81.esm.js.map +1 -0
  256. package/dist/chunks/harmonicsFunctions-D4sp7bHN.esm.js +35 -0
  257. package/dist/chunks/harmonicsFunctions-D4sp7bHN.esm.js.map +1 -0
  258. package/dist/chunks/harmonicsFunctions-DSpaTpH7.esm.min.js +2 -0
  259. package/dist/chunks/harmonicsFunctions-DSpaTpH7.esm.min.js.map +1 -0
  260. package/dist/chunks/harmonicsFunctions-DvH68s1g.esm.min.js +2 -0
  261. package/dist/chunks/harmonicsFunctions-DvH68s1g.esm.min.js.map +1 -0
  262. package/dist/chunks/hdrTextureLoader-ChbZ5_1g.esm.min.js +2 -0
  263. package/dist/chunks/hdrTextureLoader-ChbZ5_1g.esm.min.js.map +1 -0
  264. package/dist/chunks/hdrTextureLoader-OJaopXAb.esm.js +253 -0
  265. package/dist/chunks/hdrTextureLoader-OJaopXAb.esm.js.map +1 -0
  266. package/dist/chunks/helperFunctions-CNCeKea7.esm.js +81 -0
  267. package/dist/chunks/helperFunctions-CNCeKea7.esm.js.map +1 -0
  268. package/dist/chunks/helperFunctions-Crs36Q3w.esm.js +109 -0
  269. package/dist/chunks/helperFunctions-Crs36Q3w.esm.js.map +1 -0
  270. package/dist/chunks/helperFunctions-DKz6om6i.esm.min.js +2 -0
  271. package/dist/chunks/helperFunctions-DKz6om6i.esm.min.js.map +1 -0
  272. package/dist/chunks/helperFunctions-bZhuioWn.esm.min.js +2 -0
  273. package/dist/chunks/helperFunctions-bZhuioWn.esm.min.js.map +1 -0
  274. package/dist/chunks/iesTextureLoader-BTOaWdIK.esm.js +189 -0
  275. package/dist/chunks/iesTextureLoader-BTOaWdIK.esm.js.map +1 -0
  276. package/dist/chunks/iesTextureLoader-CKnu1maC.esm.min.js +2 -0
  277. package/dist/chunks/iesTextureLoader-CKnu1maC.esm.min.js.map +1 -0
  278. package/dist/chunks/index-5L5wXyrx.esm.js +74870 -0
  279. package/dist/chunks/index-5L5wXyrx.esm.js.map +1 -0
  280. package/dist/chunks/index-B5KLkjYm.esm.min.js +57 -0
  281. package/dist/chunks/index-B5KLkjYm.esm.min.js.map +1 -0
  282. package/dist/chunks/ktxTextureLoader-CMfHt5rp.esm.js +814 -0
  283. package/dist/chunks/ktxTextureLoader-CMfHt5rp.esm.js.map +1 -0
  284. package/dist/chunks/ktxTextureLoader-DCyzShol.esm.min.js +2 -0
  285. package/dist/chunks/ktxTextureLoader-DCyzShol.esm.min.js.map +1 -0
  286. package/dist/chunks/logDepthDeclaration-8CuoGLY6.esm.js +35 -0
  287. package/dist/chunks/logDepthDeclaration-8CuoGLY6.esm.js.map +1 -0
  288. package/dist/chunks/logDepthDeclaration-BC68Ktb0.esm.js +11 -0
  289. package/dist/chunks/logDepthDeclaration-BC68Ktb0.esm.js.map +1 -0
  290. package/dist/chunks/logDepthDeclaration-CgPuLaM9.esm.min.js +2 -0
  291. package/dist/chunks/logDepthDeclaration-CgPuLaM9.esm.min.js.map +1 -0
  292. package/dist/chunks/logDepthDeclaration-iNYm9mSn.esm.min.js +2 -0
  293. package/dist/chunks/logDepthDeclaration-iNYm9mSn.esm.min.js.map +1 -0
  294. package/dist/chunks/logDepthVertex-BOepIJij.esm.js +77 -0
  295. package/dist/chunks/logDepthVertex-BOepIJij.esm.js.map +1 -0
  296. package/dist/chunks/logDepthVertex-Bno6ozc-.esm.min.js +2 -0
  297. package/dist/chunks/logDepthVertex-Bno6ozc-.esm.min.js.map +1 -0
  298. package/dist/chunks/logDepthVertex-CU3WBwOA.esm.js +81 -0
  299. package/dist/chunks/logDepthVertex-CU3WBwOA.esm.js.map +1 -0
  300. package/dist/chunks/logDepthVertex-DjeubcPn.esm.min.js +2 -0
  301. package/dist/chunks/logDepthVertex-DjeubcPn.esm.min.js.map +1 -0
  302. package/dist/chunks/mainUVVaryingDeclaration-C_Am-o4e.esm.js +11 -0
  303. package/dist/chunks/mainUVVaryingDeclaration-C_Am-o4e.esm.js.map +1 -0
  304. package/dist/chunks/mainUVVaryingDeclaration-CuSqEhkE.esm.min.js +2 -0
  305. package/dist/chunks/mainUVVaryingDeclaration-CuSqEhkE.esm.min.js.map +1 -0
  306. package/dist/chunks/mainUVVaryingDeclaration-DxqJq0-m.esm.js +11 -0
  307. package/dist/chunks/mainUVVaryingDeclaration-DxqJq0-m.esm.js.map +1 -0
  308. package/dist/chunks/mainUVVaryingDeclaration-oZF0xIut.esm.min.js +2 -0
  309. package/dist/chunks/mainUVVaryingDeclaration-oZF0xIut.esm.min.js.map +1 -0
  310. package/dist/chunks/mesh.vertexData.functions-B_pMCAzZ.esm.js +119 -0
  311. package/dist/chunks/mesh.vertexData.functions-B_pMCAzZ.esm.js.map +1 -0
  312. package/dist/chunks/mesh.vertexData.functions-Bo7e6Of9.esm.min.js +2 -0
  313. package/dist/chunks/mesh.vertexData.functions-Bo7e6Of9.esm.min.js.map +1 -0
  314. package/dist/chunks/meshUboDeclaration-BWuUYN5-.esm.js +26 -0
  315. package/dist/chunks/meshUboDeclaration-BWuUYN5-.esm.js.map +1 -0
  316. package/dist/chunks/meshUboDeclaration-D-9f-79D.esm.min.js +2 -0
  317. package/dist/chunks/meshUboDeclaration-D-9f-79D.esm.min.js.map +1 -0
  318. package/dist/chunks/objFileLoader-B3PzHlWB.esm.min.js +2 -0
  319. package/dist/chunks/objFileLoader-B3PzHlWB.esm.min.js.map +1 -0
  320. package/dist/chunks/objFileLoader-BjHr-pn1.esm.js +1338 -0
  321. package/dist/chunks/objFileLoader-BjHr-pn1.esm.js.map +1 -0
  322. package/dist/chunks/oitFragment-BypZDJVo.esm.min.js +2 -0
  323. package/dist/chunks/oitFragment-BypZDJVo.esm.min.js.map +1 -0
  324. package/dist/chunks/oitFragment-D3g8w3hO.esm.js +1078 -0
  325. package/dist/chunks/oitFragment-D3g8w3hO.esm.js.map +1 -0
  326. package/dist/chunks/oitFragment-Db3h4DV5.esm.min.js +2 -0
  327. package/dist/chunks/oitFragment-Db3h4DV5.esm.min.js.map +1 -0
  328. package/dist/chunks/oitFragment-tQJLudg5.esm.js +1240 -0
  329. package/dist/chunks/oitFragment-tQJLudg5.esm.js.map +1 -0
  330. package/dist/chunks/pass.fragment-C8CWeVkM.esm.js +15 -0
  331. package/dist/chunks/pass.fragment-C8CWeVkM.esm.js.map +1 -0
  332. package/dist/chunks/pass.fragment-CSK2ynPe.esm.js +15 -0
  333. package/dist/chunks/pass.fragment-CSK2ynPe.esm.js.map +1 -0
  334. package/dist/chunks/pass.fragment-CdgLWa1Q.esm.min.js +2 -0
  335. package/dist/chunks/pass.fragment-CdgLWa1Q.esm.min.js.map +1 -0
  336. package/dist/chunks/pass.fragment-ONNyQPrD.esm.min.js +2 -0
  337. package/dist/chunks/pass.fragment-ONNyQPrD.esm.min.js.map +1 -0
  338. package/dist/chunks/pbr.fragment-Be9mZgL7.esm.js +3269 -0
  339. package/dist/chunks/pbr.fragment-Be9mZgL7.esm.js.map +1 -0
  340. package/dist/chunks/pbr.fragment-C13t4f7Z.esm.min.js +2 -0
  341. package/dist/chunks/pbr.fragment-C13t4f7Z.esm.min.js.map +1 -0
  342. package/dist/chunks/pbr.fragment-CiAe6mgr.esm.js +3222 -0
  343. package/dist/chunks/pbr.fragment-CiAe6mgr.esm.js.map +1 -0
  344. package/dist/chunks/pbr.fragment-I66pqwoX.esm.min.js +2 -0
  345. package/dist/chunks/pbr.fragment-I66pqwoX.esm.min.js.map +1 -0
  346. package/dist/chunks/pbr.vertex-BlqPEcZe.esm.js +223 -0
  347. package/dist/chunks/pbr.vertex-BlqPEcZe.esm.js.map +1 -0
  348. package/dist/chunks/pbr.vertex-C1r_QFvZ.esm.min.js +2 -0
  349. package/dist/chunks/pbr.vertex-C1r_QFvZ.esm.min.js.map +1 -0
  350. package/dist/chunks/pbr.vertex-DE9NTHal.esm.min.js +2 -0
  351. package/dist/chunks/pbr.vertex-DE9NTHal.esm.min.js.map +1 -0
  352. package/dist/chunks/pbr.vertex-oQpu2zia.esm.js +348 -0
  353. package/dist/chunks/pbr.vertex-oQpu2zia.esm.js.map +1 -0
  354. package/dist/chunks/postprocess.vertex-D3XLqa14.esm.js +20 -0
  355. package/dist/chunks/postprocess.vertex-D3XLqa14.esm.js.map +1 -0
  356. package/dist/chunks/postprocess.vertex-IkQbrBQH.esm.min.js +2 -0
  357. package/dist/chunks/postprocess.vertex-IkQbrBQH.esm.min.js.map +1 -0
  358. package/dist/chunks/rawTexture-BVf9vm87.esm.js +191 -0
  359. package/dist/chunks/rawTexture-BVf9vm87.esm.js.map +1 -0
  360. package/dist/chunks/rawTexture-CNxyCiVq.esm.min.js +2 -0
  361. package/dist/chunks/rawTexture-CNxyCiVq.esm.min.js.map +1 -0
  362. package/dist/chunks/ray-BLVbie8S.esm.min.js +2 -0
  363. package/dist/chunks/ray-BLVbie8S.esm.min.js.map +1 -0
  364. package/dist/chunks/ray-C7H9vp-x.esm.js +946 -0
  365. package/dist/chunks/ray-C7H9vp-x.esm.js.map +1 -0
  366. package/dist/chunks/rgbdDecode.fragment-9dPOcBOA.esm.min.js +2 -0
  367. package/dist/chunks/rgbdDecode.fragment-9dPOcBOA.esm.min.js.map +1 -0
  368. package/dist/chunks/rgbdDecode.fragment-ApyH83v_.esm.js +13 -0
  369. package/dist/chunks/rgbdDecode.fragment-ApyH83v_.esm.js.map +1 -0
  370. package/dist/chunks/rgbdDecode.fragment-Bt75XOUV.esm.min.js +2 -0
  371. package/dist/chunks/rgbdDecode.fragment-Bt75XOUV.esm.min.js.map +1 -0
  372. package/dist/chunks/rgbdDecode.fragment-DDIJs9ID.esm.js +13 -0
  373. package/dist/chunks/rgbdDecode.fragment-DDIJs9ID.esm.js.map +1 -0
  374. package/dist/chunks/rgbdEncode.fragment-CSquf6K4.esm.js +13 -0
  375. package/dist/chunks/rgbdEncode.fragment-CSquf6K4.esm.js.map +1 -0
  376. package/dist/chunks/rgbdEncode.fragment-Cpudy2qT.esm.js +13 -0
  377. package/dist/chunks/rgbdEncode.fragment-Cpudy2qT.esm.js.map +1 -0
  378. package/dist/chunks/rgbdEncode.fragment-DZs59_tV.esm.min.js +2 -0
  379. package/dist/chunks/rgbdEncode.fragment-DZs59_tV.esm.min.js.map +1 -0
  380. package/dist/chunks/rgbdEncode.fragment-Djxd-azW.esm.min.js +2 -0
  381. package/dist/chunks/rgbdEncode.fragment-Djxd-azW.esm.min.js.map +1 -0
  382. package/dist/chunks/splatFileLoader-BkExyfY6.esm.js +3379 -0
  383. package/dist/chunks/splatFileLoader-BkExyfY6.esm.js.map +1 -0
  384. package/dist/chunks/splatFileLoader-DLc_wKu4.esm.min.js +2 -0
  385. package/dist/chunks/splatFileLoader-DLc_wKu4.esm.min.js.map +1 -0
  386. package/dist/chunks/spotLight-CFGRpcFc.esm.js +701 -0
  387. package/dist/chunks/spotLight-CFGRpcFc.esm.js.map +1 -0
  388. package/dist/chunks/spotLight-z5HIEQmM.esm.min.js +2 -0
  389. package/dist/chunks/spotLight-z5HIEQmM.esm.min.js.map +1 -0
  390. package/dist/chunks/standardMaterial-B5u9Vzil.esm.min.js +2 -0
  391. package/dist/chunks/standardMaterial-B5u9Vzil.esm.min.js.map +1 -0
  392. package/dist/chunks/standardMaterial-BJzDZ72T.esm.js +1806 -0
  393. package/dist/chunks/standardMaterial-BJzDZ72T.esm.js.map +1 -0
  394. package/dist/chunks/stlFileLoader-B3Y6u4L6.esm.min.js +2 -0
  395. package/dist/chunks/stlFileLoader-B3Y6u4L6.esm.min.js.map +1 -0
  396. package/dist/chunks/stlFileLoader-Bd1GgkYU.esm.js +238 -0
  397. package/dist/chunks/stlFileLoader-Bd1GgkYU.esm.js.map +1 -0
  398. package/dist/chunks/tgaTextureLoader-BD_A6gyw.esm.min.js +2 -0
  399. package/dist/chunks/tgaTextureLoader-BD_A6gyw.esm.min.js.map +1 -0
  400. package/dist/chunks/tgaTextureLoader-DnUiJRBO.esm.js +349 -0
  401. package/dist/chunks/tgaTextureLoader-DnUiJRBO.esm.js.map +1 -0
  402. package/dist/chunks/thinEngine-CRNAFHqA.esm.min.js +2 -0
  403. package/dist/chunks/thinEngine-CRNAFHqA.esm.min.js.map +1 -0
  404. package/dist/chunks/thinEngine-DGyFDxzW.esm.js +3853 -0
  405. package/dist/chunks/thinEngine-DGyFDxzW.esm.js.map +1 -0
  406. package/dist/chunks/thinInstanceMesh-B-f1KNB2.esm.min.js +2 -0
  407. package/dist/chunks/thinInstanceMesh-B-f1KNB2.esm.min.js.map +1 -0
  408. package/dist/chunks/thinInstanceMesh-D-cofgbF.esm.js +314 -0
  409. package/dist/chunks/thinInstanceMesh-D-cofgbF.esm.js.map +1 -0
  410. package/dist/chunks/vertexColorMixing-BUqoiJkS.esm.min.js +2 -0
  411. package/dist/chunks/vertexColorMixing-BUqoiJkS.esm.min.js.map +1 -0
  412. package/dist/chunks/vertexColorMixing-CBpXxGvM.esm.js +421 -0
  413. package/dist/chunks/vertexColorMixing-CBpXxGvM.esm.js.map +1 -0
  414. package/dist/chunks/vertexColorMixing-ChUhO7eS.esm.js +531 -0
  415. package/dist/chunks/vertexColorMixing-ChUhO7eS.esm.js.map +1 -0
  416. package/dist/chunks/vertexColorMixing-DbmkfWMo.esm.min.js +2 -0
  417. package/dist/chunks/vertexColorMixing-DbmkfWMo.esm.min.js.map +1 -0
  418. package/dist/chunks/webgpuEngine-DqprhQ4L.esm.js +11538 -0
  419. package/dist/chunks/webgpuEngine-DqprhQ4L.esm.js.map +1 -0
  420. package/dist/chunks/webgpuEngine-LpKjcEuV.esm.min.js +2 -0
  421. package/dist/chunks/webgpuEngine-LpKjcEuV.esm.min.js.map +1 -0
  422. package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
  423. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
  424. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
  425. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
  426. package/lib/index.d.ts +591 -0
  427. package/lib/index.js +2165 -0
  428. package/lib/index.js.map +1 -0
  429. package/package.json +19 -28
  430. package/readme.md +28 -28
  431. package/configuration/configuration.d.ts +0 -107
  432. package/configuration/configuration.js +0 -16
  433. package/configuration/configuration.js.map +0 -1
  434. package/configuration/configurationCompatibility.d.ts +0 -8
  435. package/configuration/configurationCompatibility.js +0 -66
  436. package/configuration/configurationCompatibility.js.map +0 -1
  437. package/configuration/configurationContainer.d.ts +0 -10
  438. package/configuration/configurationContainer.js +0 -10
  439. package/configuration/configurationContainer.js.map +0 -1
  440. package/configuration/globals.d.ts +0 -6
  441. package/configuration/globals.js +0 -18
  442. package/configuration/globals.js.map +0 -1
  443. package/configuration/index.d.ts +0 -2
  444. package/configuration/index.js +0 -4
  445. package/configuration/index.js.map +0 -1
  446. package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
  447. package/configuration/interfaces/cameraConfiguration.js +0 -2
  448. package/configuration/interfaces/cameraConfiguration.js.map +0 -1
  449. package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
  450. package/configuration/interfaces/colorGradingConfiguration.js +0 -2
  451. package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
  452. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
  453. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
  454. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
  455. package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
  456. package/configuration/interfaces/environmentMapConfiguration.js +0 -2
  457. package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
  458. package/configuration/interfaces/groundConfiguration.d.ts +0 -24
  459. package/configuration/interfaces/groundConfiguration.js +0 -2
  460. package/configuration/interfaces/groundConfiguration.js.map +0 -1
  461. package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
  462. package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
  463. package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
  464. package/configuration/interfaces/index.d.ts +0 -15
  465. package/configuration/interfaces/index.js +0 -16
  466. package/configuration/interfaces/index.js.map +0 -1
  467. package/configuration/interfaces/lightConfiguration.d.ts +0 -60
  468. package/configuration/interfaces/lightConfiguration.js +0 -2
  469. package/configuration/interfaces/lightConfiguration.js.map +0 -1
  470. package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
  471. package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
  472. package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
  473. package/configuration/interfaces/modelConfiguration.d.ts +0 -65
  474. package/configuration/interfaces/modelConfiguration.js +0 -2
  475. package/configuration/interfaces/modelConfiguration.js.map +0 -1
  476. package/configuration/interfaces/observersConfiguration.d.ts +0 -5
  477. package/configuration/interfaces/observersConfiguration.js +0 -2
  478. package/configuration/interfaces/observersConfiguration.js.map +0 -1
  479. package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
  480. package/configuration/interfaces/sceneConfiguration.js +0 -2
  481. package/configuration/interfaces/sceneConfiguration.js.map +0 -1
  482. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
  483. package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
  484. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
  485. package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
  486. package/configuration/interfaces/skyboxConfiguration.js +0 -2
  487. package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
  488. package/configuration/interfaces/templateConfiguration.d.ts +0 -67
  489. package/configuration/interfaces/templateConfiguration.js +0 -2
  490. package/configuration/interfaces/templateConfiguration.js.map +0 -1
  491. package/configuration/interfaces/vrConfiguration.d.ts +0 -16
  492. package/configuration/interfaces/vrConfiguration.js +0 -2
  493. package/configuration/interfaces/vrConfiguration.js.map +0 -1
  494. package/configuration/loader.d.ts +0 -4
  495. package/configuration/loader.js +0 -17
  496. package/configuration/loader.js.map +0 -1
  497. package/configuration/mappers.d.ts +0 -43
  498. package/configuration/mappers.js +0 -193
  499. package/configuration/mappers.js.map +0 -1
  500. package/configuration/renderOnlyLoader.d.ts +0 -33
  501. package/configuration/renderOnlyLoader.js +0 -162
  502. package/configuration/renderOnlyLoader.js.map +0 -1
  503. package/configuration/types/default.d.ts +0 -6
  504. package/configuration/types/default.js +0 -121
  505. package/configuration/types/default.js.map +0 -1
  506. package/configuration/types/environmentMap.d.ts +0 -5
  507. package/configuration/types/environmentMap.js +0 -14
  508. package/configuration/types/environmentMap.js.map +0 -1
  509. package/configuration/types/extended.d.ts +0 -6
  510. package/configuration/types/extended.js +0 -317
  511. package/configuration/types/extended.js.map +0 -1
  512. package/configuration/types/index.d.ts +0 -14
  513. package/configuration/types/index.js +0 -51
  514. package/configuration/types/index.js.map +0 -1
  515. package/configuration/types/minimal.d.ts +0 -6
  516. package/configuration/types/minimal.js +0 -43
  517. package/configuration/types/minimal.js.map +0 -1
  518. package/configuration/types/renderOnlyDefault.d.ts +0 -30
  519. package/configuration/types/renderOnlyDefault.js +0 -31
  520. package/configuration/types/renderOnlyDefault.js.map +0 -1
  521. package/configuration/types/shadowLight.d.ts +0 -9
  522. package/configuration/types/shadowLight.js +0 -64
  523. package/configuration/types/shadowLight.js.map +0 -1
  524. package/helper/index.d.ts +0 -29
  525. package/helper/index.js +0 -66
  526. package/helper/index.js.map +0 -1
  527. package/index.d.ts +0 -30
  528. package/index.js +0 -46
  529. package/index.js.map +0 -1
  530. package/initializer.d.ts +0 -11
  531. package/initializer.js +0 -35
  532. package/initializer.js.map +0 -1
  533. package/interfaces.d.ts +0 -5
  534. package/interfaces.js +0 -7
  535. package/interfaces.js.map +0 -1
  536. package/labs/environmentSerializer.d.ts +0 -126
  537. package/labs/environmentSerializer.js +0 -191
  538. package/labs/environmentSerializer.js.map +0 -1
  539. package/labs/texture.d.ts +0 -183
  540. package/labs/texture.js +0 -351
  541. package/labs/texture.js.map +0 -1
  542. package/labs/viewerLabs.d.ts +0 -51
  543. package/labs/viewerLabs.js +0 -134
  544. package/labs/viewerLabs.js.map +0 -1
  545. package/loader/modelLoader.d.ts +0 -56
  546. package/loader/modelLoader.js +0 -202
  547. package/loader/modelLoader.js.map +0 -1
  548. package/loader/plugins/applyMaterialConfig.d.ts +0 -12
  549. package/loader/plugins/applyMaterialConfig.js +0 -16
  550. package/loader/plugins/applyMaterialConfig.js.map +0 -1
  551. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
  552. package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
  553. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
  554. package/loader/plugins/index.d.ts +0 -19
  555. package/loader/plugins/index.js +0 -44
  556. package/loader/plugins/index.js.map +0 -1
  557. package/loader/plugins/loaderPlugin.d.ts +0 -24
  558. package/loader/plugins/loaderPlugin.js +0 -2
  559. package/loader/plugins/loaderPlugin.js.map +0 -1
  560. package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
  561. package/loader/plugins/msftLodLoaderPlugin.js +0 -21
  562. package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
  563. package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
  564. package/loader/plugins/telemetryLoaderPlugin.js +0 -36
  565. package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
  566. package/managers/observablesManager.d.ts +0 -66
  567. package/managers/observablesManager.js +0 -35
  568. package/managers/observablesManager.js.map +0 -1
  569. package/managers/sceneManager.d.ts +0 -245
  570. package/managers/sceneManager.js +0 -1375
  571. package/managers/sceneManager.js.map +0 -1
  572. package/managers/telemetryManager.d.ts +0 -78
  573. package/managers/telemetryManager.js +0 -117
  574. package/managers/telemetryManager.js.map +0 -1
  575. package/model/modelAnimation.d.ts +0 -215
  576. package/model/modelAnimation.js +0 -237
  577. package/model/modelAnimation.js.map +0 -1
  578. package/model/viewerModel.d.ts +0 -233
  579. package/model/viewerModel.js +0 -673
  580. package/model/viewerModel.js.map +0 -1
  581. package/optimizer/custom/extended.d.ts +0 -13
  582. package/optimizer/custom/extended.js +0 -101
  583. package/optimizer/custom/extended.js.map +0 -1
  584. package/optimizer/custom/index.d.ts +0 -9
  585. package/optimizer/custom/index.js +0 -26
  586. package/optimizer/custom/index.js.map +0 -1
  587. package/renderOnlyIndex.d.ts +0 -11
  588. package/renderOnlyIndex.js +0 -18
  589. package/renderOnlyIndex.js.map +0 -1
  590. package/templating/eventManager.d.ts +0 -35
  591. package/templating/eventManager.js +0 -66
  592. package/templating/eventManager.js.map +0 -1
  593. package/templating/plugins/hdButtonPlugin.d.ts +0 -9
  594. package/templating/plugins/hdButtonPlugin.js +0 -22
  595. package/templating/plugins/hdButtonPlugin.js.map +0 -1
  596. package/templating/plugins/printButton.d.ts +0 -9
  597. package/templating/plugins/printButton.js +0 -41
  598. package/templating/plugins/printButton.js.map +0 -1
  599. package/templating/templateManager.d.ts +0 -197
  600. package/templating/templateManager.js +0 -561
  601. package/templating/templateManager.js.map +0 -1
  602. package/templating/viewerTemplatePlugin.d.ts +0 -21
  603. package/templating/viewerTemplatePlugin.js +0 -69
  604. package/templating/viewerTemplatePlugin.js.map +0 -1
  605. package/viewer/defaultViewer.d.ts +0 -130
  606. package/viewer/defaultViewer.js +0 -672
  607. package/viewer/defaultViewer.js.map +0 -1
  608. package/viewer/renderOnlyViewer.d.ts +0 -9
  609. package/viewer/renderOnlyViewer.js +0 -46
  610. package/viewer/renderOnlyViewer.js.map +0 -1
  611. package/viewer/viewer.d.ts +0 -258
  612. package/viewer/viewer.js +0 -783
  613. package/viewer/viewer.js.map +0 -1
  614. package/viewer/viewerManager.d.ts +0 -58
  615. package/viewer/viewerManager.js +0 -91
  616. package/viewer/viewerManager.js.map +0 -1
  617. package/viewer/viewerWithTemplate.d.ts +0 -9
  618. package/viewer/viewerWithTemplate.js +0 -20
  619. package/viewer/viewerWithTemplate.js.map +0 -1
@@ -0,0 +1,610 @@
1
+ import { T as Tools, w as Geometry, V as VertexBuffer, L as Logger, aQ as unregisterGLTFExtension, aR as registerGLTFExtension } from './index-5L5wXyrx.esm.js';
2
+ import { A as AutoReleaseWorkerPool } from './workerPool-BUOov2K1.esm.js';
3
+ import { G as GLTFLoader, A as ArrayItem, L as LoadBoundingInfoFromPositionAccessor } from './glTFLoader-Qw5JObwf.esm.js';
4
+ import './rawTexture-BVf9vm87.esm.js';
5
+ import './assetContainer-BzlRl_4x.esm.js';
6
+ import './glTFLoaderAnimation-BCUZthxT.esm.js';
7
+
8
+ /**
9
+ * @internal
10
+ */
11
+ function decodeMesh(decoderModule /*DecoderModule*/, data, attributes, onIndicesData, onAttributeData) {
12
+ let decoder = null;
13
+ let buffer = null;
14
+ let geometry = null;
15
+ try {
16
+ decoder = new decoderModule.Decoder();
17
+ buffer = new decoderModule.DecoderBuffer();
18
+ buffer.Init(data, data.byteLength);
19
+ let status;
20
+ const type = decoder.GetEncodedGeometryType(buffer);
21
+ switch (type) {
22
+ case decoderModule.TRIANGULAR_MESH: {
23
+ const mesh = new decoderModule.Mesh();
24
+ status = decoder.DecodeBufferToMesh(buffer, mesh);
25
+ if (!status.ok() || mesh.ptr === 0) {
26
+ throw new Error(status.error_msg());
27
+ }
28
+ const numFaces = mesh.num_faces();
29
+ const numIndices = numFaces * 3;
30
+ const byteLength = numIndices * 4;
31
+ const ptr = decoderModule._malloc(byteLength);
32
+ try {
33
+ decoder.GetTrianglesUInt32Array(mesh, byteLength, ptr);
34
+ const indices = new Uint32Array(numIndices);
35
+ indices.set(new Uint32Array(decoderModule.HEAPF32.buffer, ptr, numIndices));
36
+ onIndicesData(indices);
37
+ }
38
+ finally {
39
+ decoderModule._free(ptr);
40
+ }
41
+ geometry = mesh;
42
+ break;
43
+ }
44
+ case decoderModule.POINT_CLOUD: {
45
+ const pointCloud = new decoderModule.PointCloud();
46
+ status = decoder.DecodeBufferToPointCloud(buffer, pointCloud);
47
+ if (!status.ok() || !pointCloud.ptr) {
48
+ throw new Error(status.error_msg());
49
+ }
50
+ geometry = pointCloud;
51
+ break;
52
+ }
53
+ default: {
54
+ throw new Error(`Invalid geometry type ${type}`);
55
+ }
56
+ }
57
+ const numPoints = geometry.num_points();
58
+ const processAttribute = (decoder, geometry, kind, attribute) => {
59
+ const dataType = attribute.data_type();
60
+ const numComponents = attribute.num_components();
61
+ const normalized = attribute.normalized();
62
+ const byteStride = attribute.byte_stride();
63
+ const byteOffset = attribute.byte_offset();
64
+ const dataTypeInfo = {
65
+ [decoderModule.DT_FLOAT32]: { typedArrayConstructor: Float32Array, heap: decoderModule.HEAPF32 },
66
+ [decoderModule.DT_INT8]: { typedArrayConstructor: Int8Array, heap: decoderModule.HEAP8 },
67
+ [decoderModule.DT_INT16]: { typedArrayConstructor: Int16Array, heap: decoderModule.HEAP16 },
68
+ [decoderModule.DT_INT32]: { typedArrayConstructor: Int32Array, heap: decoderModule.HEAP32 },
69
+ [decoderModule.DT_UINT8]: { typedArrayConstructor: Uint8Array, heap: decoderModule.HEAPU8 },
70
+ [decoderModule.DT_UINT16]: { typedArrayConstructor: Uint16Array, heap: decoderModule.HEAPU16 },
71
+ [decoderModule.DT_UINT32]: { typedArrayConstructor: Uint32Array, heap: decoderModule.HEAPU32 },
72
+ };
73
+ const info = dataTypeInfo[dataType];
74
+ if (!info) {
75
+ throw new Error(`Invalid data type ${dataType}`);
76
+ }
77
+ const numValues = numPoints * numComponents;
78
+ const byteLength = numValues * info.typedArrayConstructor.BYTES_PER_ELEMENT;
79
+ const ptr = decoderModule._malloc(byteLength);
80
+ try {
81
+ decoder.GetAttributeDataArrayForAllPoints(geometry, attribute, dataType, byteLength, ptr);
82
+ const data = new info.typedArrayConstructor(info.heap.buffer, ptr, numValues);
83
+ onAttributeData(kind, data.slice(), numComponents, byteOffset, byteStride, normalized);
84
+ }
85
+ finally {
86
+ decoderModule._free(ptr);
87
+ }
88
+ };
89
+ if (attributes) {
90
+ for (const kind in attributes) {
91
+ const id = attributes[kind];
92
+ const attribute = decoder.GetAttributeByUniqueId(geometry, id);
93
+ processAttribute(decoder, geometry, kind, attribute);
94
+ }
95
+ }
96
+ else {
97
+ const dracoAttributeTypes = {
98
+ position: decoderModule.POSITION,
99
+ normal: decoderModule.NORMAL,
100
+ color: decoderModule.COLOR,
101
+ uv: decoderModule.TEX_COORD,
102
+ };
103
+ for (const kind in dracoAttributeTypes) {
104
+ const id = decoder.GetAttributeId(geometry, dracoAttributeTypes[kind]);
105
+ if (id !== -1) {
106
+ const attribute = decoder.GetAttribute(geometry, id);
107
+ processAttribute(decoder, geometry, kind, attribute);
108
+ }
109
+ }
110
+ }
111
+ return numPoints;
112
+ }
113
+ finally {
114
+ if (geometry) {
115
+ decoderModule.destroy(geometry);
116
+ }
117
+ if (buffer) {
118
+ decoderModule.destroy(buffer);
119
+ }
120
+ if (decoder) {
121
+ decoderModule.destroy(decoder);
122
+ }
123
+ }
124
+ }
125
+ /**
126
+ * The worker function that gets converted to a blob url to pass into a worker.
127
+ * To be used if a developer wants to create their own worker instance and inject it instead of using the default worker.
128
+ */
129
+ function workerFunction() {
130
+ let decoderPromise;
131
+ onmessage = (event) => {
132
+ const message = event.data;
133
+ switch (message.id) {
134
+ case "init": {
135
+ const decoder = message.decoder;
136
+ // if URL is provided then load the script. Otherwise expect the script to be loaded already
137
+ if (decoder.url) {
138
+ importScripts(decoder.url);
139
+ }
140
+ const initDecoderObject = decoder.wasmBinary ? { wasmBinary: decoder.wasmBinary } : {};
141
+ decoderPromise = DracoDecoderModule(initDecoderObject);
142
+ postMessage({ id: "initDone" });
143
+ break;
144
+ }
145
+ case "decodeMesh": {
146
+ if (!decoderPromise) {
147
+ throw new Error("Draco decoder module is not available");
148
+ }
149
+ decoderPromise.then((decoder) => {
150
+ const numPoints = decodeMesh(decoder, message.dataView, message.attributes, (indices) => {
151
+ postMessage({ id: "indices", data: indices }, [indices.buffer]);
152
+ }, (kind, data, size, offset, stride, normalized) => {
153
+ postMessage({ id: "attribute", kind, data, size, byteOffset: offset, byteStride: stride, normalized }, [data.buffer]);
154
+ });
155
+ postMessage({ id: "decodeMeshDone", totalVertices: numPoints });
156
+ });
157
+ break;
158
+ }
159
+ }
160
+ };
161
+ }
162
+ /**
163
+ * Initializes a worker that was created for the draco agent pool
164
+ * @param worker The worker to initialize
165
+ * @param decoderWasmBinary The wasm binary to load into the worker
166
+ * @param moduleUrl The url to the draco decoder module (optional)
167
+ * @returns A promise that resolves when the worker is initialized
168
+ */
169
+ function initializeWebWorker(worker, decoderWasmBinary, moduleUrl) {
170
+ return new Promise((resolve, reject) => {
171
+ const onError = (error) => {
172
+ worker.removeEventListener("error", onError);
173
+ worker.removeEventListener("message", onMessage);
174
+ reject(error);
175
+ };
176
+ const onMessage = (event) => {
177
+ if (event.data.id === "initDone") {
178
+ worker.removeEventListener("error", onError);
179
+ worker.removeEventListener("message", onMessage);
180
+ resolve(worker);
181
+ }
182
+ };
183
+ worker.addEventListener("error", onError);
184
+ worker.addEventListener("message", onMessage);
185
+ if (!decoderWasmBinary) {
186
+ worker.postMessage({
187
+ id: "init",
188
+ decoder: {
189
+ url: moduleUrl,
190
+ },
191
+ });
192
+ }
193
+ else {
194
+ // clone the array buffer to make it transferable
195
+ const clone = decoderWasmBinary.slice(0);
196
+ worker.postMessage({
197
+ id: "init",
198
+ decoder: {
199
+ url: moduleUrl,
200
+ wasmBinary: clone,
201
+ },
202
+ }, [clone]);
203
+ }
204
+ // note: no transfer list as the ArrayBuffer is shared across main thread and pool workers
205
+ });
206
+ }
207
+
208
+ /**
209
+ * @internal
210
+ */
211
+ function _GetDefaultNumWorkers() {
212
+ if (typeof navigator !== "object" || !navigator.hardwareConcurrency) {
213
+ return 1;
214
+ }
215
+ // Use 50% of the available logical processors but capped at 4.
216
+ return Math.min(Math.floor(navigator.hardwareConcurrency * 0.5), 4);
217
+ }
218
+ /**
219
+ * @internal
220
+ */
221
+ function _IsConfigurationAvailable(config) {
222
+ return !!((config.wasmUrl && (config.wasmBinary || config.wasmBinaryUrl) && typeof WebAssembly === "object") || config.fallbackUrl);
223
+ // TODO: Account for jsModule
224
+ }
225
+ /**
226
+ * Base class for a Draco codec.
227
+ * @internal
228
+ */
229
+ class DracoCodec {
230
+ /**
231
+ * Constructor
232
+ * @param configuration The configuration for the DracoCodec instance.
233
+ */
234
+ constructor(configuration) {
235
+ // check if the codec binary and worker pool was injected
236
+ // Note - it is expected that the developer checked if WebWorker, WebAssembly and the URL object are available
237
+ if (configuration.workerPool) {
238
+ // Set the promise accordingly
239
+ this._workerPoolPromise = Promise.resolve(configuration.workerPool);
240
+ return;
241
+ }
242
+ // to avoid making big changes to the code here, if wasmBinary is provided use it in the wasmBinaryPromise
243
+ const wasmBinaryProvided = configuration.wasmBinary;
244
+ const numberOfWorkers = configuration.numWorkers ?? _GetDefaultNumWorkers();
245
+ const useWorkers = numberOfWorkers && typeof Worker === "function" && typeof URL === "function";
246
+ const urlNeeded = useWorkers || !configuration.jsModule;
247
+ // code maintained here for back-compat with no changes
248
+ const codecInfo = configuration.wasmUrl && configuration.wasmBinaryUrl && typeof WebAssembly === "object"
249
+ ? {
250
+ url: urlNeeded ? Tools.GetBabylonScriptURL(configuration.wasmUrl, true) : "",
251
+ wasmBinaryPromise: wasmBinaryProvided
252
+ ? Promise.resolve(wasmBinaryProvided)
253
+ : Tools.LoadFileAsync(Tools.GetBabylonScriptURL(configuration.wasmBinaryUrl, true)),
254
+ }
255
+ : {
256
+ url: urlNeeded ? Tools.GetBabylonScriptURL(configuration.fallbackUrl) : "",
257
+ wasmBinaryPromise: Promise.resolve(undefined),
258
+ };
259
+ // If using workers, initialize a worker pool with either the wasm or url?
260
+ if (useWorkers) {
261
+ this._workerPoolPromise = codecInfo.wasmBinaryPromise.then((wasmBinary) => {
262
+ const workerContent = this._getWorkerContent();
263
+ const workerBlobUrl = URL.createObjectURL(new Blob([workerContent], { type: "application/javascript" }));
264
+ return new AutoReleaseWorkerPool(numberOfWorkers, () => {
265
+ const worker = new Worker(workerBlobUrl);
266
+ return initializeWebWorker(worker, wasmBinary, codecInfo.url);
267
+ });
268
+ });
269
+ }
270
+ else {
271
+ this._modulePromise = codecInfo.wasmBinaryPromise.then(async (wasmBinary) => {
272
+ if (!this._isModuleAvailable()) {
273
+ if (!configuration.jsModule) {
274
+ if (!codecInfo.url) {
275
+ throw new Error("Draco codec module is not available");
276
+ }
277
+ await Tools.LoadBabylonScriptAsync(codecInfo.url);
278
+ }
279
+ }
280
+ return this._createModuleAsync(wasmBinary, configuration.jsModule);
281
+ });
282
+ }
283
+ }
284
+ /**
285
+ * Returns a promise that resolves when ready. Call this manually to ensure the draco codec is ready before use.
286
+ * @returns a promise that resolves when ready
287
+ */
288
+ async whenReadyAsync() {
289
+ if (this._workerPoolPromise) {
290
+ await this._workerPoolPromise;
291
+ return;
292
+ }
293
+ if (this._modulePromise) {
294
+ await this._modulePromise;
295
+ return;
296
+ }
297
+ }
298
+ /**
299
+ * Stop all async operations and release resources.
300
+ */
301
+ dispose() {
302
+ if (this._workerPoolPromise) {
303
+ this._workerPoolPromise.then((workerPool) => {
304
+ workerPool.dispose();
305
+ });
306
+ }
307
+ delete this._workerPoolPromise;
308
+ delete this._modulePromise;
309
+ }
310
+ }
311
+
312
+ /**
313
+ * @experimental This class is an experimental version of `DracoCompression` and is subject to change.
314
+ *
315
+ * Draco Decoder (https://google.github.io/draco/)
316
+ *
317
+ * This class wraps the Draco decoder module.
318
+ *
319
+ * By default, the configuration points to a copy of the Draco decoder files for glTF from the Babylon.js preview cdn https://preview.babylonjs.com/draco_wasm_wrapper_gltf.js.
320
+ *
321
+ * To update the configuration, use the following code:
322
+ * ```javascript
323
+ * DracoDecoder.DefaultConfiguration = {
324
+ * wasmUrl: "<url to the WebAssembly library>",
325
+ * wasmBinaryUrl: "<url to the WebAssembly binary>",
326
+ * fallbackUrl: "<url to the fallback JavaScript library>",
327
+ * };
328
+ * ```
329
+ *
330
+ * Draco has two versions, one for WebAssembly and one for JavaScript. The decoder configuration can be set to only support WebAssembly or only support the JavaScript version.
331
+ * Decoding will automatically fallback to the JavaScript version if WebAssembly version is not configured or if WebAssembly is not supported by the browser.
332
+ * Use `DracoDecoder.DefaultAvailable` to determine if the decoder configuration is available for the current context.
333
+ *
334
+ * To decode Draco compressed data, get the default DracoDecoder object and call decodeMeshToGeometryAsync:
335
+ * ```javascript
336
+ * var geometry = await DracoDecoder.Default.decodeMeshToGeometryAsync(data);
337
+ * ```
338
+ */
339
+ class DracoDecoder extends DracoCodec {
340
+ /**
341
+ * Returns true if the decoder's `DefaultConfiguration` is available.
342
+ */
343
+ static get DefaultAvailable() {
344
+ return _IsConfigurationAvailable(DracoDecoder.DefaultConfiguration);
345
+ }
346
+ /**
347
+ * Default instance for the DracoDecoder.
348
+ */
349
+ static get Default() {
350
+ DracoDecoder._Default ??= new DracoDecoder();
351
+ return DracoDecoder._Default;
352
+ }
353
+ /**
354
+ * Reset the default DracoDecoder object to null and disposing the removed default instance.
355
+ * Note that if the workerPool is a member of the static DefaultConfiguration object it is recommended not to run dispose,
356
+ * unless the static worker pool is no longer needed.
357
+ * @param skipDispose set to true to not dispose the removed default instance
358
+ */
359
+ static ResetDefault(skipDispose) {
360
+ if (DracoDecoder._Default) {
361
+ if (!skipDispose) {
362
+ DracoDecoder._Default.dispose();
363
+ }
364
+ DracoDecoder._Default = null;
365
+ }
366
+ }
367
+ _isModuleAvailable() {
368
+ return typeof DracoDecoderModule !== "undefined";
369
+ }
370
+ async _createModuleAsync(wasmBinary, jsModule) {
371
+ const module = await (jsModule || DracoDecoderModule)({ wasmBinary });
372
+ return { module };
373
+ }
374
+ _getWorkerContent() {
375
+ return `${decodeMesh}(${workerFunction})()`;
376
+ }
377
+ /**
378
+ * Creates a new Draco decoder.
379
+ * @param configuration Optional override of the configuration for the DracoDecoder. If not provided, defaults to {@link DracoDecoder.DefaultConfiguration}.
380
+ */
381
+ constructor(configuration = DracoDecoder.DefaultConfiguration) {
382
+ super(configuration);
383
+ }
384
+ /**
385
+ * Decode Draco compressed mesh data to mesh data.
386
+ * @param data The ArrayBuffer or ArrayBufferView of the compressed Draco data
387
+ * @param attributes A map of attributes from vertex buffer kinds to Draco unique ids
388
+ * @param gltfNormalizedOverride A map of attributes from vertex buffer kinds to normalized flags to override the Draco normalization
389
+ * @returns A promise that resolves with the decoded mesh data
390
+ */
391
+ decodeMeshToMeshDataAsync(data, attributes, gltfNormalizedOverride) {
392
+ const dataView = data instanceof ArrayBuffer ? new Int8Array(data) : new Int8Array(data.buffer, data.byteOffset, data.byteLength);
393
+ const applyGltfNormalizedOverride = (kind, normalized) => {
394
+ if (gltfNormalizedOverride && gltfNormalizedOverride[kind] !== undefined) {
395
+ if (normalized !== gltfNormalizedOverride[kind]) {
396
+ Logger.Warn(`Normalized flag from Draco data (${normalized}) does not match normalized flag from glTF accessor (${gltfNormalizedOverride[kind]}). Using flag from glTF accessor.`);
397
+ }
398
+ return gltfNormalizedOverride[kind];
399
+ }
400
+ else {
401
+ return normalized;
402
+ }
403
+ };
404
+ if (this._workerPoolPromise) {
405
+ return this._workerPoolPromise.then((workerPool) => {
406
+ return new Promise((resolve, reject) => {
407
+ workerPool.push((worker, onComplete) => {
408
+ let resultIndices = null;
409
+ const resultAttributes = [];
410
+ const onError = (error) => {
411
+ worker.removeEventListener("error", onError);
412
+ worker.removeEventListener("message", onMessage);
413
+ reject(error);
414
+ onComplete();
415
+ };
416
+ const onMessage = (event) => {
417
+ const message = event.data;
418
+ switch (message.id) {
419
+ case "indices": {
420
+ resultIndices = message.data;
421
+ break;
422
+ }
423
+ case "attribute": {
424
+ resultAttributes.push({
425
+ kind: message.kind,
426
+ data: message.data,
427
+ size: message.size,
428
+ byteOffset: message.byteOffset,
429
+ byteStride: message.byteStride,
430
+ normalized: applyGltfNormalizedOverride(message.kind, message.normalized),
431
+ });
432
+ break;
433
+ }
434
+ case "decodeMeshDone": {
435
+ worker.removeEventListener("error", onError);
436
+ worker.removeEventListener("message", onMessage);
437
+ resolve({ indices: resultIndices, attributes: resultAttributes, totalVertices: message.totalVertices });
438
+ onComplete();
439
+ break;
440
+ }
441
+ }
442
+ };
443
+ worker.addEventListener("error", onError);
444
+ worker.addEventListener("message", onMessage);
445
+ const dataViewCopy = dataView.slice();
446
+ worker.postMessage({ id: "decodeMesh", dataView: dataViewCopy, attributes: attributes }, [dataViewCopy.buffer]);
447
+ });
448
+ });
449
+ });
450
+ }
451
+ if (this._modulePromise) {
452
+ return this._modulePromise.then((decoder) => {
453
+ let resultIndices = null;
454
+ const resultAttributes = [];
455
+ const numPoints = decodeMesh(decoder.module, dataView, attributes, (indices) => {
456
+ resultIndices = indices;
457
+ }, (kind, data, size, byteOffset, byteStride, normalized) => {
458
+ resultAttributes.push({
459
+ kind,
460
+ data,
461
+ size,
462
+ byteOffset,
463
+ byteStride,
464
+ normalized,
465
+ });
466
+ });
467
+ return { indices: resultIndices, attributes: resultAttributes, totalVertices: numPoints };
468
+ });
469
+ }
470
+ throw new Error("Draco decoder module is not available");
471
+ }
472
+ /**
473
+ * Decode Draco compressed mesh data to Babylon geometry.
474
+ * @param name The name to use when creating the geometry
475
+ * @param scene The scene to use when creating the geometry
476
+ * @param data The ArrayBuffer or ArrayBufferView of the Draco compressed data
477
+ * @param attributes A map of attributes from vertex buffer kinds to Draco unique ids
478
+ * @returns A promise that resolves with the decoded geometry
479
+ */
480
+ async decodeMeshToGeometryAsync(name, scene, data, attributes) {
481
+ const meshData = await this.decodeMeshToMeshDataAsync(data, attributes);
482
+ const geometry = new Geometry(name, scene);
483
+ if (meshData.indices) {
484
+ geometry.setIndices(meshData.indices);
485
+ }
486
+ for (const attribute of meshData.attributes) {
487
+ geometry.setVerticesBuffer(new VertexBuffer(scene.getEngine(), attribute.data, attribute.kind, false, undefined, attribute.byteStride, undefined, attribute.byteOffset, attribute.size, undefined, attribute.normalized, true), meshData.totalVertices);
488
+ }
489
+ return geometry;
490
+ }
491
+ /** @internal */
492
+ async _decodeMeshToGeometryForGltfAsync(name, scene, data, attributes, gltfNormalizedOverride, boundingInfo) {
493
+ const meshData = await this.decodeMeshToMeshDataAsync(data, attributes, gltfNormalizedOverride);
494
+ const geometry = new Geometry(name, scene);
495
+ if (boundingInfo) {
496
+ geometry._boundingInfo = boundingInfo;
497
+ geometry.useBoundingInfoFromGeometry = true;
498
+ }
499
+ if (meshData.indices) {
500
+ geometry.setIndices(meshData.indices);
501
+ }
502
+ for (const attribute of meshData.attributes) {
503
+ geometry.setVerticesBuffer(new VertexBuffer(scene.getEngine(), attribute.data, attribute.kind, false, undefined, attribute.byteStride, undefined, attribute.byteOffset, attribute.size, undefined, attribute.normalized, true), meshData.totalVertices);
504
+ }
505
+ return geometry;
506
+ }
507
+ }
508
+ /**
509
+ * Default configuration for the DracoDecoder. Defaults to the following:
510
+ * - numWorkers: 50% of the available logical processors, capped to 4. If no logical processors are available, defaults to 1.
511
+ * - wasmUrl: `"https://cdn.babylonjs.com/draco_wasm_wrapper_gltf.js"`
512
+ * - wasmBinaryUrl: `"https://cdn.babylonjs.com/draco_decoder_gltf.wasm"`
513
+ * - fallbackUrl: `"https://cdn.babylonjs.com/draco_decoder_gltf.js"`
514
+ */
515
+ DracoDecoder.DefaultConfiguration = {
516
+ wasmUrl: `${Tools._DefaultCdnUrl}/draco_wasm_wrapper_gltf.js`,
517
+ wasmBinaryUrl: `${Tools._DefaultCdnUrl}/draco_decoder_gltf.wasm`,
518
+ fallbackUrl: `${Tools._DefaultCdnUrl}/draco_decoder_gltf.js`,
519
+ };
520
+ DracoDecoder._Default = null;
521
+
522
+ const NAME = "KHR_draco_mesh_compression";
523
+ /**
524
+ * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_draco_mesh_compression/README.md)
525
+ */
526
+ // eslint-disable-next-line @typescript-eslint/naming-convention
527
+ class KHR_draco_mesh_compression {
528
+ /**
529
+ * @internal
530
+ */
531
+ constructor(loader) {
532
+ /**
533
+ * The name of this extension.
534
+ */
535
+ this.name = NAME;
536
+ /**
537
+ * Defines whether to use the normalized flag from the glTF accessor instead of the Draco data. Defaults to true.
538
+ */
539
+ this.useNormalizedFlagFromAccessor = true;
540
+ this._loader = loader;
541
+ this.enabled = DracoDecoder.DefaultAvailable && this._loader.isExtensionUsed(NAME);
542
+ }
543
+ /** @internal */
544
+ dispose() {
545
+ delete this.dracoDecoder;
546
+ this._loader = null;
547
+ }
548
+ /**
549
+ * @internal
550
+ */
551
+ _loadVertexDataAsync(context, primitive, babylonMesh) {
552
+ return GLTFLoader.LoadExtensionAsync(context, primitive, this.name, (extensionContext, extension) => {
553
+ if (primitive.mode != undefined) {
554
+ if (primitive.mode !== 4 /* MeshPrimitiveMode.TRIANGLES */ && primitive.mode !== 5 /* MeshPrimitiveMode.TRIANGLE_STRIP */) {
555
+ throw new Error(`${context}: Unsupported mode ${primitive.mode}`);
556
+ }
557
+ }
558
+ const attributes = {};
559
+ const normalized = {};
560
+ const loadAttribute = (name, kind) => {
561
+ const uniqueId = extension.attributes[name];
562
+ if (uniqueId == undefined) {
563
+ return;
564
+ }
565
+ babylonMesh._delayInfo = babylonMesh._delayInfo || [];
566
+ if (babylonMesh._delayInfo.indexOf(kind) === -1) {
567
+ babylonMesh._delayInfo.push(kind);
568
+ }
569
+ attributes[kind] = uniqueId;
570
+ if (this.useNormalizedFlagFromAccessor) {
571
+ const accessor = ArrayItem.TryGet(this._loader.gltf.accessors, primitive.attributes[name]);
572
+ if (accessor) {
573
+ normalized[kind] = accessor.normalized || false;
574
+ }
575
+ }
576
+ };
577
+ loadAttribute("POSITION", VertexBuffer.PositionKind);
578
+ loadAttribute("NORMAL", VertexBuffer.NormalKind);
579
+ loadAttribute("TANGENT", VertexBuffer.TangentKind);
580
+ loadAttribute("TEXCOORD_0", VertexBuffer.UVKind);
581
+ loadAttribute("TEXCOORD_1", VertexBuffer.UV2Kind);
582
+ loadAttribute("TEXCOORD_2", VertexBuffer.UV3Kind);
583
+ loadAttribute("TEXCOORD_3", VertexBuffer.UV4Kind);
584
+ loadAttribute("TEXCOORD_4", VertexBuffer.UV5Kind);
585
+ loadAttribute("TEXCOORD_5", VertexBuffer.UV6Kind);
586
+ loadAttribute("JOINTS_0", VertexBuffer.MatricesIndicesKind);
587
+ loadAttribute("WEIGHTS_0", VertexBuffer.MatricesWeightsKind);
588
+ loadAttribute("COLOR_0", VertexBuffer.ColorKind);
589
+ const bufferView = ArrayItem.Get(extensionContext, this._loader.gltf.bufferViews, extension.bufferView);
590
+ if (!bufferView._dracoBabylonGeometry) {
591
+ bufferView._dracoBabylonGeometry = this._loader.loadBufferViewAsync(`/bufferViews/${bufferView.index}`, bufferView).then((data) => {
592
+ const dracoDecoder = this.dracoDecoder || DracoDecoder.Default;
593
+ const positionAccessor = ArrayItem.TryGet(this._loader.gltf.accessors, primitive.attributes["POSITION"]);
594
+ const babylonBoundingInfo = !this._loader.parent.alwaysComputeBoundingBox && !babylonMesh.skeleton && positionAccessor ? LoadBoundingInfoFromPositionAccessor(positionAccessor) : null;
595
+ return dracoDecoder
596
+ ._decodeMeshToGeometryForGltfAsync(babylonMesh.name, this._loader.babylonScene, data, attributes, normalized, babylonBoundingInfo)
597
+ .catch((error) => {
598
+ throw new Error(`${context}: ${error.message}`);
599
+ });
600
+ });
601
+ }
602
+ return bufferView._dracoBabylonGeometry;
603
+ });
604
+ }
605
+ }
606
+ unregisterGLTFExtension(NAME);
607
+ registerGLTFExtension(NAME, true, (loader) => new KHR_draco_mesh_compression(loader));
608
+
609
+ export { KHR_draco_mesh_compression };
610
+ //# sourceMappingURL=KHR_draco_mesh_compression-BrXprwd5.esm.js.map