@babylonjs/viewer 7.41.0-alpha → 7.41.1

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/configuration/configuration.d.ts +107 -0
  2. package/configuration/configuration.js +16 -0
  3. package/configuration/configuration.js.map +1 -0
  4. package/configuration/configurationCompatibility.d.ts +8 -0
  5. package/configuration/configurationCompatibility.js +66 -0
  6. package/configuration/configurationCompatibility.js.map +1 -0
  7. package/configuration/configurationContainer.d.ts +10 -0
  8. package/configuration/configurationContainer.js +10 -0
  9. package/configuration/configurationContainer.js.map +1 -0
  10. package/configuration/globals.d.ts +6 -0
  11. package/configuration/globals.js +18 -0
  12. package/configuration/globals.js.map +1 -0
  13. package/configuration/index.d.ts +2 -0
  14. package/configuration/index.js +4 -0
  15. package/configuration/index.js.map +1 -0
  16. package/configuration/interfaces/cameraConfiguration.d.ts +31 -0
  17. package/configuration/interfaces/cameraConfiguration.js +2 -0
  18. package/configuration/interfaces/cameraConfiguration.js.map +1 -0
  19. package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -0
  20. package/configuration/interfaces/colorGradingConfiguration.js +2 -0
  21. package/configuration/interfaces/colorGradingConfiguration.js.map +1 -0
  22. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -0
  23. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +2 -0
  24. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +1 -0
  25. package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -0
  26. package/configuration/interfaces/environmentMapConfiguration.js +2 -0
  27. package/configuration/interfaces/environmentMapConfiguration.js.map +1 -0
  28. package/configuration/interfaces/groundConfiguration.d.ts +24 -0
  29. package/configuration/interfaces/groundConfiguration.js +2 -0
  30. package/configuration/interfaces/groundConfiguration.js.map +1 -0
  31. package/configuration/interfaces/imageProcessingConfiguration.d.ts +45 -0
  32. package/configuration/interfaces/imageProcessingConfiguration.js +2 -0
  33. package/configuration/interfaces/imageProcessingConfiguration.js.map +1 -0
  34. package/configuration/interfaces/index.d.ts +15 -0
  35. package/configuration/interfaces/index.js +16 -0
  36. package/configuration/interfaces/index.js.map +1 -0
  37. package/configuration/interfaces/lightConfiguration.d.ts +60 -0
  38. package/configuration/interfaces/lightConfiguration.js +2 -0
  39. package/configuration/interfaces/lightConfiguration.js.map +1 -0
  40. package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -0
  41. package/configuration/interfaces/modelAnimationConfiguration.js +2 -0
  42. package/configuration/interfaces/modelAnimationConfiguration.js.map +1 -0
  43. package/configuration/interfaces/modelConfiguration.d.ts +65 -0
  44. package/configuration/interfaces/modelConfiguration.js +2 -0
  45. package/configuration/interfaces/modelConfiguration.js.map +1 -0
  46. package/configuration/interfaces/observersConfiguration.d.ts +5 -0
  47. package/configuration/interfaces/observersConfiguration.js +2 -0
  48. package/configuration/interfaces/observersConfiguration.js.map +1 -0
  49. package/configuration/interfaces/sceneConfiguration.d.ts +48 -0
  50. package/configuration/interfaces/sceneConfiguration.js +2 -0
  51. package/configuration/interfaces/sceneConfiguration.js.map +1 -0
  52. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -0
  53. package/configuration/interfaces/sceneOptimizerConfiguration.js +2 -0
  54. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +1 -0
  55. package/configuration/interfaces/skyboxConfiguration.d.ts +21 -0
  56. package/configuration/interfaces/skyboxConfiguration.js +2 -0
  57. package/configuration/interfaces/skyboxConfiguration.js.map +1 -0
  58. package/configuration/interfaces/templateConfiguration.d.ts +67 -0
  59. package/configuration/interfaces/templateConfiguration.js +2 -0
  60. package/configuration/interfaces/templateConfiguration.js.map +1 -0
  61. package/configuration/interfaces/vrConfiguration.d.ts +16 -0
  62. package/configuration/interfaces/vrConfiguration.js +2 -0
  63. package/configuration/interfaces/vrConfiguration.js.map +1 -0
  64. package/configuration/loader.d.ts +4 -0
  65. package/configuration/loader.js +17 -0
  66. package/configuration/loader.js.map +1 -0
  67. package/configuration/mappers.d.ts +43 -0
  68. package/configuration/mappers.js +193 -0
  69. package/configuration/mappers.js.map +1 -0
  70. package/configuration/renderOnlyLoader.d.ts +33 -0
  71. package/configuration/renderOnlyLoader.js +162 -0
  72. package/configuration/renderOnlyLoader.js.map +1 -0
  73. package/configuration/types/default.d.ts +6 -0
  74. package/configuration/types/default.js +121 -0
  75. package/configuration/types/default.js.map +1 -0
  76. package/configuration/types/environmentMap.d.ts +5 -0
  77. package/configuration/types/environmentMap.js +14 -0
  78. package/configuration/types/environmentMap.js.map +1 -0
  79. package/configuration/types/extended.d.ts +6 -0
  80. package/configuration/types/extended.js +317 -0
  81. package/configuration/types/extended.js.map +1 -0
  82. package/configuration/types/index.d.ts +14 -0
  83. package/configuration/types/index.js +51 -0
  84. package/configuration/types/index.js.map +1 -0
  85. package/configuration/types/minimal.d.ts +6 -0
  86. package/configuration/types/minimal.js +43 -0
  87. package/configuration/types/minimal.js.map +1 -0
  88. package/configuration/types/renderOnlyDefault.d.ts +30 -0
  89. package/configuration/types/renderOnlyDefault.js +31 -0
  90. package/configuration/types/renderOnlyDefault.js.map +1 -0
  91. package/configuration/types/shadowLight.d.ts +9 -0
  92. package/configuration/types/shadowLight.js +64 -0
  93. package/configuration/types/shadowLight.js.map +1 -0
  94. package/helper/index.d.ts +29 -0
  95. package/helper/index.js +66 -0
  96. package/helper/index.js.map +1 -0
  97. package/index.d.ts +30 -0
  98. package/index.js +46 -0
  99. package/index.js.map +1 -0
  100. package/initializer.d.ts +11 -0
  101. package/initializer.js +35 -0
  102. package/initializer.js.map +1 -0
  103. package/interfaces.d.ts +5 -0
  104. package/interfaces.js +7 -0
  105. package/interfaces.js.map +1 -0
  106. package/labs/environmentSerializer.d.ts +126 -0
  107. package/labs/environmentSerializer.js +191 -0
  108. package/labs/environmentSerializer.js.map +1 -0
  109. package/labs/texture.d.ts +183 -0
  110. package/labs/texture.js +351 -0
  111. package/labs/texture.js.map +1 -0
  112. package/labs/viewerLabs.d.ts +51 -0
  113. package/labs/viewerLabs.js +134 -0
  114. package/labs/viewerLabs.js.map +1 -0
  115. package/loader/modelLoader.d.ts +56 -0
  116. package/loader/modelLoader.js +202 -0
  117. package/loader/modelLoader.js.map +1 -0
  118. package/loader/plugins/applyMaterialConfig.d.ts +12 -0
  119. package/loader/plugins/applyMaterialConfig.js +16 -0
  120. package/loader/plugins/applyMaterialConfig.js.map +1 -0
  121. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -0
  122. package/loader/plugins/extendedMaterialLoaderPlugin.js +16 -0
  123. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +1 -0
  124. package/loader/plugins/index.d.ts +19 -0
  125. package/loader/plugins/index.js +44 -0
  126. package/loader/plugins/index.js.map +1 -0
  127. package/loader/plugins/loaderPlugin.d.ts +24 -0
  128. package/loader/plugins/loaderPlugin.js +2 -0
  129. package/loader/plugins/loaderPlugin.js.map +1 -0
  130. package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -0
  131. package/loader/plugins/msftLodLoaderPlugin.js +21 -0
  132. package/loader/plugins/msftLodLoaderPlugin.js.map +1 -0
  133. package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -0
  134. package/loader/plugins/telemetryLoaderPlugin.js +36 -0
  135. package/loader/plugins/telemetryLoaderPlugin.js.map +1 -0
  136. package/managers/observablesManager.d.ts +66 -0
  137. package/managers/observablesManager.js +35 -0
  138. package/managers/observablesManager.js.map +1 -0
  139. package/managers/sceneManager.d.ts +245 -0
  140. package/managers/sceneManager.js +1375 -0
  141. package/managers/sceneManager.js.map +1 -0
  142. package/managers/telemetryManager.d.ts +78 -0
  143. package/managers/telemetryManager.js +117 -0
  144. package/managers/telemetryManager.js.map +1 -0
  145. package/model/modelAnimation.d.ts +215 -0
  146. package/model/modelAnimation.js +237 -0
  147. package/model/modelAnimation.js.map +1 -0
  148. package/model/viewerModel.d.ts +233 -0
  149. package/model/viewerModel.js +673 -0
  150. package/model/viewerModel.js.map +1 -0
  151. package/optimizer/custom/extended.d.ts +13 -0
  152. package/optimizer/custom/extended.js +101 -0
  153. package/optimizer/custom/extended.js.map +1 -0
  154. package/optimizer/custom/index.d.ts +9 -0
  155. package/optimizer/custom/index.js +26 -0
  156. package/optimizer/custom/index.js.map +1 -0
  157. package/package.json +28 -19
  158. package/readme.md +28 -28
  159. package/renderOnlyIndex.d.ts +11 -0
  160. package/renderOnlyIndex.js +18 -0
  161. package/renderOnlyIndex.js.map +1 -0
  162. package/templating/eventManager.d.ts +35 -0
  163. package/templating/eventManager.js +66 -0
  164. package/templating/eventManager.js.map +1 -0
  165. package/templating/plugins/hdButtonPlugin.d.ts +9 -0
  166. package/templating/plugins/hdButtonPlugin.js +22 -0
  167. package/templating/plugins/hdButtonPlugin.js.map +1 -0
  168. package/templating/plugins/printButton.d.ts +9 -0
  169. package/templating/plugins/printButton.js +41 -0
  170. package/templating/plugins/printButton.js.map +1 -0
  171. package/templating/templateManager.d.ts +197 -0
  172. package/templating/templateManager.js +561 -0
  173. package/templating/templateManager.js.map +1 -0
  174. package/templating/viewerTemplatePlugin.d.ts +21 -0
  175. package/templating/viewerTemplatePlugin.js +69 -0
  176. package/templating/viewerTemplatePlugin.js.map +1 -0
  177. package/viewer/defaultViewer.d.ts +130 -0
  178. package/viewer/defaultViewer.js +672 -0
  179. package/viewer/defaultViewer.js.map +1 -0
  180. package/viewer/renderOnlyViewer.d.ts +9 -0
  181. package/viewer/renderOnlyViewer.js +46 -0
  182. package/viewer/renderOnlyViewer.js.map +1 -0
  183. package/viewer/viewer.d.ts +258 -0
  184. package/viewer/viewer.js +783 -0
  185. package/viewer/viewer.js.map +1 -0
  186. package/viewer/viewerManager.d.ts +58 -0
  187. package/viewer/viewerManager.js +91 -0
  188. package/viewer/viewerManager.js.map +1 -0
  189. package/viewer/viewerWithTemplate.d.ts +9 -0
  190. package/viewer/viewerWithTemplate.js +20 -0
  191. package/viewer/viewerWithTemplate.js.map +1 -0
  192. package/assets/photoStudio.env +0 -0
  193. package/dist/babylon-viewer.esm.js +0 -2
  194. package/dist/babylon-viewer.esm.js.map +0 -1
  195. package/dist/babylon-viewer.esm.min.js +0 -2
  196. package/dist/babylon-viewer.esm.min.js.map +0 -1
  197. package/dist/chunks/EXT_lights_ies-CFzvmxxg.esm.min.js +0 -2
  198. package/dist/chunks/EXT_lights_ies-CFzvmxxg.esm.min.js.map +0 -1
  199. package/dist/chunks/EXT_lights_ies-cyFdY7yl.esm.js +0 -84
  200. package/dist/chunks/EXT_lights_ies-cyFdY7yl.esm.js.map +0 -1
  201. package/dist/chunks/EXT_lights_image_based-BNmSqx40.esm.min.js +0 -2
  202. package/dist/chunks/EXT_lights_image_based-BNmSqx40.esm.min.js.map +0 -1
  203. package/dist/chunks/EXT_lights_image_based-CC48JVU0.esm.js +0 -171
  204. package/dist/chunks/EXT_lights_image_based-CC48JVU0.esm.js.map +0 -1
  205. package/dist/chunks/EXT_mesh_gpu_instancing-B2qj3kQu.esm.js +0 -86
  206. package/dist/chunks/EXT_mesh_gpu_instancing-B2qj3kQu.esm.js.map +0 -1
  207. package/dist/chunks/EXT_mesh_gpu_instancing-lanrAAoi.esm.min.js +0 -2
  208. package/dist/chunks/EXT_mesh_gpu_instancing-lanrAAoi.esm.min.js.map +0 -1
  209. package/dist/chunks/EXT_meshopt_compression-DjvHx7gJ.esm.js +0 -134
  210. package/dist/chunks/EXT_meshopt_compression-DjvHx7gJ.esm.js.map +0 -1
  211. package/dist/chunks/EXT_meshopt_compression-oH6HzGir.esm.min.js +0 -2
  212. package/dist/chunks/EXT_meshopt_compression-oH6HzGir.esm.min.js.map +0 -1
  213. package/dist/chunks/EXT_texture_avif-BYWETW7-.esm.min.js +0 -2
  214. package/dist/chunks/EXT_texture_avif-BYWETW7-.esm.min.js.map +0 -1
  215. package/dist/chunks/EXT_texture_avif-CKXEq29h.esm.js +0 -44
  216. package/dist/chunks/EXT_texture_avif-CKXEq29h.esm.js.map +0 -1
  217. package/dist/chunks/EXT_texture_webp-Dl4GPoEU.esm.min.js +0 -2
  218. package/dist/chunks/EXT_texture_webp-Dl4GPoEU.esm.min.js.map +0 -1
  219. package/dist/chunks/EXT_texture_webp-fAiSgaNl.esm.js +0 -43
  220. package/dist/chunks/EXT_texture_webp-fAiSgaNl.esm.js.map +0 -1
  221. package/dist/chunks/ExtrasAsMetadata-BUQ3X3M6.esm.js +0 -64
  222. package/dist/chunks/ExtrasAsMetadata-BUQ3X3M6.esm.js.map +0 -1
  223. package/dist/chunks/ExtrasAsMetadata-C_M9nxb4.esm.min.js +0 -2
  224. package/dist/chunks/ExtrasAsMetadata-C_M9nxb4.esm.min.js.map +0 -1
  225. package/dist/chunks/KHR_animation_pointer-BdFZyLUq.esm.js +0 -352
  226. package/dist/chunks/KHR_animation_pointer-BdFZyLUq.esm.js.map +0 -1
  227. package/dist/chunks/KHR_animation_pointer-CBqZcURZ.esm.min.js +0 -2
  228. package/dist/chunks/KHR_animation_pointer-CBqZcURZ.esm.min.js.map +0 -1
  229. package/dist/chunks/KHR_draco_mesh_compression-DU2Rk2nj.esm.min.js +0 -2
  230. package/dist/chunks/KHR_draco_mesh_compression-DU2Rk2nj.esm.min.js.map +0 -1
  231. package/dist/chunks/KHR_draco_mesh_compression-hVF9XuFz.esm.js +0 -610
  232. package/dist/chunks/KHR_draco_mesh_compression-hVF9XuFz.esm.js.map +0 -1
  233. package/dist/chunks/KHR_interactivity-COE1p684.esm.min.js +0 -2
  234. package/dist/chunks/KHR_interactivity-COE1p684.esm.min.js.map +0 -1
  235. package/dist/chunks/KHR_interactivity-Cv1s_pea.esm.js +0 -4033
  236. package/dist/chunks/KHR_interactivity-Cv1s_pea.esm.js.map +0 -1
  237. package/dist/chunks/KHR_lights_punctual-CHf5kbKi.esm.js +0 -581
  238. package/dist/chunks/KHR_lights_punctual-CHf5kbKi.esm.js.map +0 -1
  239. package/dist/chunks/KHR_lights_punctual-DIEAP5SG.esm.min.js +0 -2
  240. package/dist/chunks/KHR_lights_punctual-DIEAP5SG.esm.min.js.map +0 -1
  241. package/dist/chunks/KHR_materials_anisotropy-CU-xxV6y.esm.js +0 -65
  242. package/dist/chunks/KHR_materials_anisotropy-CU-xxV6y.esm.js.map +0 -1
  243. package/dist/chunks/KHR_materials_anisotropy-Cq6CU4qW.esm.min.js +0 -2
  244. package/dist/chunks/KHR_materials_anisotropy-Cq6CU4qW.esm.min.js.map +0 -1
  245. package/dist/chunks/KHR_materials_clearcoat-BSjcmIju.esm.js +0 -96
  246. package/dist/chunks/KHR_materials_clearcoat-BSjcmIju.esm.js.map +0 -1
  247. package/dist/chunks/KHR_materials_clearcoat-CVNNhJRE.esm.min.js +0 -2
  248. package/dist/chunks/KHR_materials_clearcoat-CVNNhJRE.esm.min.js.map +0 -1
  249. package/dist/chunks/KHR_materials_diffuse_transmission-BDuGIkOh.esm.min.js +0 -2
  250. package/dist/chunks/KHR_materials_diffuse_transmission-BDuGIkOh.esm.min.js.map +0 -1
  251. package/dist/chunks/KHR_materials_diffuse_transmission-BZ-9rJUf.esm.js +0 -97
  252. package/dist/chunks/KHR_materials_diffuse_transmission-BZ-9rJUf.esm.js.map +0 -1
  253. package/dist/chunks/KHR_materials_dispersion-BxiGElVU.esm.min.js +0 -2
  254. package/dist/chunks/KHR_materials_dispersion-BxiGElVU.esm.min.js.map +0 -1
  255. package/dist/chunks/KHR_materials_dispersion-UI4zH1V_.esm.js +0 -62
  256. package/dist/chunks/KHR_materials_dispersion-UI4zH1V_.esm.js.map +0 -1
  257. package/dist/chunks/KHR_materials_emissive_strength-BT-Nu60T.esm.js +0 -55
  258. package/dist/chunks/KHR_materials_emissive_strength-BT-Nu60T.esm.js.map +0 -1
  259. package/dist/chunks/KHR_materials_emissive_strength-CwkVNmN7.esm.min.js +0 -2
  260. package/dist/chunks/KHR_materials_emissive_strength-CwkVNmN7.esm.min.js.map +0 -1
  261. package/dist/chunks/KHR_materials_ior-BGUUe5AW.esm.min.js +0 -2
  262. package/dist/chunks/KHR_materials_ior-BGUUe5AW.esm.min.js.map +0 -1
  263. package/dist/chunks/KHR_materials_ior-BbBQF-yw.esm.js +0 -64
  264. package/dist/chunks/KHR_materials_ior-BbBQF-yw.esm.js.map +0 -1
  265. package/dist/chunks/KHR_materials_iridescence-IFN2ewvr.esm.min.js +0 -2
  266. package/dist/chunks/KHR_materials_iridescence-IFN2ewvr.esm.min.js.map +0 -1
  267. package/dist/chunks/KHR_materials_iridescence-nLZDN7sc.esm.js +0 -72
  268. package/dist/chunks/KHR_materials_iridescence-nLZDN7sc.esm.js.map +0 -1
  269. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CyNVQC-W.esm.js +0 -81
  270. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CyNVQC-W.esm.js.map +0 -1
  271. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-zxcydJdp.esm.min.js +0 -2
  272. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-zxcydJdp.esm.min.js.map +0 -1
  273. package/dist/chunks/KHR_materials_sheen-BWL9yo8Z.esm.min.js +0 -2
  274. package/dist/chunks/KHR_materials_sheen-BWL9yo8Z.esm.min.js.map +0 -1
  275. package/dist/chunks/KHR_materials_sheen-DSThWwq2.esm.js +0 -85
  276. package/dist/chunks/KHR_materials_sheen-DSThWwq2.esm.js.map +0 -1
  277. package/dist/chunks/KHR_materials_specular-B96NRFEV.esm.js +0 -75
  278. package/dist/chunks/KHR_materials_specular-B96NRFEV.esm.js.map +0 -1
  279. package/dist/chunks/KHR_materials_specular-D2JwOdxw.esm.min.js +0 -2
  280. package/dist/chunks/KHR_materials_specular-D2JwOdxw.esm.min.js.map +0 -1
  281. package/dist/chunks/KHR_materials_transmission-BvqtJXfD.esm.js +0 -307
  282. package/dist/chunks/KHR_materials_transmission-BvqtJXfD.esm.js.map +0 -1
  283. package/dist/chunks/KHR_materials_transmission-ljXN4y_0.esm.min.js +0 -2
  284. package/dist/chunks/KHR_materials_transmission-ljXN4y_0.esm.min.js.map +0 -1
  285. package/dist/chunks/KHR_materials_unlit-CjGTXU3z.esm.min.js +0 -2
  286. package/dist/chunks/KHR_materials_unlit-CjGTXU3z.esm.min.js.map +0 -1
  287. package/dist/chunks/KHR_materials_unlit-ww00IloC.esm.js +0 -74
  288. package/dist/chunks/KHR_materials_unlit-ww00IloC.esm.js.map +0 -1
  289. package/dist/chunks/KHR_materials_variants-D0pVU1lm.esm.min.js +0 -2
  290. package/dist/chunks/KHR_materials_variants-D0pVU1lm.esm.min.js.map +0 -1
  291. package/dist/chunks/KHR_materials_variants-D3IDOJfB.esm.js +0 -262
  292. package/dist/chunks/KHR_materials_variants-D3IDOJfB.esm.js.map +0 -1
  293. package/dist/chunks/KHR_materials_volume-BfZR8rbr.esm.min.js +0 -2
  294. package/dist/chunks/KHR_materials_volume-BfZR8rbr.esm.min.js.map +0 -1
  295. package/dist/chunks/KHR_materials_volume-CLkC_Bvi.esm.js +0 -87
  296. package/dist/chunks/KHR_materials_volume-CLkC_Bvi.esm.js.map +0 -1
  297. package/dist/chunks/KHR_mesh_quantization-BJv1P2Wt.esm.js +0 -26
  298. package/dist/chunks/KHR_mesh_quantization-BJv1P2Wt.esm.js.map +0 -1
  299. package/dist/chunks/KHR_mesh_quantization-D69X_5bR.esm.min.js +0 -2
  300. package/dist/chunks/KHR_mesh_quantization-D69X_5bR.esm.min.js.map +0 -1
  301. package/dist/chunks/KHR_node_hoverability-CG6s7hhs.esm.min.js +0 -2
  302. package/dist/chunks/KHR_node_hoverability-CG6s7hhs.esm.min.js.map +0 -1
  303. package/dist/chunks/KHR_node_hoverability-xgvyZ_r-.esm.js +0 -39
  304. package/dist/chunks/KHR_node_hoverability-xgvyZ_r-.esm.js.map +0 -1
  305. package/dist/chunks/KHR_node_visibility-DUozjXRR.esm.min.js +0 -2
  306. package/dist/chunks/KHR_node_visibility-DUozjXRR.esm.min.js.map +0 -1
  307. package/dist/chunks/KHR_node_visibility-aAs5Kkey.esm.js +0 -46
  308. package/dist/chunks/KHR_node_visibility-aAs5Kkey.esm.js.map +0 -1
  309. package/dist/chunks/KHR_texture_basisu-Bjw0jG1d.esm.js +0 -43
  310. package/dist/chunks/KHR_texture_basisu-Bjw0jG1d.esm.js.map +0 -1
  311. package/dist/chunks/KHR_texture_basisu-FWm46QOj.esm.min.js +0 -2
  312. package/dist/chunks/KHR_texture_basisu-FWm46QOj.esm.min.js.map +0 -1
  313. package/dist/chunks/KHR_texture_transform-BZYr2brj.esm.min.js +0 -2
  314. package/dist/chunks/KHR_texture_transform-BZYr2brj.esm.min.js.map +0 -1
  315. package/dist/chunks/KHR_texture_transform-DdsN6SA_.esm.js +0 -63
  316. package/dist/chunks/KHR_texture_transform-DdsN6SA_.esm.js.map +0 -1
  317. package/dist/chunks/KHR_xmp_json_ld-DhFD64vh.esm.min.js +0 -2
  318. package/dist/chunks/KHR_xmp_json_ld-DhFD64vh.esm.min.js.map +0 -1
  319. package/dist/chunks/KHR_xmp_json_ld-sTn6N13E.esm.js +0 -51
  320. package/dist/chunks/KHR_xmp_json_ld-sTn6N13E.esm.js.map +0 -1
  321. package/dist/chunks/MSFT_audio_emitter-5lrNj8-c.esm.min.js +0 -2
  322. package/dist/chunks/MSFT_audio_emitter-5lrNj8-c.esm.min.js.map +0 -1
  323. package/dist/chunks/MSFT_audio_emitter-B7RJSCaF.esm.js +0 -2201
  324. package/dist/chunks/MSFT_audio_emitter-B7RJSCaF.esm.js.map +0 -1
  325. package/dist/chunks/MSFT_lod-BJBjM7Gp.esm.js +0 -337
  326. package/dist/chunks/MSFT_lod-BJBjM7Gp.esm.js.map +0 -1
  327. package/dist/chunks/MSFT_lod-DpEZMnoU.esm.min.js +0 -2
  328. package/dist/chunks/MSFT_lod-DpEZMnoU.esm.min.js.map +0 -1
  329. package/dist/chunks/MSFT_minecraftMesh-CXHPdyar.esm.min.js +0 -2
  330. package/dist/chunks/MSFT_minecraftMesh-CXHPdyar.esm.min.js.map +0 -1
  331. package/dist/chunks/MSFT_minecraftMesh-DRC2tMvY.esm.js +0 -46
  332. package/dist/chunks/MSFT_minecraftMesh-DRC2tMvY.esm.js.map +0 -1
  333. package/dist/chunks/MSFT_sRGBFactors-Db1asZRk.esm.js +0 -47
  334. package/dist/chunks/MSFT_sRGBFactors-Db1asZRk.esm.js.map +0 -1
  335. package/dist/chunks/MSFT_sRGBFactors-RhAtY3q7.esm.min.js +0 -2
  336. package/dist/chunks/MSFT_sRGBFactors-RhAtY3q7.esm.min.js.map +0 -1
  337. package/dist/chunks/animationGroup-CjaFhT87.esm.min.js +0 -2
  338. package/dist/chunks/animationGroup-CjaFhT87.esm.min.js.map +0 -1
  339. package/dist/chunks/animationGroup-Ctc6BUYh.esm.js +0 -2482
  340. package/dist/chunks/animationGroup-Ctc6BUYh.esm.js.map +0 -1
  341. package/dist/chunks/assetContainer-DDEska5G.esm.min.js +0 -2
  342. package/dist/chunks/assetContainer-DDEska5G.esm.min.js.map +0 -1
  343. package/dist/chunks/assetContainer-QD3gUzyx.esm.js +0 -1720
  344. package/dist/chunks/assetContainer-QD3gUzyx.esm.js.map +0 -1
  345. package/dist/chunks/audioEngine-C6R2Ow6e.esm.js +0 -305
  346. package/dist/chunks/audioEngine-C6R2Ow6e.esm.js.map +0 -1
  347. package/dist/chunks/audioEngine-FKYFzzDb.esm.min.js +0 -2
  348. package/dist/chunks/audioEngine-FKYFzzDb.esm.min.js.map +0 -1
  349. package/dist/chunks/bakedVertexAnimation-DKR6lpIg.esm.min.js +0 -2
  350. package/dist/chunks/bakedVertexAnimation-DKR6lpIg.esm.min.js.map +0 -1
  351. package/dist/chunks/bakedVertexAnimation-Hxn22qoJ.esm.js +0 -114
  352. package/dist/chunks/bakedVertexAnimation-Hxn22qoJ.esm.js.map +0 -1
  353. package/dist/chunks/basisTextureLoader-BcNAHqjw.esm.min.js +0 -2
  354. package/dist/chunks/basisTextureLoader-BcNAHqjw.esm.min.js.map +0 -1
  355. package/dist/chunks/basisTextureLoader-Dr2d0ez5.esm.js +0 -600
  356. package/dist/chunks/basisTextureLoader-Dr2d0ez5.esm.js.map +0 -1
  357. package/dist/chunks/dds-CFrq_XFM.esm.js +0 -540
  358. package/dist/chunks/dds-CFrq_XFM.esm.js.map +0 -1
  359. package/dist/chunks/dds-D1NTXLIL.esm.min.js +0 -2
  360. package/dist/chunks/dds-D1NTXLIL.esm.min.js.map +0 -1
  361. package/dist/chunks/ddsTextureLoader-DbvffCUa.esm.min.js +0 -2
  362. package/dist/chunks/ddsTextureLoader-DbvffCUa.esm.min.js.map +0 -1
  363. package/dist/chunks/ddsTextureLoader-wyjUdBoO.esm.js +0 -88
  364. package/dist/chunks/ddsTextureLoader-wyjUdBoO.esm.js.map +0 -1
  365. package/dist/chunks/decalFragment-CGto5zyq.esm.js +0 -18
  366. package/dist/chunks/decalFragment-CGto5zyq.esm.js.map +0 -1
  367. package/dist/chunks/decalFragment-CU64C8uG.esm.min.js +0 -2
  368. package/dist/chunks/decalFragment-CU64C8uG.esm.min.js.map +0 -1
  369. package/dist/chunks/default.fragment-B2bhCC4E.esm.js +0 -446
  370. package/dist/chunks/default.fragment-B2bhCC4E.esm.js.map +0 -1
  371. package/dist/chunks/default.fragment-Boq79lom.esm.min.js +0 -2
  372. package/dist/chunks/default.fragment-Boq79lom.esm.min.js.map +0 -1
  373. package/dist/chunks/default.fragment-CluFtXFp.esm.min.js +0 -2
  374. package/dist/chunks/default.fragment-CluFtXFp.esm.min.js.map +0 -1
  375. package/dist/chunks/default.fragment-Dshl5Uqc.esm.js +0 -515
  376. package/dist/chunks/default.fragment-Dshl5Uqc.esm.js.map +0 -1
  377. package/dist/chunks/default.vertex-BAAgCiYo.esm.min.js +0 -2
  378. package/dist/chunks/default.vertex-BAAgCiYo.esm.min.js.map +0 -1
  379. package/dist/chunks/default.vertex-BhOIicZW.esm.min.js +0 -2
  380. package/dist/chunks/default.vertex-BhOIicZW.esm.min.js.map +0 -1
  381. package/dist/chunks/default.vertex-DL7IogGB.esm.js +0 -211
  382. package/dist/chunks/default.vertex-DL7IogGB.esm.js.map +0 -1
  383. package/dist/chunks/default.vertex-DOXcZEQ0.esm.js +0 -190
  384. package/dist/chunks/default.vertex-DOXcZEQ0.esm.js.map +0 -1
  385. package/dist/chunks/defaultUboDeclaration-1qBz6EuF.esm.js +0 -15
  386. package/dist/chunks/defaultUboDeclaration-1qBz6EuF.esm.js.map +0 -1
  387. package/dist/chunks/defaultUboDeclaration-B9LzMzlw.esm.min.js +0 -2
  388. package/dist/chunks/defaultUboDeclaration-B9LzMzlw.esm.min.js.map +0 -1
  389. package/dist/chunks/defaultUboDeclaration-CXdodf7i.esm.js +0 -13
  390. package/dist/chunks/defaultUboDeclaration-CXdodf7i.esm.js.map +0 -1
  391. package/dist/chunks/defaultUboDeclaration-CZlCaxgu.esm.min.js +0 -2
  392. package/dist/chunks/defaultUboDeclaration-CZlCaxgu.esm.min.js.map +0 -1
  393. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +0 -11
  394. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +0 -1
  395. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +0 -2
  396. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +0 -1
  397. package/dist/chunks/dumpTools-C3vcqEdz.esm.js +0 -200
  398. package/dist/chunks/dumpTools-C3vcqEdz.esm.js.map +0 -1
  399. package/dist/chunks/dumpTools-C8ZzlWEh.esm.min.js +0 -2
  400. package/dist/chunks/dumpTools-C8ZzlWEh.esm.min.js.map +0 -1
  401. package/dist/chunks/engine-_wVL12I1.esm.js +0 -2213
  402. package/dist/chunks/engine-_wVL12I1.esm.js.map +0 -1
  403. package/dist/chunks/engine-nCWszV_w.esm.min.js +0 -2
  404. package/dist/chunks/engine-nCWszV_w.esm.min.js.map +0 -1
  405. package/dist/chunks/engine.common-BuPfo1Wj.esm.min.js +0 -2
  406. package/dist/chunks/engine.common-BuPfo1Wj.esm.min.js.map +0 -1
  407. package/dist/chunks/engine.common-CT5iq3ZT.esm.js +0 -1162
  408. package/dist/chunks/engine.common-CT5iq3ZT.esm.js.map +0 -1
  409. package/dist/chunks/envTextureLoader-D7L0fVXR.esm.min.js +0 -2
  410. package/dist/chunks/envTextureLoader-D7L0fVXR.esm.min.js.map +0 -1
  411. package/dist/chunks/envTextureLoader-PtuRNDrr.esm.js +0 -64
  412. package/dist/chunks/envTextureLoader-PtuRNDrr.esm.js.map +0 -1
  413. package/dist/chunks/environmentTextureTools-BjmCbfSf.esm.min.js +0 -2
  414. package/dist/chunks/environmentTextureTools-BjmCbfSf.esm.min.js.map +0 -1
  415. package/dist/chunks/environmentTextureTools-DYbFmR95.esm.js +0 -382
  416. package/dist/chunks/environmentTextureTools-DYbFmR95.esm.js.map +0 -1
  417. package/dist/chunks/exrTextureLoader-BIPK0bPG.esm.min.js +0 -2
  418. package/dist/chunks/exrTextureLoader-BIPK0bPG.esm.min.js.map +0 -1
  419. package/dist/chunks/exrTextureLoader-CEhv_7O9.esm.js +0 -1683
  420. package/dist/chunks/exrTextureLoader-CEhv_7O9.esm.js.map +0 -1
  421. package/dist/chunks/fogFragment-B7_evZbY.esm.js +0 -102
  422. package/dist/chunks/fogFragment-B7_evZbY.esm.js.map +0 -1
  423. package/dist/chunks/fogFragment-CoZPb7oI.esm.min.js +0 -2
  424. package/dist/chunks/fogFragment-CoZPb7oI.esm.min.js.map +0 -1
  425. package/dist/chunks/fogFragment-DSO97-dc.esm.min.js +0 -2
  426. package/dist/chunks/fogFragment-DSO97-dc.esm.min.js.map +0 -1
  427. package/dist/chunks/fogFragment-wY2jQ7fb.esm.js +0 -101
  428. package/dist/chunks/fogFragment-wY2jQ7fb.esm.js.map +0 -1
  429. package/dist/chunks/fresnelFunction-BSEp5SCT.esm.js +0 -12
  430. package/dist/chunks/fresnelFunction-BSEp5SCT.esm.js.map +0 -1
  431. package/dist/chunks/fresnelFunction-Cg-NNSrz.esm.min.js +0 -2
  432. package/dist/chunks/fresnelFunction-Cg-NNSrz.esm.min.js.map +0 -1
  433. package/dist/chunks/glTFLoader-3ZUBWawQ.esm.min.js +0 -2
  434. package/dist/chunks/glTFLoader-3ZUBWawQ.esm.min.js.map +0 -1
  435. package/dist/chunks/glTFLoader-DVoAJl_A.esm.js +0 -7658
  436. package/dist/chunks/glTFLoader-DVoAJl_A.esm.js.map +0 -1
  437. package/dist/chunks/glTFLoaderAnimation-By7yP8sQ.esm.js +0 -77
  438. package/dist/chunks/glTFLoaderAnimation-By7yP8sQ.esm.js.map +0 -1
  439. package/dist/chunks/glTFLoaderAnimation-C9g-SHaJ.esm.min.js +0 -2
  440. package/dist/chunks/glTFLoaderAnimation-C9g-SHaJ.esm.min.js.map +0 -1
  441. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +0 -2
  442. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +0 -1
  443. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +0 -67
  444. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +0 -1
  445. package/dist/chunks/harmonicsFunctions-B8pgRSdd.esm.min.js +0 -2
  446. package/dist/chunks/harmonicsFunctions-B8pgRSdd.esm.min.js.map +0 -1
  447. package/dist/chunks/harmonicsFunctions-BcfkM4gb.esm.js +0 -35
  448. package/dist/chunks/harmonicsFunctions-BcfkM4gb.esm.js.map +0 -1
  449. package/dist/chunks/harmonicsFunctions-DF1x585z.esm.min.js +0 -2
  450. package/dist/chunks/harmonicsFunctions-DF1x585z.esm.min.js.map +0 -1
  451. package/dist/chunks/harmonicsFunctions-a48Ki58F.esm.js +0 -34
  452. package/dist/chunks/harmonicsFunctions-a48Ki58F.esm.js.map +0 -1
  453. package/dist/chunks/hdrTextureLoader-BWnO8u1r.esm.js +0 -253
  454. package/dist/chunks/hdrTextureLoader-BWnO8u1r.esm.js.map +0 -1
  455. package/dist/chunks/hdrTextureLoader-Bii9QpYI.esm.min.js +0 -2
  456. package/dist/chunks/hdrTextureLoader-Bii9QpYI.esm.min.js.map +0 -1
  457. package/dist/chunks/helperFunctions-BinFB44e.esm.js +0 -110
  458. package/dist/chunks/helperFunctions-BinFB44e.esm.js.map +0 -1
  459. package/dist/chunks/helperFunctions-CZAyJNTJ.esm.min.js +0 -2
  460. package/dist/chunks/helperFunctions-CZAyJNTJ.esm.min.js.map +0 -1
  461. package/dist/chunks/helperFunctions-DjoUVhI2.esm.min.js +0 -2
  462. package/dist/chunks/helperFunctions-DjoUVhI2.esm.min.js.map +0 -1
  463. package/dist/chunks/helperFunctions-Ds3-3-tu.esm.js +0 -83
  464. package/dist/chunks/helperFunctions-Ds3-3-tu.esm.js.map +0 -1
  465. package/dist/chunks/iesTextureLoader-CsnjIN7M.esm.js +0 -189
  466. package/dist/chunks/iesTextureLoader-CsnjIN7M.esm.js.map +0 -1
  467. package/dist/chunks/iesTextureLoader-DkmTomCD.esm.min.js +0 -2
  468. package/dist/chunks/iesTextureLoader-DkmTomCD.esm.min.js.map +0 -1
  469. package/dist/chunks/index-Cw2FZpYY.esm.js +0 -74870
  470. package/dist/chunks/index-Cw2FZpYY.esm.js.map +0 -1
  471. package/dist/chunks/index-DRbhrB0j.esm.min.js +0 -57
  472. package/dist/chunks/index-DRbhrB0j.esm.min.js.map +0 -1
  473. package/dist/chunks/ktxTextureLoader-B4pmAFQl.esm.js +0 -814
  474. package/dist/chunks/ktxTextureLoader-B4pmAFQl.esm.js.map +0 -1
  475. package/dist/chunks/ktxTextureLoader-B8Rlj2T0.esm.min.js +0 -2
  476. package/dist/chunks/ktxTextureLoader-B8Rlj2T0.esm.min.js.map +0 -1
  477. package/dist/chunks/logDepthDeclaration-CGz2sG_K.esm.js +0 -11
  478. package/dist/chunks/logDepthDeclaration-CGz2sG_K.esm.js.map +0 -1
  479. package/dist/chunks/logDepthDeclaration-CfVFs2QC.esm.min.js +0 -2
  480. package/dist/chunks/logDepthDeclaration-CfVFs2QC.esm.min.js.map +0 -1
  481. package/dist/chunks/logDepthDeclaration-CzVshpad.esm.min.js +0 -2
  482. package/dist/chunks/logDepthDeclaration-CzVshpad.esm.min.js.map +0 -1
  483. package/dist/chunks/logDepthDeclaration-xOwnAKtd.esm.js +0 -35
  484. package/dist/chunks/logDepthDeclaration-xOwnAKtd.esm.js.map +0 -1
  485. package/dist/chunks/logDepthVertex-BRgUZAsw.esm.js +0 -81
  486. package/dist/chunks/logDepthVertex-BRgUZAsw.esm.js.map +0 -1
  487. package/dist/chunks/logDepthVertex-CWfPfN9-.esm.min.js +0 -2
  488. package/dist/chunks/logDepthVertex-CWfPfN9-.esm.min.js.map +0 -1
  489. package/dist/chunks/logDepthVertex-HDlt7vTP.esm.min.js +0 -2
  490. package/dist/chunks/logDepthVertex-HDlt7vTP.esm.min.js.map +0 -1
  491. package/dist/chunks/logDepthVertex-l0uEG89p.esm.js +0 -77
  492. package/dist/chunks/logDepthVertex-l0uEG89p.esm.js.map +0 -1
  493. package/dist/chunks/mainUVVaryingDeclaration-B72zV2P9.esm.min.js +0 -2
  494. package/dist/chunks/mainUVVaryingDeclaration-B72zV2P9.esm.min.js.map +0 -1
  495. package/dist/chunks/mainUVVaryingDeclaration-BDogjZrz.esm.js +0 -11
  496. package/dist/chunks/mainUVVaryingDeclaration-BDogjZrz.esm.js.map +0 -1
  497. package/dist/chunks/mainUVVaryingDeclaration-DO5HJKyl.esm.min.js +0 -2
  498. package/dist/chunks/mainUVVaryingDeclaration-DO5HJKyl.esm.min.js.map +0 -1
  499. package/dist/chunks/mainUVVaryingDeclaration-DqzNajlu.esm.js +0 -11
  500. package/dist/chunks/mainUVVaryingDeclaration-DqzNajlu.esm.js.map +0 -1
  501. package/dist/chunks/mesh.vertexData.functions-B_pMCAzZ.esm.js +0 -119
  502. package/dist/chunks/mesh.vertexData.functions-B_pMCAzZ.esm.js.map +0 -1
  503. package/dist/chunks/mesh.vertexData.functions-Bo7e6Of9.esm.min.js +0 -2
  504. package/dist/chunks/mesh.vertexData.functions-Bo7e6Of9.esm.min.js.map +0 -1
  505. package/dist/chunks/meshUboDeclaration-BCO87lfZ.esm.js +0 -26
  506. package/dist/chunks/meshUboDeclaration-BCO87lfZ.esm.js.map +0 -1
  507. package/dist/chunks/meshUboDeclaration-o4Xf2fwW.esm.min.js +0 -2
  508. package/dist/chunks/meshUboDeclaration-o4Xf2fwW.esm.min.js.map +0 -1
  509. package/dist/chunks/objFileLoader-BfPYM2Sh.esm.min.js +0 -2
  510. package/dist/chunks/objFileLoader-BfPYM2Sh.esm.min.js.map +0 -1
  511. package/dist/chunks/objFileLoader-D1emf4Qh.esm.js +0 -1338
  512. package/dist/chunks/objFileLoader-D1emf4Qh.esm.js.map +0 -1
  513. package/dist/chunks/oitFragment-B92YpEfj.esm.min.js +0 -2
  514. package/dist/chunks/oitFragment-B92YpEfj.esm.min.js.map +0 -1
  515. package/dist/chunks/oitFragment-BoFKkDNv.esm.js +0 -1078
  516. package/dist/chunks/oitFragment-BoFKkDNv.esm.js.map +0 -1
  517. package/dist/chunks/oitFragment-Cfx3g0iX.esm.js +0 -1240
  518. package/dist/chunks/oitFragment-Cfx3g0iX.esm.js.map +0 -1
  519. package/dist/chunks/oitFragment-CiA7gld-.esm.min.js +0 -2
  520. package/dist/chunks/oitFragment-CiA7gld-.esm.min.js.map +0 -1
  521. package/dist/chunks/pass.fragment-BLbIViJ7.esm.js +0 -15
  522. package/dist/chunks/pass.fragment-BLbIViJ7.esm.js.map +0 -1
  523. package/dist/chunks/pass.fragment-BqMk9ouF.esm.min.js +0 -2
  524. package/dist/chunks/pass.fragment-BqMk9ouF.esm.min.js.map +0 -1
  525. package/dist/chunks/pass.fragment-BuVDFNSR.esm.js +0 -15
  526. package/dist/chunks/pass.fragment-BuVDFNSR.esm.js.map +0 -1
  527. package/dist/chunks/pass.fragment-cM5FBHLm.esm.min.js +0 -2
  528. package/dist/chunks/pass.fragment-cM5FBHLm.esm.min.js.map +0 -1
  529. package/dist/chunks/pbr.fragment-5L_F7nGn.esm.js +0 -3222
  530. package/dist/chunks/pbr.fragment-5L_F7nGn.esm.js.map +0 -1
  531. package/dist/chunks/pbr.fragment-BJNPHSa-.esm.min.js +0 -2
  532. package/dist/chunks/pbr.fragment-BJNPHSa-.esm.min.js.map +0 -1
  533. package/dist/chunks/pbr.fragment-CTLrOzV2.esm.js +0 -3269
  534. package/dist/chunks/pbr.fragment-CTLrOzV2.esm.js.map +0 -1
  535. package/dist/chunks/pbr.fragment-D9MJFOr2.esm.min.js +0 -2
  536. package/dist/chunks/pbr.fragment-D9MJFOr2.esm.min.js.map +0 -1
  537. package/dist/chunks/pbr.vertex-BJyjq_fb.esm.js +0 -223
  538. package/dist/chunks/pbr.vertex-BJyjq_fb.esm.js.map +0 -1
  539. package/dist/chunks/pbr.vertex-Bm8Ng4Sx.esm.min.js +0 -2
  540. package/dist/chunks/pbr.vertex-Bm8Ng4Sx.esm.min.js.map +0 -1
  541. package/dist/chunks/pbr.vertex-CAKPUhfb.esm.min.js +0 -2
  542. package/dist/chunks/pbr.vertex-CAKPUhfb.esm.min.js.map +0 -1
  543. package/dist/chunks/pbr.vertex-DJd_-MvE.esm.js +0 -348
  544. package/dist/chunks/pbr.vertex-DJd_-MvE.esm.js.map +0 -1
  545. package/dist/chunks/postprocess.vertex-BjRX5eGi.esm.min.js +0 -2
  546. package/dist/chunks/postprocess.vertex-BjRX5eGi.esm.min.js.map +0 -1
  547. package/dist/chunks/postprocess.vertex-CFaKNIU-.esm.js +0 -20
  548. package/dist/chunks/postprocess.vertex-CFaKNIU-.esm.js.map +0 -1
  549. package/dist/chunks/rawTexture-ByD8l28R.esm.min.js +0 -2
  550. package/dist/chunks/rawTexture-ByD8l28R.esm.min.js.map +0 -1
  551. package/dist/chunks/rawTexture-DGz22uaX.esm.js +0 -191
  552. package/dist/chunks/rawTexture-DGz22uaX.esm.js.map +0 -1
  553. package/dist/chunks/ray-ByafiITx.esm.js +0 -946
  554. package/dist/chunks/ray-ByafiITx.esm.js.map +0 -1
  555. package/dist/chunks/ray-ChSTYrPm.esm.min.js +0 -2
  556. package/dist/chunks/ray-ChSTYrPm.esm.min.js.map +0 -1
  557. package/dist/chunks/rgbdDecode.fragment-CJ7PpH1N.esm.js +0 -13
  558. package/dist/chunks/rgbdDecode.fragment-CJ7PpH1N.esm.js.map +0 -1
  559. package/dist/chunks/rgbdDecode.fragment-DJ9crbPP.esm.js +0 -13
  560. package/dist/chunks/rgbdDecode.fragment-DJ9crbPP.esm.js.map +0 -1
  561. package/dist/chunks/rgbdDecode.fragment-DLpb3z18.esm.min.js +0 -2
  562. package/dist/chunks/rgbdDecode.fragment-DLpb3z18.esm.min.js.map +0 -1
  563. package/dist/chunks/rgbdDecode.fragment-ygeOUzIi.esm.min.js +0 -2
  564. package/dist/chunks/rgbdDecode.fragment-ygeOUzIi.esm.min.js.map +0 -1
  565. package/dist/chunks/rgbdEncode.fragment-BTG_wbck.esm.min.js +0 -2
  566. package/dist/chunks/rgbdEncode.fragment-BTG_wbck.esm.min.js.map +0 -1
  567. package/dist/chunks/rgbdEncode.fragment-C2s4AQaM.esm.js +0 -13
  568. package/dist/chunks/rgbdEncode.fragment-C2s4AQaM.esm.js.map +0 -1
  569. package/dist/chunks/rgbdEncode.fragment-C6LKySQH.esm.js +0 -13
  570. package/dist/chunks/rgbdEncode.fragment-C6LKySQH.esm.js.map +0 -1
  571. package/dist/chunks/rgbdEncode.fragment-CKB2lpgL.esm.min.js +0 -2
  572. package/dist/chunks/rgbdEncode.fragment-CKB2lpgL.esm.min.js.map +0 -1
  573. package/dist/chunks/splatFileLoader-BtSUlfZs.esm.min.js +0 -2
  574. package/dist/chunks/splatFileLoader-BtSUlfZs.esm.min.js.map +0 -1
  575. package/dist/chunks/splatFileLoader-Wn5sDtLq.esm.js +0 -3379
  576. package/dist/chunks/splatFileLoader-Wn5sDtLq.esm.js.map +0 -1
  577. package/dist/chunks/spotLight-CmDQEB8V.esm.js +0 -701
  578. package/dist/chunks/spotLight-CmDQEB8V.esm.js.map +0 -1
  579. package/dist/chunks/spotLight-hg94aMJD.esm.min.js +0 -2
  580. package/dist/chunks/spotLight-hg94aMJD.esm.min.js.map +0 -1
  581. package/dist/chunks/standardMaterial-BhIiLn1_.esm.js +0 -1806
  582. package/dist/chunks/standardMaterial-BhIiLn1_.esm.js.map +0 -1
  583. package/dist/chunks/standardMaterial-DQii8fRL.esm.min.js +0 -2
  584. package/dist/chunks/standardMaterial-DQii8fRL.esm.min.js.map +0 -1
  585. package/dist/chunks/stlFileLoader-D83u9BOr.esm.js +0 -238
  586. package/dist/chunks/stlFileLoader-D83u9BOr.esm.js.map +0 -1
  587. package/dist/chunks/stlFileLoader-DkXWqjZo.esm.min.js +0 -2
  588. package/dist/chunks/stlFileLoader-DkXWqjZo.esm.min.js.map +0 -1
  589. package/dist/chunks/tgaTextureLoader-C9xl6cvE.esm.js +0 -349
  590. package/dist/chunks/tgaTextureLoader-C9xl6cvE.esm.js.map +0 -1
  591. package/dist/chunks/tgaTextureLoader-DfzjGulW.esm.min.js +0 -2
  592. package/dist/chunks/tgaTextureLoader-DfzjGulW.esm.min.js.map +0 -1
  593. package/dist/chunks/thinEngine-Cu21aOSC.esm.min.js +0 -2
  594. package/dist/chunks/thinEngine-Cu21aOSC.esm.min.js.map +0 -1
  595. package/dist/chunks/thinEngine-IzS60pqU.esm.js +0 -3853
  596. package/dist/chunks/thinEngine-IzS60pqU.esm.js.map +0 -1
  597. package/dist/chunks/thinInstanceMesh-BN8Ev-h8.esm.js +0 -314
  598. package/dist/chunks/thinInstanceMesh-BN8Ev-h8.esm.js.map +0 -1
  599. package/dist/chunks/thinInstanceMesh-Bm9vmKU4.esm.min.js +0 -2
  600. package/dist/chunks/thinInstanceMesh-Bm9vmKU4.esm.min.js.map +0 -1
  601. package/dist/chunks/vertexColorMixing-Cazf4vEl.esm.min.js +0 -2
  602. package/dist/chunks/vertexColorMixing-Cazf4vEl.esm.min.js.map +0 -1
  603. package/dist/chunks/vertexColorMixing-DGvq3Fju.esm.js +0 -421
  604. package/dist/chunks/vertexColorMixing-DGvq3Fju.esm.js.map +0 -1
  605. package/dist/chunks/vertexColorMixing-D_6ZvivZ.esm.min.js +0 -2
  606. package/dist/chunks/vertexColorMixing-D_6ZvivZ.esm.min.js.map +0 -1
  607. package/dist/chunks/vertexColorMixing-DuYHnuUm.esm.js +0 -531
  608. package/dist/chunks/vertexColorMixing-DuYHnuUm.esm.js.map +0 -1
  609. package/dist/chunks/webgpuEngine-DHaXinU4.esm.min.js +0 -2
  610. package/dist/chunks/webgpuEngine-DHaXinU4.esm.min.js.map +0 -1
  611. package/dist/chunks/webgpuEngine-Dxev7pbz.esm.js +0 -11538
  612. package/dist/chunks/webgpuEngine-Dxev7pbz.esm.js.map +0 -1
  613. package/dist/chunks/workerPool-BUOov2K1.esm.js +0 -122
  614. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +0 -1
  615. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +0 -2
  616. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +0 -1
  617. package/lib/index.d.ts +0 -591
  618. package/lib/index.js +0 -2165
  619. package/lib/index.js.map +0 -1
@@ -1,814 +0,0 @@
1
- import { L as Logger, T as Tools, C as Constants } from './index-Cw2FZpYY.esm.js';
2
- import { A as AutoReleaseWorkerPool } from './workerPool-BUOov2K1.esm.js';
3
-
4
- /* eslint-disable @typescript-eslint/naming-convention */
5
- /**
6
- * for description see https://www.khronos.org/opengles/sdk/tools/KTX/
7
- * for file layout see https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/
8
- */
9
- class KhronosTextureContainer {
10
- /**
11
- * Creates a new KhronosTextureContainer
12
- * @param data contents of the KTX container file
13
- * @param facesExpected should be either 1 or 6, based whether a cube texture or or
14
- */
15
- constructor(
16
- /** contents of the KTX container file */
17
- data, facesExpected) {
18
- this.data = data;
19
- /**
20
- * If the container has been made invalid (eg. constructor failed to correctly load array buffer)
21
- */
22
- this.isInvalid = false;
23
- if (!KhronosTextureContainer.IsValid(data)) {
24
- this.isInvalid = true;
25
- Logger.Error("texture missing KTX identifier");
26
- return;
27
- }
28
- // load the reset of the header in native 32 bit uint
29
- const dataSize = Uint32Array.BYTES_PER_ELEMENT;
30
- const headerDataView = new DataView(this.data.buffer, this.data.byteOffset + 12, 13 * dataSize);
31
- const endianness = headerDataView.getUint32(0, true);
32
- const littleEndian = endianness === 0x04030201;
33
- this.glType = headerDataView.getUint32(1 * dataSize, littleEndian); // must be 0 for compressed textures
34
- this.glTypeSize = headerDataView.getUint32(2 * dataSize, littleEndian); // must be 1 for compressed textures
35
- this.glFormat = headerDataView.getUint32(3 * dataSize, littleEndian); // must be 0 for compressed textures
36
- this.glInternalFormat = headerDataView.getUint32(4 * dataSize, littleEndian); // the value of arg passed to gl.compressedTexImage2D(,,x,,,,)
37
- this.glBaseInternalFormat = headerDataView.getUint32(5 * dataSize, littleEndian); // specify GL_RGB, GL_RGBA, GL_ALPHA, etc (un-compressed only)
38
- this.pixelWidth = headerDataView.getUint32(6 * dataSize, littleEndian); // level 0 value of arg passed to gl.compressedTexImage2D(,,,x,,,)
39
- this.pixelHeight = headerDataView.getUint32(7 * dataSize, littleEndian); // level 0 value of arg passed to gl.compressedTexImage2D(,,,,x,,)
40
- this.pixelDepth = headerDataView.getUint32(8 * dataSize, littleEndian); // level 0 value of arg passed to gl.compressedTexImage3D(,,,,,x,,)
41
- this.numberOfArrayElements = headerDataView.getUint32(9 * dataSize, littleEndian); // used for texture arrays
42
- this.numberOfFaces = headerDataView.getUint32(10 * dataSize, littleEndian); // used for cubemap textures, should either be 1 or 6
43
- this.numberOfMipmapLevels = headerDataView.getUint32(11 * dataSize, littleEndian); // number of levels; disregard possibility of 0 for compressed textures
44
- this.bytesOfKeyValueData = headerDataView.getUint32(12 * dataSize, littleEndian); // the amount of space after the header for meta-data
45
- // Make sure we have a compressed type. Not only reduces work, but probably better to let dev know they are not compressing.
46
- if (this.glType !== 0) {
47
- Logger.Error("only compressed formats currently supported");
48
- this.isInvalid = true;
49
- return;
50
- }
51
- else {
52
- // value of zero is an indication to generate mipmaps @ runtime. Not usually allowed for compressed, so disregard.
53
- this.numberOfMipmapLevels = Math.max(1, this.numberOfMipmapLevels);
54
- }
55
- if (this.pixelHeight === 0 || this.pixelDepth !== 0) {
56
- Logger.Error("only 2D textures currently supported");
57
- this.isInvalid = true;
58
- return;
59
- }
60
- if (this.numberOfArrayElements !== 0) {
61
- Logger.Error("texture arrays not currently supported");
62
- this.isInvalid = true;
63
- return;
64
- }
65
- if (this.numberOfFaces !== facesExpected) {
66
- Logger.Error("number of faces expected" + facesExpected + ", but found " + this.numberOfFaces);
67
- this.isInvalid = true;
68
- return;
69
- }
70
- // we now have a completely validated file, so could use existence of loadType as success
71
- // would need to make this more elaborate & adjust checks above to support more than one load type
72
- this.loadType = KhronosTextureContainer.COMPRESSED_2D;
73
- }
74
- /**
75
- * Uploads KTX content to a Babylon Texture.
76
- * It is assumed that the texture has already been created & is currently bound
77
- * @internal
78
- */
79
- uploadLevels(texture, loadMipmaps) {
80
- switch (this.loadType) {
81
- case KhronosTextureContainer.COMPRESSED_2D:
82
- this._upload2DCompressedLevels(texture, loadMipmaps);
83
- break;
84
- }
85
- }
86
- _upload2DCompressedLevels(texture, loadMipmaps) {
87
- // initialize width & height for level 1
88
- let dataOffset = KhronosTextureContainer.HEADER_LEN + this.bytesOfKeyValueData;
89
- let width = this.pixelWidth;
90
- let height = this.pixelHeight;
91
- const mipmapCount = loadMipmaps ? this.numberOfMipmapLevels : 1;
92
- for (let level = 0; level < mipmapCount; level++) {
93
- const imageSize = new Int32Array(this.data.buffer, this.data.byteOffset + dataOffset, 1)[0]; // size per face, since not supporting array cubemaps
94
- dataOffset += 4; //image data starts from next multiple of 4 offset. Each face refers to same imagesize field above.
95
- for (let face = 0; face < this.numberOfFaces; face++) {
96
- const byteArray = new Uint8Array(this.data.buffer, this.data.byteOffset + dataOffset, imageSize);
97
- const engine = texture.getEngine();
98
- engine._uploadCompressedDataToTextureDirectly(texture, texture.format, width, height, byteArray, face, level);
99
- dataOffset += imageSize; // add size of the image for the next face/mipmap
100
- dataOffset += 3 - ((imageSize + 3) % 4); // add padding for odd sized image
101
- }
102
- width = Math.max(1.0, width * 0.5);
103
- height = Math.max(1.0, height * 0.5);
104
- }
105
- }
106
- /**
107
- * Checks if the given data starts with a KTX file identifier.
108
- * @param data the data to check
109
- * @returns true if the data is a KTX file or false otherwise
110
- */
111
- static IsValid(data) {
112
- if (data.byteLength >= 12) {
113
- // '«', 'K', 'T', 'X', ' ', '1', '1', '»', '\r', '\n', '\x1A', '\n'
114
- const identifier = new Uint8Array(data.buffer, data.byteOffset, 12);
115
- if (identifier[0] === 0xab &&
116
- identifier[1] === 0x4b &&
117
- identifier[2] === 0x54 &&
118
- identifier[3] === 0x58 &&
119
- identifier[4] === 0x20 &&
120
- identifier[5] === 0x31 &&
121
- identifier[6] === 0x31 &&
122
- identifier[7] === 0xbb &&
123
- identifier[8] === 0x0d &&
124
- identifier[9] === 0x0a &&
125
- identifier[10] === 0x1a &&
126
- identifier[11] === 0x0a) {
127
- return true;
128
- }
129
- }
130
- return false;
131
- }
132
- }
133
- KhronosTextureContainer.HEADER_LEN = 12 + 13 * 4; // identifier + header elements (not including key value meta-data pairs)
134
- // load types
135
- KhronosTextureContainer.COMPRESSED_2D = 0; // uses a gl.compressedTexImage2D()
136
- KhronosTextureContainer.COMPRESSED_3D = 1; // uses a gl.compressedTexImage3D()
137
- KhronosTextureContainer.TEX_2D = 2; // uses a gl.texImage2D()
138
- KhronosTextureContainer.TEX_3D = 3; // uses a gl.texImage3D()
139
-
140
- var SourceTextureFormat;
141
- (function (SourceTextureFormat) {
142
- SourceTextureFormat[SourceTextureFormat["ETC1S"] = 0] = "ETC1S";
143
- SourceTextureFormat[SourceTextureFormat["UASTC4x4"] = 1] = "UASTC4x4";
144
- })(SourceTextureFormat || (SourceTextureFormat = {}));
145
- var TranscodeTarget;
146
- (function (TranscodeTarget) {
147
- TranscodeTarget[TranscodeTarget["ASTC_4X4_RGBA"] = 0] = "ASTC_4X4_RGBA";
148
- TranscodeTarget[TranscodeTarget["BC7_RGBA"] = 1] = "BC7_RGBA";
149
- TranscodeTarget[TranscodeTarget["BC3_RGBA"] = 2] = "BC3_RGBA";
150
- TranscodeTarget[TranscodeTarget["BC1_RGB"] = 3] = "BC1_RGB";
151
- TranscodeTarget[TranscodeTarget["PVRTC1_4_RGBA"] = 4] = "PVRTC1_4_RGBA";
152
- TranscodeTarget[TranscodeTarget["PVRTC1_4_RGB"] = 5] = "PVRTC1_4_RGB";
153
- TranscodeTarget[TranscodeTarget["ETC2_RGBA"] = 6] = "ETC2_RGBA";
154
- TranscodeTarget[TranscodeTarget["ETC1_RGB"] = 7] = "ETC1_RGB";
155
- TranscodeTarget[TranscodeTarget["RGBA32"] = 8] = "RGBA32";
156
- TranscodeTarget[TranscodeTarget["R8"] = 9] = "R8";
157
- TranscodeTarget[TranscodeTarget["RG8"] = 10] = "RG8";
158
- })(TranscodeTarget || (TranscodeTarget = {}));
159
- var EngineFormat;
160
- (function (EngineFormat) {
161
- EngineFormat[EngineFormat["COMPRESSED_RGBA_BPTC_UNORM_EXT"] = 36492] = "COMPRESSED_RGBA_BPTC_UNORM_EXT";
162
- EngineFormat[EngineFormat["COMPRESSED_RGBA_ASTC_4X4_KHR"] = 37808] = "COMPRESSED_RGBA_ASTC_4X4_KHR";
163
- EngineFormat[EngineFormat["COMPRESSED_RGB_S3TC_DXT1_EXT"] = 33776] = "COMPRESSED_RGB_S3TC_DXT1_EXT";
164
- EngineFormat[EngineFormat["COMPRESSED_RGBA_S3TC_DXT5_EXT"] = 33779] = "COMPRESSED_RGBA_S3TC_DXT5_EXT";
165
- EngineFormat[EngineFormat["COMPRESSED_RGBA_PVRTC_4BPPV1_IMG"] = 35842] = "COMPRESSED_RGBA_PVRTC_4BPPV1_IMG";
166
- EngineFormat[EngineFormat["COMPRESSED_RGB_PVRTC_4BPPV1_IMG"] = 35840] = "COMPRESSED_RGB_PVRTC_4BPPV1_IMG";
167
- EngineFormat[EngineFormat["COMPRESSED_RGBA8_ETC2_EAC"] = 37496] = "COMPRESSED_RGBA8_ETC2_EAC";
168
- EngineFormat[EngineFormat["COMPRESSED_RGB8_ETC2"] = 37492] = "COMPRESSED_RGB8_ETC2";
169
- EngineFormat[EngineFormat["COMPRESSED_RGB_ETC1_WEBGL"] = 36196] = "COMPRESSED_RGB_ETC1_WEBGL";
170
- EngineFormat[EngineFormat["RGBA8Format"] = 32856] = "RGBA8Format";
171
- EngineFormat[EngineFormat["R8Format"] = 33321] = "R8Format";
172
- EngineFormat[EngineFormat["RG8Format"] = 33323] = "RG8Format";
173
- })(EngineFormat || (EngineFormat = {}));
174
-
175
- function applyConfig(urls, binariesAndModulesContainer) {
176
- const KTX2DecoderModule = binariesAndModulesContainer?.jsDecoderModule || KTX2DECODER;
177
- if (urls) {
178
- if (urls.wasmUASTCToASTC) {
179
- KTX2DecoderModule.LiteTranscoder_UASTC_ASTC.WasmModuleURL = urls.wasmUASTCToASTC;
180
- }
181
- if (urls.wasmUASTCToBC7) {
182
- KTX2DecoderModule.LiteTranscoder_UASTC_BC7.WasmModuleURL = urls.wasmUASTCToBC7;
183
- }
184
- if (urls.wasmUASTCToRGBA_UNORM) {
185
- KTX2DecoderModule.LiteTranscoder_UASTC_RGBA_UNORM.WasmModuleURL = urls.wasmUASTCToRGBA_UNORM;
186
- }
187
- if (urls.wasmUASTCToRGBA_SRGB) {
188
- KTX2DecoderModule.LiteTranscoder_UASTC_RGBA_SRGB.WasmModuleURL = urls.wasmUASTCToRGBA_SRGB;
189
- }
190
- if (urls.wasmUASTCToR8_UNORM) {
191
- KTX2DecoderModule.LiteTranscoder_UASTC_R8_UNORM.WasmModuleURL = urls.wasmUASTCToR8_UNORM;
192
- }
193
- if (urls.wasmUASTCToRG8_UNORM) {
194
- KTX2DecoderModule.LiteTranscoder_UASTC_RG8_UNORM.WasmModuleURL = urls.wasmUASTCToRG8_UNORM;
195
- }
196
- if (urls.jsMSCTranscoder) {
197
- KTX2DecoderModule.MSCTranscoder.JSModuleURL = urls.jsMSCTranscoder;
198
- }
199
- if (urls.wasmMSCTranscoder) {
200
- KTX2DecoderModule.MSCTranscoder.WasmModuleURL = urls.wasmMSCTranscoder;
201
- }
202
- if (urls.wasmZSTDDecoder) {
203
- KTX2DecoderModule.ZSTDDecoder.WasmModuleURL = urls.wasmZSTDDecoder;
204
- }
205
- }
206
- if (binariesAndModulesContainer) {
207
- if (binariesAndModulesContainer.wasmUASTCToASTC) {
208
- KTX2DecoderModule.LiteTranscoder_UASTC_ASTC.WasmBinary = binariesAndModulesContainer.wasmUASTCToASTC;
209
- }
210
- if (binariesAndModulesContainer.wasmUASTCToBC7) {
211
- KTX2DecoderModule.LiteTranscoder_UASTC_BC7.WasmBinary = binariesAndModulesContainer.wasmUASTCToBC7;
212
- }
213
- if (binariesAndModulesContainer.wasmUASTCToRGBA_UNORM) {
214
- KTX2DecoderModule.LiteTranscoder_UASTC_RGBA_UNORM.WasmBinary = binariesAndModulesContainer.wasmUASTCToRGBA_UNORM;
215
- }
216
- if (binariesAndModulesContainer.wasmUASTCToRGBA_SRGB) {
217
- KTX2DecoderModule.LiteTranscoder_UASTC_RGBA_SRGB.WasmBinary = binariesAndModulesContainer.wasmUASTCToRGBA_SRGB;
218
- }
219
- if (binariesAndModulesContainer.wasmUASTCToR8_UNORM) {
220
- KTX2DecoderModule.LiteTranscoder_UASTC_R8_UNORM.WasmBinary = binariesAndModulesContainer.wasmUASTCToR8_UNORM;
221
- }
222
- if (binariesAndModulesContainer.wasmUASTCToRG8_UNORM) {
223
- KTX2DecoderModule.LiteTranscoder_UASTC_RG8_UNORM.WasmBinary = binariesAndModulesContainer.wasmUASTCToRG8_UNORM;
224
- }
225
- if (binariesAndModulesContainer.jsMSCTranscoder) {
226
- KTX2DecoderModule.MSCTranscoder.JSModule = binariesAndModulesContainer.jsMSCTranscoder;
227
- }
228
- if (binariesAndModulesContainer.wasmMSCTranscoder) {
229
- KTX2DecoderModule.MSCTranscoder.WasmBinary = binariesAndModulesContainer.wasmMSCTranscoder;
230
- }
231
- if (binariesAndModulesContainer.wasmZSTDDecoder) {
232
- KTX2DecoderModule.ZSTDDecoder.WasmBinary = binariesAndModulesContainer.wasmZSTDDecoder;
233
- }
234
- }
235
- }
236
- function workerFunction(KTX2DecoderModule) {
237
- if (typeof KTX2DecoderModule === "undefined" && typeof KTX2DECODER !== "undefined") {
238
- KTX2DecoderModule = KTX2DECODER;
239
- }
240
- let ktx2Decoder;
241
- onmessage = (event) => {
242
- if (!event.data) {
243
- return;
244
- }
245
- switch (event.data.action) {
246
- case "init": {
247
- const urls = event.data.urls;
248
- if (urls) {
249
- if (urls.jsDecoderModule && typeof KTX2DecoderModule === "undefined") {
250
- importScripts(urls.jsDecoderModule);
251
- // assuming global namespace populated by the script (UMD pattern)
252
- KTX2DecoderModule = KTX2DECODER;
253
- }
254
- applyConfig(urls);
255
- }
256
- if (event.data.wasmBinaries) {
257
- applyConfig(undefined, { ...event.data.wasmBinaries, jsDecoderModule: KTX2DecoderModule });
258
- }
259
- ktx2Decoder = new KTX2DecoderModule.KTX2Decoder();
260
- postMessage({ action: "init" });
261
- break;
262
- }
263
- case "setDefaultDecoderOptions": {
264
- KTX2DecoderModule.KTX2Decoder.DefaultDecoderOptions = event.data.options;
265
- break;
266
- }
267
- case "decode":
268
- ktx2Decoder
269
- .decode(event.data.data, event.data.caps, event.data.options)
270
- .then((data) => {
271
- const buffers = [];
272
- for (let mip = 0; mip < data.mipmaps.length; ++mip) {
273
- const mipmap = data.mipmaps[mip];
274
- if (mipmap && mipmap.data) {
275
- buffers.push(mipmap.data.buffer);
276
- }
277
- }
278
- postMessage({ action: "decoded", success: true, decodedData: data }, buffers);
279
- })
280
- .catch((reason) => {
281
- postMessage({ action: "decoded", success: false, msg: reason });
282
- });
283
- break;
284
- }
285
- };
286
- }
287
- function initializeWebWorker(worker, wasmBinaries, urls) {
288
- return new Promise((resolve, reject) => {
289
- const onError = (error) => {
290
- worker.removeEventListener("error", onError);
291
- worker.removeEventListener("message", onMessage);
292
- reject(error);
293
- };
294
- const onMessage = (message) => {
295
- if (message.data.action === "init") {
296
- worker.removeEventListener("error", onError);
297
- worker.removeEventListener("message", onMessage);
298
- resolve(worker);
299
- }
300
- };
301
- worker.addEventListener("error", onError);
302
- worker.addEventListener("message", onMessage);
303
- worker.postMessage({
304
- action: "init",
305
- urls,
306
- wasmBinaries,
307
- });
308
- });
309
- }
310
-
311
- /**
312
- * Class that defines the default KTX2 decoder options.
313
- *
314
- * This class is useful for providing options to the KTX2 decoder to control how the source data is transcoded.
315
- */
316
- class DefaultKTX2DecoderOptions {
317
- constructor() {
318
- this._isDirty = true;
319
- this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC = true;
320
- this._ktx2DecoderOptions = {};
321
- }
322
- /**
323
- * Gets the dirty flag
324
- */
325
- get isDirty() {
326
- return this._isDirty;
327
- }
328
- /**
329
- * force a (uncompressed) RGBA transcoded format if transcoding a UASTC source format and ASTC + BC7 are not available as a compressed transcoded format
330
- */
331
- get useRGBAIfASTCBC7NotAvailableWhenUASTC() {
332
- return this._useRGBAIfASTCBC7NotAvailableWhenUASTC;
333
- }
334
- set useRGBAIfASTCBC7NotAvailableWhenUASTC(value) {
335
- if (this._useRGBAIfASTCBC7NotAvailableWhenUASTC === value) {
336
- return;
337
- }
338
- this._useRGBAIfASTCBC7NotAvailableWhenUASTC = value;
339
- this._isDirty = true;
340
- }
341
- /**
342
- * force a (uncompressed) RGBA transcoded format if transcoding a UASTC source format and only BC1 or BC3 are available as a compressed transcoded format.
343
- * This property is true by default to favor speed over memory, because currently transcoding from UASTC to BC1/3 is slow because the transcoder transcodes
344
- * to uncompressed and then recompresses the texture
345
- */
346
- get useRGBAIfOnlyBC1BC3AvailableWhenUASTC() {
347
- return this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC;
348
- }
349
- set useRGBAIfOnlyBC1BC3AvailableWhenUASTC(value) {
350
- if (this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC === value) {
351
- return;
352
- }
353
- this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC = value;
354
- this._isDirty = true;
355
- }
356
- /**
357
- * force to always use (uncompressed) RGBA for transcoded format
358
- */
359
- get forceRGBA() {
360
- return this._forceRGBA;
361
- }
362
- set forceRGBA(value) {
363
- if (this._forceRGBA === value) {
364
- return;
365
- }
366
- this._forceRGBA = value;
367
- this._isDirty = true;
368
- }
369
- /**
370
- * force to always use (uncompressed) R8 for transcoded format
371
- */
372
- get forceR8() {
373
- return this._forceR8;
374
- }
375
- set forceR8(value) {
376
- if (this._forceR8 === value) {
377
- return;
378
- }
379
- this._forceR8 = value;
380
- this._isDirty = true;
381
- }
382
- /**
383
- * force to always use (uncompressed) RG8 for transcoded format
384
- */
385
- get forceRG8() {
386
- return this._forceRG8;
387
- }
388
- set forceRG8(value) {
389
- if (this._forceRG8 === value) {
390
- return;
391
- }
392
- this._forceRG8 = value;
393
- this._isDirty = true;
394
- }
395
- /**
396
- * list of transcoders to bypass when looking for a suitable transcoder. The available transcoders are:
397
- * UniversalTranscoder_UASTC_ASTC
398
- * UniversalTranscoder_UASTC_BC7
399
- * UniversalTranscoder_UASTC_RGBA_UNORM
400
- * UniversalTranscoder_UASTC_RGBA_SRGB
401
- * UniversalTranscoder_UASTC_R8_UNORM
402
- * UniversalTranscoder_UASTC_RG8_UNORM
403
- * MSCTranscoder
404
- */
405
- get bypassTranscoders() {
406
- return this._bypassTranscoders;
407
- }
408
- set bypassTranscoders(value) {
409
- if (this._bypassTranscoders === value) {
410
- return;
411
- }
412
- this._bypassTranscoders = value;
413
- this._isDirty = true;
414
- }
415
- /** @internal */
416
- _getKTX2DecoderOptions() {
417
- if (!this._isDirty) {
418
- return this._ktx2DecoderOptions;
419
- }
420
- this._isDirty = false;
421
- const options = {
422
- useRGBAIfASTCBC7NotAvailableWhenUASTC: this._useRGBAIfASTCBC7NotAvailableWhenUASTC,
423
- forceRGBA: this._forceRGBA,
424
- forceR8: this._forceR8,
425
- forceRG8: this._forceRG8,
426
- bypassTranscoders: this._bypassTranscoders,
427
- };
428
- if (this.useRGBAIfOnlyBC1BC3AvailableWhenUASTC) {
429
- options.transcodeFormatDecisionTree = {
430
- UASTC: {
431
- transcodeFormat: [TranscodeTarget.BC1_RGB, TranscodeTarget.BC3_RGBA],
432
- yes: {
433
- transcodeFormat: TranscodeTarget.RGBA32,
434
- engineFormat: 32856 /* EngineFormat.RGBA8Format */,
435
- roundToMultiple4: false,
436
- },
437
- },
438
- };
439
- }
440
- this._ktx2DecoderOptions = options;
441
- return options;
442
- }
443
- }
444
- /**
445
- * Class for loading KTX2 files
446
- */
447
- class KhronosTextureContainer2 {
448
- static GetDefaultNumWorkers() {
449
- if (typeof navigator !== "object" || !navigator.hardwareConcurrency) {
450
- return 1;
451
- }
452
- // Use 50% of the available logical processors but capped at 4.
453
- return Math.min(Math.floor(navigator.hardwareConcurrency * 0.5), 4);
454
- }
455
- static _Initialize(numWorkers) {
456
- if (KhronosTextureContainer2._WorkerPoolPromise || KhronosTextureContainer2._DecoderModulePromise) {
457
- return;
458
- }
459
- const urls = {
460
- jsDecoderModule: Tools.GetBabylonScriptURL(this.URLConfig.jsDecoderModule, true),
461
- wasmUASTCToASTC: Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToASTC, true),
462
- wasmUASTCToBC7: Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToBC7, true),
463
- wasmUASTCToRGBA_UNORM: Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRGBA_UNORM, true),
464
- wasmUASTCToRGBA_SRGB: Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRGBA_SRGB, true),
465
- wasmUASTCToR8_UNORM: Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToR8_UNORM, true),
466
- wasmUASTCToRG8_UNORM: Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRG8_UNORM, true),
467
- jsMSCTranscoder: Tools.GetBabylonScriptURL(this.URLConfig.jsMSCTranscoder, true),
468
- wasmMSCTranscoder: Tools.GetBabylonScriptURL(this.URLConfig.wasmMSCTranscoder, true),
469
- wasmZSTDDecoder: Tools.GetBabylonScriptURL(this.URLConfig.wasmZSTDDecoder, true),
470
- };
471
- if (numWorkers && typeof Worker === "function" && typeof URL !== "undefined") {
472
- KhronosTextureContainer2._WorkerPoolPromise = new Promise((resolve) => {
473
- const workerContent = `${applyConfig}(${workerFunction})()`;
474
- const workerBlobUrl = URL.createObjectURL(new Blob([workerContent], { type: "application/javascript" }));
475
- resolve(new AutoReleaseWorkerPool(numWorkers, () => initializeWebWorker(new Worker(workerBlobUrl), undefined, urls)));
476
- });
477
- }
478
- else {
479
- if (typeof KhronosTextureContainer2._KTX2DecoderModule === "undefined") {
480
- KhronosTextureContainer2._DecoderModulePromise = Tools.LoadBabylonScriptAsync(urls.jsDecoderModule).then(() => {
481
- KhronosTextureContainer2._KTX2DecoderModule = KTX2DECODER;
482
- KhronosTextureContainer2._KTX2DecoderModule.MSCTranscoder.UseFromWorkerThread = false;
483
- KhronosTextureContainer2._KTX2DecoderModule.WASMMemoryManager.LoadBinariesFromCurrentThread = true;
484
- applyConfig(urls, KhronosTextureContainer2._KTX2DecoderModule);
485
- return new KhronosTextureContainer2._KTX2DecoderModule.KTX2Decoder();
486
- });
487
- }
488
- else {
489
- KhronosTextureContainer2._KTX2DecoderModule.MSCTranscoder.UseFromWorkerThread = false;
490
- KhronosTextureContainer2._KTX2DecoderModule.WASMMemoryManager.LoadBinariesFromCurrentThread = true;
491
- KhronosTextureContainer2._DecoderModulePromise = Promise.resolve(new KhronosTextureContainer2._KTX2DecoderModule.KTX2Decoder());
492
- }
493
- }
494
- }
495
- /**
496
- * Constructor
497
- * @param engine The engine to use
498
- * @param numWorkersOrOptions The number of workers for async operations. Specify `0` to disable web workers and run synchronously in the current context.
499
- */
500
- constructor(engine, numWorkersOrOptions = KhronosTextureContainer2.DefaultNumWorkers) {
501
- this._engine = engine;
502
- const workerPoolOption = (typeof numWorkersOrOptions === "object" && numWorkersOrOptions.workerPool) || KhronosTextureContainer2.WorkerPool;
503
- if (workerPoolOption) {
504
- KhronosTextureContainer2._WorkerPoolPromise = Promise.resolve(workerPoolOption);
505
- }
506
- else {
507
- // set the KTX2 decoder module
508
- if (typeof numWorkersOrOptions === "object") {
509
- KhronosTextureContainer2._KTX2DecoderModule = numWorkersOrOptions?.binariesAndModulesContainer?.jsDecoderModule;
510
- }
511
- else if (typeof KTX2DECODER !== "undefined") {
512
- KhronosTextureContainer2._KTX2DecoderModule = KTX2DECODER;
513
- }
514
- const numberOfWorkers = typeof numWorkersOrOptions === "number" ? numWorkersOrOptions : (numWorkersOrOptions.numWorkers ?? KhronosTextureContainer2.DefaultNumWorkers);
515
- KhronosTextureContainer2._Initialize(numberOfWorkers);
516
- }
517
- }
518
- /**
519
- * @internal
520
- */
521
- _uploadAsync(data, internalTexture, options) {
522
- const caps = this._engine.getCaps();
523
- const compressedTexturesCaps = {
524
- astc: !!caps.astc,
525
- bptc: !!caps.bptc,
526
- s3tc: !!caps.s3tc,
527
- pvrtc: !!caps.pvrtc,
528
- etc2: !!caps.etc2,
529
- etc1: !!caps.etc1,
530
- };
531
- if (KhronosTextureContainer2._WorkerPoolPromise) {
532
- return KhronosTextureContainer2._WorkerPoolPromise.then((workerPool) => {
533
- return new Promise((resolve, reject) => {
534
- workerPool.push((worker, onComplete) => {
535
- const onError = (error) => {
536
- worker.removeEventListener("error", onError);
537
- worker.removeEventListener("message", onMessage);
538
- reject(error);
539
- onComplete();
540
- };
541
- const onMessage = (message) => {
542
- if (message.data.action === "decoded") {
543
- worker.removeEventListener("error", onError);
544
- worker.removeEventListener("message", onMessage);
545
- if (!message.data.success) {
546
- reject({ message: message.data.msg });
547
- }
548
- else {
549
- try {
550
- this._createTexture(message.data.decodedData, internalTexture, options);
551
- resolve();
552
- }
553
- catch (err) {
554
- reject({ message: err });
555
- }
556
- }
557
- onComplete();
558
- }
559
- };
560
- worker.addEventListener("error", onError);
561
- worker.addEventListener("message", onMessage);
562
- worker.postMessage({ action: "setDefaultDecoderOptions", options: KhronosTextureContainer2.DefaultDecoderOptions._getKTX2DecoderOptions() });
563
- const dataCopy = new Uint8Array(data.byteLength);
564
- dataCopy.set(new Uint8Array(data.buffer, data.byteOffset, data.byteLength));
565
- worker.postMessage({ action: "decode", data: dataCopy, caps: compressedTexturesCaps, options }, [dataCopy.buffer]);
566
- });
567
- });
568
- });
569
- }
570
- else if (KhronosTextureContainer2._DecoderModulePromise) {
571
- return KhronosTextureContainer2._DecoderModulePromise.then((decoder) => {
572
- if (KhronosTextureContainer2.DefaultDecoderOptions.isDirty) {
573
- KhronosTextureContainer2._KTX2DecoderModule.KTX2Decoder.DefaultDecoderOptions = KhronosTextureContainer2.DefaultDecoderOptions._getKTX2DecoderOptions();
574
- }
575
- return new Promise((resolve, reject) => {
576
- decoder
577
- .decode(data, caps)
578
- .then((data) => {
579
- this._createTexture(data, internalTexture);
580
- resolve();
581
- })
582
- .catch((reason) => {
583
- reject({ message: reason });
584
- });
585
- });
586
- });
587
- }
588
- throw new Error("KTX2 decoder module is not available");
589
- }
590
- _createTexture(data, internalTexture, options) {
591
- const oglTexture2D = 3553; // gl.TEXTURE_2D
592
- this._engine._bindTextureDirectly(oglTexture2D, internalTexture);
593
- if (options) {
594
- // return back some information about the decoded data
595
- options.transcodedFormat = data.transcodedFormat;
596
- options.isInGammaSpace = data.isInGammaSpace;
597
- options.hasAlpha = data.hasAlpha;
598
- options.transcoderName = data.transcoderName;
599
- }
600
- let isUncompressedFormat = true;
601
- switch (data.transcodedFormat) {
602
- case 0x8058 /* RGBA8 */:
603
- internalTexture.type = Constants.TEXTURETYPE_UNSIGNED_BYTE;
604
- internalTexture.format = Constants.TEXTUREFORMAT_RGBA;
605
- break;
606
- case 0x8229 /* R8 */:
607
- internalTexture.type = Constants.TEXTURETYPE_UNSIGNED_BYTE;
608
- internalTexture.format = Constants.TEXTUREFORMAT_R;
609
- break;
610
- case 0x822b /* RG8 */:
611
- internalTexture.type = Constants.TEXTURETYPE_UNSIGNED_BYTE;
612
- internalTexture.format = Constants.TEXTUREFORMAT_RG;
613
- break;
614
- default:
615
- internalTexture.format = data.transcodedFormat;
616
- isUncompressedFormat = false;
617
- break;
618
- }
619
- internalTexture._gammaSpace = data.isInGammaSpace;
620
- internalTexture.generateMipMaps = data.mipmaps.length > 1;
621
- if (data.errors) {
622
- throw new Error("KTX2 container - could not transcode the data. " + data.errors);
623
- }
624
- for (let t = 0; t < data.mipmaps.length; ++t) {
625
- const mipmap = data.mipmaps[t];
626
- if (!mipmap || !mipmap.data) {
627
- throw new Error("KTX2 container - could not transcode one of the image");
628
- }
629
- if (isUncompressedFormat) {
630
- // uncompressed RGBA / R8 / RG8
631
- internalTexture.width = mipmap.width; // need to set width/height so that the call to _uploadDataToTextureDirectly uses the right dimensions
632
- internalTexture.height = mipmap.height;
633
- this._engine._uploadDataToTextureDirectly(internalTexture, mipmap.data, 0, t, undefined, true);
634
- }
635
- else {
636
- this._engine._uploadCompressedDataToTextureDirectly(internalTexture, data.transcodedFormat, mipmap.width, mipmap.height, mipmap.data, 0, t);
637
- }
638
- }
639
- internalTexture._extension = ".ktx2";
640
- internalTexture.width = data.mipmaps[0].width;
641
- internalTexture.height = data.mipmaps[0].height;
642
- internalTexture.isReady = true;
643
- this._engine._bindTextureDirectly(oglTexture2D, null);
644
- }
645
- /**
646
- * Checks if the given data starts with a KTX2 file identifier.
647
- * @param data the data to check
648
- * @returns true if the data is a KTX2 file or false otherwise
649
- */
650
- static IsValid(data) {
651
- if (data.byteLength >= 12) {
652
- // '«', 'K', 'T', 'X', ' ', '2', '0', '»', '\r', '\n', '\x1A', '\n'
653
- const identifier = new Uint8Array(data.buffer, data.byteOffset, 12);
654
- if (identifier[0] === 0xab &&
655
- identifier[1] === 0x4b &&
656
- identifier[2] === 0x54 &&
657
- identifier[3] === 0x58 &&
658
- identifier[4] === 0x20 &&
659
- identifier[5] === 0x32 &&
660
- identifier[6] === 0x30 &&
661
- identifier[7] === 0xbb &&
662
- identifier[8] === 0x0d &&
663
- identifier[9] === 0x0a &&
664
- identifier[10] === 0x1a &&
665
- identifier[11] === 0x0a) {
666
- return true;
667
- }
668
- }
669
- return false;
670
- }
671
- }
672
- /**
673
- * URLs to use when loading the KTX2 decoder module as well as its dependencies
674
- * If a url is null, the default url is used (pointing to https://preview.babylonjs.com)
675
- * Note that jsDecoderModule can't be null and that the other dependencies will only be loaded if necessary
676
- * Urls you can change:
677
- * URLConfig.jsDecoderModule
678
- * URLConfig.wasmUASTCToASTC
679
- * URLConfig.wasmUASTCToBC7
680
- * URLConfig.wasmUASTCToRGBA_UNORM
681
- * URLConfig.wasmUASTCToRGBA_SRGB
682
- * URLConfig.wasmUASTCToR8_UNORM
683
- * URLConfig.wasmUASTCToRG8_UNORM
684
- * URLConfig.jsMSCTranscoder
685
- * URLConfig.wasmMSCTranscoder
686
- * URLConfig.wasmZSTDDecoder
687
- * You can see their default values in this PG: https://playground.babylonjs.com/#EIJH8L#29
688
- */
689
- KhronosTextureContainer2.URLConfig = {
690
- jsDecoderModule: "https://cdn.babylonjs.com/babylon.ktx2Decoder.js",
691
- wasmUASTCToASTC: null,
692
- wasmUASTCToBC7: null,
693
- wasmUASTCToRGBA_UNORM: null,
694
- wasmUASTCToRGBA_SRGB: null,
695
- wasmUASTCToR8_UNORM: null,
696
- wasmUASTCToRG8_UNORM: null,
697
- jsMSCTranscoder: null,
698
- wasmMSCTranscoder: null,
699
- wasmZSTDDecoder: null,
700
- };
701
- /**
702
- * Default number of workers used to handle data decoding
703
- */
704
- KhronosTextureContainer2.DefaultNumWorkers = KhronosTextureContainer2.GetDefaultNumWorkers();
705
- /**
706
- * Default configuration for the KTX2 decoder.
707
- * The options defined in this way have priority over those passed when creating a KTX2 texture with new Texture(...).
708
- */
709
- KhronosTextureContainer2.DefaultDecoderOptions = new DefaultKTX2DecoderOptions();
710
-
711
- function mapSRGBToLinear(format) {
712
- switch (format) {
713
- case Constants.TEXTUREFORMAT_COMPRESSED_SRGB_S3TC_DXT1_EXT:
714
- return Constants.TEXTUREFORMAT_COMPRESSED_RGB_S3TC_DXT1;
715
- case Constants.TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT:
716
- return Constants.TEXTUREFORMAT_COMPRESSED_RGBA_S3TC_DXT3;
717
- case Constants.TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT:
718
- return Constants.TEXTUREFORMAT_COMPRESSED_RGBA_S3TC_DXT5;
719
- case Constants.TEXTUREFORMAT_COMPRESSED_SRGB8_ETC2:
720
- return Constants.TEXTUREFORMAT_COMPRESSED_RGB8_ETC2;
721
- case Constants.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:
722
- return Constants.TEXTUREFORMAT_COMPRESSED_RGBA8_ETC2_EAC;
723
- case Constants.TEXTUREFORMAT_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:
724
- return Constants.TEXTUREFORMAT_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2;
725
- case Constants.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:
726
- return Constants.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_4x4;
727
- case Constants.TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_BPTC_UNORM:
728
- return Constants.TEXTUREFORMAT_COMPRESSED_RGBA_BPTC_UNORM;
729
- }
730
- return null;
731
- }
732
- /**
733
- * Implementation of the KTX Texture Loader.
734
- * @internal
735
- */
736
- // eslint-disable-next-line @typescript-eslint/naming-convention
737
- class _KTXTextureLoader {
738
- constructor() {
739
- /**
740
- * Defines whether the loader supports cascade loading the different faces.
741
- */
742
- this.supportCascades = false;
743
- }
744
- /**
745
- * Uploads the cube texture data to the WebGL texture. It has already been bound.
746
- * @param data contains the texture data
747
- * @param texture defines the BabylonJS internal texture
748
- * @param createPolynomials will be true if polynomials have been requested
749
- * @param onLoad defines the callback to trigger once the texture is ready
750
- */
751
- loadCubeData(data, texture, createPolynomials, onLoad) {
752
- if (Array.isArray(data)) {
753
- return;
754
- }
755
- // Need to invert vScale as invertY via UNPACK_FLIP_Y_WEBGL is not supported by compressed texture
756
- texture._invertVScale = !texture.invertY;
757
- const engine = texture.getEngine();
758
- const ktx = new KhronosTextureContainer(data, 6);
759
- const loadMipmap = ktx.numberOfMipmapLevels > 1 && texture.generateMipMaps;
760
- engine._unpackFlipY(true);
761
- ktx.uploadLevels(texture, texture.generateMipMaps);
762
- texture.width = ktx.pixelWidth;
763
- texture.height = ktx.pixelHeight;
764
- engine._setCubeMapTextureParams(texture, loadMipmap, ktx.numberOfMipmapLevels - 1);
765
- texture.isReady = true;
766
- texture.onLoadedObservable.notifyObservers(texture);
767
- texture.onLoadedObservable.clear();
768
- if (onLoad) {
769
- onLoad();
770
- }
771
- }
772
- /**
773
- * Uploads the 2D texture data to the WebGL texture. It has already been bound once in the callback.
774
- * @param data contains the texture data
775
- * @param texture defines the BabylonJS internal texture
776
- * @param callback defines the method to call once ready to upload
777
- * @param options
778
- */
779
- loadData(data, texture, callback, options) {
780
- if (KhronosTextureContainer.IsValid(data)) {
781
- // Need to invert vScale as invertY via UNPACK_FLIP_Y_WEBGL is not supported by compressed texture
782
- texture._invertVScale = !texture.invertY;
783
- const ktx = new KhronosTextureContainer(data, 1);
784
- const mappedFormat = mapSRGBToLinear(ktx.glInternalFormat);
785
- if (mappedFormat) {
786
- texture.format = mappedFormat;
787
- texture._useSRGBBuffer = texture.getEngine()._getUseSRGBBuffer(true, texture.generateMipMaps);
788
- texture._gammaSpace = true;
789
- }
790
- else {
791
- texture.format = ktx.glInternalFormat;
792
- }
793
- callback(ktx.pixelWidth, ktx.pixelHeight, texture.generateMipMaps, true, () => {
794
- ktx.uploadLevels(texture, texture.generateMipMaps);
795
- }, ktx.isInvalid);
796
- }
797
- else if (KhronosTextureContainer2.IsValid(data)) {
798
- const ktx2 = new KhronosTextureContainer2(texture.getEngine());
799
- ktx2._uploadAsync(data, texture, options).then(() => {
800
- callback(texture.width, texture.height, texture.generateMipMaps, true, () => { }, false);
801
- }, (error) => {
802
- Logger.Warn(`Failed to load KTX2 texture data: ${error.message}`);
803
- callback(0, 0, false, false, () => { }, true);
804
- });
805
- }
806
- else {
807
- Logger.Error("texture missing KTX identifier");
808
- callback(0, 0, false, false, () => { }, true);
809
- }
810
- }
811
- }
812
-
813
- export { _KTXTextureLoader };
814
- //# sourceMappingURL=ktxTextureLoader-B4pmAFQl.esm.js.map