@babylonjs/viewer 7.40.4-alpha → 7.40.4

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-B7tVMCka.esm.min.js +0 -2
  198. package/dist/chunks/EXT_lights_ies-B7tVMCka.esm.min.js.map +0 -1
  199. package/dist/chunks/EXT_lights_ies-T0Tkc0j0.esm.js +0 -84
  200. package/dist/chunks/EXT_lights_ies-T0Tkc0j0.esm.js.map +0 -1
  201. package/dist/chunks/EXT_lights_image_based-CyoPcoDC.esm.min.js +0 -2
  202. package/dist/chunks/EXT_lights_image_based-CyoPcoDC.esm.min.js.map +0 -1
  203. package/dist/chunks/EXT_lights_image_based-TRLY00MY.esm.js +0 -171
  204. package/dist/chunks/EXT_lights_image_based-TRLY00MY.esm.js.map +0 -1
  205. package/dist/chunks/EXT_mesh_gpu_instancing-CNSWr-2o.esm.js +0 -86
  206. package/dist/chunks/EXT_mesh_gpu_instancing-CNSWr-2o.esm.js.map +0 -1
  207. package/dist/chunks/EXT_mesh_gpu_instancing-DvkytavO.esm.min.js +0 -2
  208. package/dist/chunks/EXT_mesh_gpu_instancing-DvkytavO.esm.min.js.map +0 -1
  209. package/dist/chunks/EXT_meshopt_compression-C5Jf55Kx.esm.min.js +0 -2
  210. package/dist/chunks/EXT_meshopt_compression-C5Jf55Kx.esm.min.js.map +0 -1
  211. package/dist/chunks/EXT_meshopt_compression-CWVLJCmT.esm.js +0 -134
  212. package/dist/chunks/EXT_meshopt_compression-CWVLJCmT.esm.js.map +0 -1
  213. package/dist/chunks/EXT_texture_avif-Bv2Pa-Lr.esm.js +0 -44
  214. package/dist/chunks/EXT_texture_avif-Bv2Pa-Lr.esm.js.map +0 -1
  215. package/dist/chunks/EXT_texture_avif-DZmsorD-.esm.min.js +0 -2
  216. package/dist/chunks/EXT_texture_avif-DZmsorD-.esm.min.js.map +0 -1
  217. package/dist/chunks/EXT_texture_webp-CBpWQrqC.esm.js +0 -43
  218. package/dist/chunks/EXT_texture_webp-CBpWQrqC.esm.js.map +0 -1
  219. package/dist/chunks/EXT_texture_webp-D6RSOJSe.esm.min.js +0 -2
  220. package/dist/chunks/EXT_texture_webp-D6RSOJSe.esm.min.js.map +0 -1
  221. package/dist/chunks/ExtrasAsMetadata-6ZohdbjJ.esm.js +0 -64
  222. package/dist/chunks/ExtrasAsMetadata-6ZohdbjJ.esm.js.map +0 -1
  223. package/dist/chunks/ExtrasAsMetadata-CrG2l0Kf.esm.min.js +0 -2
  224. package/dist/chunks/ExtrasAsMetadata-CrG2l0Kf.esm.min.js.map +0 -1
  225. package/dist/chunks/KHR_animation_pointer-Cvu5a-gj.esm.js +0 -352
  226. package/dist/chunks/KHR_animation_pointer-Cvu5a-gj.esm.js.map +0 -1
  227. package/dist/chunks/KHR_animation_pointer-Rk2uzfDp.esm.min.js +0 -2
  228. package/dist/chunks/KHR_animation_pointer-Rk2uzfDp.esm.min.js.map +0 -1
  229. package/dist/chunks/KHR_draco_mesh_compression-BrXprwd5.esm.js +0 -610
  230. package/dist/chunks/KHR_draco_mesh_compression-BrXprwd5.esm.js.map +0 -1
  231. package/dist/chunks/KHR_draco_mesh_compression-Iv3q50MG.esm.min.js +0 -2
  232. package/dist/chunks/KHR_draco_mesh_compression-Iv3q50MG.esm.min.js.map +0 -1
  233. package/dist/chunks/KHR_interactivity-B4iFgkk7.esm.min.js +0 -2
  234. package/dist/chunks/KHR_interactivity-B4iFgkk7.esm.min.js.map +0 -1
  235. package/dist/chunks/KHR_interactivity-Db4iHU65.esm.js +0 -4033
  236. package/dist/chunks/KHR_interactivity-Db4iHU65.esm.js.map +0 -1
  237. package/dist/chunks/KHR_lights_punctual-B7yNiRZy.esm.min.js +0 -2
  238. package/dist/chunks/KHR_lights_punctual-B7yNiRZy.esm.min.js.map +0 -1
  239. package/dist/chunks/KHR_lights_punctual-iZl19DTA.esm.js +0 -581
  240. package/dist/chunks/KHR_lights_punctual-iZl19DTA.esm.js.map +0 -1
  241. package/dist/chunks/KHR_materials_anisotropy-Bk9K0k0q.esm.js +0 -65
  242. package/dist/chunks/KHR_materials_anisotropy-Bk9K0k0q.esm.js.map +0 -1
  243. package/dist/chunks/KHR_materials_anisotropy-DlDnL4o4.esm.min.js +0 -2
  244. package/dist/chunks/KHR_materials_anisotropy-DlDnL4o4.esm.min.js.map +0 -1
  245. package/dist/chunks/KHR_materials_clearcoat-BrT4VgMS.esm.min.js +0 -2
  246. package/dist/chunks/KHR_materials_clearcoat-BrT4VgMS.esm.min.js.map +0 -1
  247. package/dist/chunks/KHR_materials_clearcoat-DXAyxIfA.esm.js +0 -96
  248. package/dist/chunks/KHR_materials_clearcoat-DXAyxIfA.esm.js.map +0 -1
  249. package/dist/chunks/KHR_materials_diffuse_transmission-CRqI4Umg.esm.js +0 -97
  250. package/dist/chunks/KHR_materials_diffuse_transmission-CRqI4Umg.esm.js.map +0 -1
  251. package/dist/chunks/KHR_materials_diffuse_transmission-jyVvmpFx.esm.min.js +0 -2
  252. package/dist/chunks/KHR_materials_diffuse_transmission-jyVvmpFx.esm.min.js.map +0 -1
  253. package/dist/chunks/KHR_materials_dispersion-BwXQSsRC.esm.min.js +0 -2
  254. package/dist/chunks/KHR_materials_dispersion-BwXQSsRC.esm.min.js.map +0 -1
  255. package/dist/chunks/KHR_materials_dispersion-DTMaHZal.esm.js +0 -62
  256. package/dist/chunks/KHR_materials_dispersion-DTMaHZal.esm.js.map +0 -1
  257. package/dist/chunks/KHR_materials_emissive_strength-BCWSR6Zg.esm.js +0 -55
  258. package/dist/chunks/KHR_materials_emissive_strength-BCWSR6Zg.esm.js.map +0 -1
  259. package/dist/chunks/KHR_materials_emissive_strength-dEqNWrU4.esm.min.js +0 -2
  260. package/dist/chunks/KHR_materials_emissive_strength-dEqNWrU4.esm.min.js.map +0 -1
  261. package/dist/chunks/KHR_materials_ior-DXmoDlX8.esm.min.js +0 -2
  262. package/dist/chunks/KHR_materials_ior-DXmoDlX8.esm.min.js.map +0 -1
  263. package/dist/chunks/KHR_materials_ior-NvWqR2ZR.esm.js +0 -64
  264. package/dist/chunks/KHR_materials_ior-NvWqR2ZR.esm.js.map +0 -1
  265. package/dist/chunks/KHR_materials_iridescence-2VKZo_Mv.esm.min.js +0 -2
  266. package/dist/chunks/KHR_materials_iridescence-2VKZo_Mv.esm.min.js.map +0 -1
  267. package/dist/chunks/KHR_materials_iridescence-B2wLtYQ4.esm.js +0 -72
  268. package/dist/chunks/KHR_materials_iridescence-B2wLtYQ4.esm.js.map +0 -1
  269. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-DYK5fci0.esm.js +0 -81
  270. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-DYK5fci0.esm.js.map +0 -1
  271. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-PlzNRHwZ.esm.min.js +0 -2
  272. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-PlzNRHwZ.esm.min.js.map +0 -1
  273. package/dist/chunks/KHR_materials_sheen-CvA19viC.esm.min.js +0 -2
  274. package/dist/chunks/KHR_materials_sheen-CvA19viC.esm.min.js.map +0 -1
  275. package/dist/chunks/KHR_materials_sheen-DY8Hlw2C.esm.js +0 -85
  276. package/dist/chunks/KHR_materials_sheen-DY8Hlw2C.esm.js.map +0 -1
  277. package/dist/chunks/KHR_materials_specular-DPankAYO.esm.js +0 -75
  278. package/dist/chunks/KHR_materials_specular-DPankAYO.esm.js.map +0 -1
  279. package/dist/chunks/KHR_materials_specular-SFjYTaHn.esm.min.js +0 -2
  280. package/dist/chunks/KHR_materials_specular-SFjYTaHn.esm.min.js.map +0 -1
  281. package/dist/chunks/KHR_materials_transmission-CBvCfGeN.esm.js +0 -307
  282. package/dist/chunks/KHR_materials_transmission-CBvCfGeN.esm.js.map +0 -1
  283. package/dist/chunks/KHR_materials_transmission-DeRHqgMd.esm.min.js +0 -2
  284. package/dist/chunks/KHR_materials_transmission-DeRHqgMd.esm.min.js.map +0 -1
  285. package/dist/chunks/KHR_materials_unlit-Dp-VzfY2.esm.min.js +0 -2
  286. package/dist/chunks/KHR_materials_unlit-Dp-VzfY2.esm.min.js.map +0 -1
  287. package/dist/chunks/KHR_materials_unlit-xG3eIsVn.esm.js +0 -74
  288. package/dist/chunks/KHR_materials_unlit-xG3eIsVn.esm.js.map +0 -1
  289. package/dist/chunks/KHR_materials_variants-DtTs7enl.esm.min.js +0 -2
  290. package/dist/chunks/KHR_materials_variants-DtTs7enl.esm.min.js.map +0 -1
  291. package/dist/chunks/KHR_materials_variants-POauQPs7.esm.js +0 -262
  292. package/dist/chunks/KHR_materials_variants-POauQPs7.esm.js.map +0 -1
  293. package/dist/chunks/KHR_materials_volume-BO1lvsUq.esm.min.js +0 -2
  294. package/dist/chunks/KHR_materials_volume-BO1lvsUq.esm.min.js.map +0 -1
  295. package/dist/chunks/KHR_materials_volume-BqCunks7.esm.js +0 -87
  296. package/dist/chunks/KHR_materials_volume-BqCunks7.esm.js.map +0 -1
  297. package/dist/chunks/KHR_mesh_quantization-3ON-a5Bz.esm.js +0 -26
  298. package/dist/chunks/KHR_mesh_quantization-3ON-a5Bz.esm.js.map +0 -1
  299. package/dist/chunks/KHR_mesh_quantization-C1uR5Lci.esm.min.js +0 -2
  300. package/dist/chunks/KHR_mesh_quantization-C1uR5Lci.esm.min.js.map +0 -1
  301. package/dist/chunks/KHR_node_hoverability-CZIi0X9e.esm.js +0 -39
  302. package/dist/chunks/KHR_node_hoverability-CZIi0X9e.esm.js.map +0 -1
  303. package/dist/chunks/KHR_node_hoverability-gPD0oS5c.esm.min.js +0 -2
  304. package/dist/chunks/KHR_node_hoverability-gPD0oS5c.esm.min.js.map +0 -1
  305. package/dist/chunks/KHR_node_visibility-B5fFI1TX.esm.js +0 -46
  306. package/dist/chunks/KHR_node_visibility-B5fFI1TX.esm.js.map +0 -1
  307. package/dist/chunks/KHR_node_visibility-DPw-0W4p.esm.min.js +0 -2
  308. package/dist/chunks/KHR_node_visibility-DPw-0W4p.esm.min.js.map +0 -1
  309. package/dist/chunks/KHR_texture_basisu-D6tStneN.esm.min.js +0 -2
  310. package/dist/chunks/KHR_texture_basisu-D6tStneN.esm.min.js.map +0 -1
  311. package/dist/chunks/KHR_texture_basisu-Did7TM-4.esm.js +0 -43
  312. package/dist/chunks/KHR_texture_basisu-Did7TM-4.esm.js.map +0 -1
  313. package/dist/chunks/KHR_texture_transform-Da5NeRUm.esm.js +0 -63
  314. package/dist/chunks/KHR_texture_transform-Da5NeRUm.esm.js.map +0 -1
  315. package/dist/chunks/KHR_texture_transform-jNMzm3zb.esm.min.js +0 -2
  316. package/dist/chunks/KHR_texture_transform-jNMzm3zb.esm.min.js.map +0 -1
  317. package/dist/chunks/KHR_xmp_json_ld-D514my_a.esm.js +0 -51
  318. package/dist/chunks/KHR_xmp_json_ld-D514my_a.esm.js.map +0 -1
  319. package/dist/chunks/KHR_xmp_json_ld-D5Gbko_w.esm.min.js +0 -2
  320. package/dist/chunks/KHR_xmp_json_ld-D5Gbko_w.esm.min.js.map +0 -1
  321. package/dist/chunks/MSFT_audio_emitter-CiB3yG6v.esm.js +0 -2201
  322. package/dist/chunks/MSFT_audio_emitter-CiB3yG6v.esm.js.map +0 -1
  323. package/dist/chunks/MSFT_audio_emitter-Cn-DCgMh.esm.min.js +0 -2
  324. package/dist/chunks/MSFT_audio_emitter-Cn-DCgMh.esm.min.js.map +0 -1
  325. package/dist/chunks/MSFT_lod-BDP9fUoB.esm.js +0 -337
  326. package/dist/chunks/MSFT_lod-BDP9fUoB.esm.js.map +0 -1
  327. package/dist/chunks/MSFT_lod-BEbIdncN.esm.min.js +0 -2
  328. package/dist/chunks/MSFT_lod-BEbIdncN.esm.min.js.map +0 -1
  329. package/dist/chunks/MSFT_minecraftMesh-jASzndfE.esm.min.js +0 -2
  330. package/dist/chunks/MSFT_minecraftMesh-jASzndfE.esm.min.js.map +0 -1
  331. package/dist/chunks/MSFT_minecraftMesh-mKnNUrKI.esm.js +0 -46
  332. package/dist/chunks/MSFT_minecraftMesh-mKnNUrKI.esm.js.map +0 -1
  333. package/dist/chunks/MSFT_sRGBFactors-B1Bk1U5N.esm.min.js +0 -2
  334. package/dist/chunks/MSFT_sRGBFactors-B1Bk1U5N.esm.min.js.map +0 -1
  335. package/dist/chunks/MSFT_sRGBFactors-IZnSmmDU.esm.js +0 -47
  336. package/dist/chunks/MSFT_sRGBFactors-IZnSmmDU.esm.js.map +0 -1
  337. package/dist/chunks/animationGroup-B1YyqoTa.esm.js +0 -2482
  338. package/dist/chunks/animationGroup-B1YyqoTa.esm.js.map +0 -1
  339. package/dist/chunks/animationGroup-C9C7qST_.esm.min.js +0 -2
  340. package/dist/chunks/animationGroup-C9C7qST_.esm.min.js.map +0 -1
  341. package/dist/chunks/assetContainer-BzlRl_4x.esm.js +0 -1720
  342. package/dist/chunks/assetContainer-BzlRl_4x.esm.js.map +0 -1
  343. package/dist/chunks/assetContainer-D7C3a-Xn.esm.min.js +0 -2
  344. package/dist/chunks/assetContainer-D7C3a-Xn.esm.min.js.map +0 -1
  345. package/dist/chunks/audioEngine-BZB34VjD.esm.js +0 -305
  346. package/dist/chunks/audioEngine-BZB34VjD.esm.js.map +0 -1
  347. package/dist/chunks/audioEngine-BoxJPZL7.esm.min.js +0 -2
  348. package/dist/chunks/audioEngine-BoxJPZL7.esm.min.js.map +0 -1
  349. package/dist/chunks/bakedVertexAnimation-BQki1eZ4.esm.min.js +0 -2
  350. package/dist/chunks/bakedVertexAnimation-BQki1eZ4.esm.min.js.map +0 -1
  351. package/dist/chunks/bakedVertexAnimation-DpSHNKcC.esm.js +0 -114
  352. package/dist/chunks/bakedVertexAnimation-DpSHNKcC.esm.js.map +0 -1
  353. package/dist/chunks/basisTextureLoader-C3RlzqZl.esm.min.js +0 -2
  354. package/dist/chunks/basisTextureLoader-C3RlzqZl.esm.min.js.map +0 -1
  355. package/dist/chunks/basisTextureLoader-D6uyehp2.esm.js +0 -600
  356. package/dist/chunks/basisTextureLoader-D6uyehp2.esm.js.map +0 -1
  357. package/dist/chunks/dds-C1QgDMMC.esm.min.js +0 -2
  358. package/dist/chunks/dds-C1QgDMMC.esm.min.js.map +0 -1
  359. package/dist/chunks/dds-zApWiwah.esm.js +0 -540
  360. package/dist/chunks/dds-zApWiwah.esm.js.map +0 -1
  361. package/dist/chunks/ddsTextureLoader-CSYQAUdw.esm.js +0 -88
  362. package/dist/chunks/ddsTextureLoader-CSYQAUdw.esm.js.map +0 -1
  363. package/dist/chunks/ddsTextureLoader-Dyl2CjaG.esm.min.js +0 -2
  364. package/dist/chunks/ddsTextureLoader-Dyl2CjaG.esm.min.js.map +0 -1
  365. package/dist/chunks/decalFragment-BbsT8PSx.esm.min.js +0 -2
  366. package/dist/chunks/decalFragment-BbsT8PSx.esm.min.js.map +0 -1
  367. package/dist/chunks/decalFragment-DqgT4NiX.esm.js +0 -18
  368. package/dist/chunks/decalFragment-DqgT4NiX.esm.js.map +0 -1
  369. package/dist/chunks/default.fragment-Bpw23SLq.esm.min.js +0 -2
  370. package/dist/chunks/default.fragment-Bpw23SLq.esm.min.js.map +0 -1
  371. package/dist/chunks/default.fragment-C8lcinV9.esm.js +0 -446
  372. package/dist/chunks/default.fragment-C8lcinV9.esm.js.map +0 -1
  373. package/dist/chunks/default.fragment-De3FJCJD.esm.js +0 -515
  374. package/dist/chunks/default.fragment-De3FJCJD.esm.js.map +0 -1
  375. package/dist/chunks/default.fragment-b__nAv93.esm.min.js +0 -2
  376. package/dist/chunks/default.fragment-b__nAv93.esm.min.js.map +0 -1
  377. package/dist/chunks/default.vertex-BnpZVKdz.esm.min.js +0 -2
  378. package/dist/chunks/default.vertex-BnpZVKdz.esm.min.js.map +0 -1
  379. package/dist/chunks/default.vertex-CD2qxrmB.esm.js +0 -190
  380. package/dist/chunks/default.vertex-CD2qxrmB.esm.js.map +0 -1
  381. package/dist/chunks/default.vertex-CN5WYROZ.esm.min.js +0 -2
  382. package/dist/chunks/default.vertex-CN5WYROZ.esm.min.js.map +0 -1
  383. package/dist/chunks/default.vertex-DRHq60qX.esm.js +0 -211
  384. package/dist/chunks/default.vertex-DRHq60qX.esm.js.map +0 -1
  385. package/dist/chunks/defaultUboDeclaration-C0gMCjYL.esm.min.js +0 -2
  386. package/dist/chunks/defaultUboDeclaration-C0gMCjYL.esm.min.js.map +0 -1
  387. package/dist/chunks/defaultUboDeclaration-CGRrluBg.esm.min.js +0 -2
  388. package/dist/chunks/defaultUboDeclaration-CGRrluBg.esm.min.js.map +0 -1
  389. package/dist/chunks/defaultUboDeclaration-DCybxQ0F.esm.js +0 -13
  390. package/dist/chunks/defaultUboDeclaration-DCybxQ0F.esm.js.map +0 -1
  391. package/dist/chunks/defaultUboDeclaration-xxIrKyXf.esm.js +0 -15
  392. package/dist/chunks/defaultUboDeclaration-xxIrKyXf.esm.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-BOVGklo2.esm.min.js +0 -2
  398. package/dist/chunks/dumpTools-BOVGklo2.esm.min.js.map +0 -1
  399. package/dist/chunks/dumpTools-Dy-fD64p.esm.js +0 -200
  400. package/dist/chunks/dumpTools-Dy-fD64p.esm.js.map +0 -1
  401. package/dist/chunks/engine-CBGABL2W.esm.min.js +0 -2
  402. package/dist/chunks/engine-CBGABL2W.esm.min.js.map +0 -1
  403. package/dist/chunks/engine-D9Sn-BC6.esm.js +0 -2213
  404. package/dist/chunks/engine-D9Sn-BC6.esm.js.map +0 -1
  405. package/dist/chunks/engine.common-BM1GAef8.esm.js +0 -1162
  406. package/dist/chunks/engine.common-BM1GAef8.esm.js.map +0 -1
  407. package/dist/chunks/engine.common-xMH7x2b0.esm.min.js +0 -2
  408. package/dist/chunks/engine.common-xMH7x2b0.esm.min.js.map +0 -1
  409. package/dist/chunks/envTextureLoader-BRdNaVH2.esm.min.js +0 -2
  410. package/dist/chunks/envTextureLoader-BRdNaVH2.esm.min.js.map +0 -1
  411. package/dist/chunks/envTextureLoader-DT_xwrde.esm.js +0 -64
  412. package/dist/chunks/envTextureLoader-DT_xwrde.esm.js.map +0 -1
  413. package/dist/chunks/environmentTextureTools-BxWsgzT8.esm.min.js +0 -2
  414. package/dist/chunks/environmentTextureTools-BxWsgzT8.esm.min.js.map +0 -1
  415. package/dist/chunks/environmentTextureTools-DuNLB_SE.esm.js +0 -382
  416. package/dist/chunks/environmentTextureTools-DuNLB_SE.esm.js.map +0 -1
  417. package/dist/chunks/exrTextureLoader-BBL1-v_g.esm.min.js +0 -2
  418. package/dist/chunks/exrTextureLoader-BBL1-v_g.esm.min.js.map +0 -1
  419. package/dist/chunks/exrTextureLoader-CUiWw4Oh.esm.js +0 -1683
  420. package/dist/chunks/exrTextureLoader-CUiWw4Oh.esm.js.map +0 -1
  421. package/dist/chunks/fogFragment-BCz1GIrJ.esm.min.js +0 -2
  422. package/dist/chunks/fogFragment-BCz1GIrJ.esm.min.js.map +0 -1
  423. package/dist/chunks/fogFragment-BQLWFsYl.esm.min.js +0 -2
  424. package/dist/chunks/fogFragment-BQLWFsYl.esm.min.js.map +0 -1
  425. package/dist/chunks/fogFragment-DANl-YQk.esm.js +0 -102
  426. package/dist/chunks/fogFragment-DANl-YQk.esm.js.map +0 -1
  427. package/dist/chunks/fogFragment-DptoygQ5.esm.js +0 -101
  428. package/dist/chunks/fogFragment-DptoygQ5.esm.js.map +0 -1
  429. package/dist/chunks/fresnelFunction-3-z89NGn.esm.js +0 -12
  430. package/dist/chunks/fresnelFunction-3-z89NGn.esm.js.map +0 -1
  431. package/dist/chunks/fresnelFunction-CbnLfwWn.esm.min.js +0 -2
  432. package/dist/chunks/fresnelFunction-CbnLfwWn.esm.min.js.map +0 -1
  433. package/dist/chunks/glTFLoader-Qw5JObwf.esm.js +0 -7658
  434. package/dist/chunks/glTFLoader-Qw5JObwf.esm.js.map +0 -1
  435. package/dist/chunks/glTFLoader-iKlvKEG-.esm.min.js +0 -2
  436. package/dist/chunks/glTFLoader-iKlvKEG-.esm.min.js.map +0 -1
  437. package/dist/chunks/glTFLoaderAnimation-BCUZthxT.esm.js +0 -77
  438. package/dist/chunks/glTFLoaderAnimation-BCUZthxT.esm.js.map +0 -1
  439. package/dist/chunks/glTFLoaderAnimation-DnTkRibM.esm.min.js +0 -2
  440. package/dist/chunks/glTFLoaderAnimation-DnTkRibM.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-19PWyV81.esm.js +0 -34
  446. package/dist/chunks/harmonicsFunctions-19PWyV81.esm.js.map +0 -1
  447. package/dist/chunks/harmonicsFunctions-D4sp7bHN.esm.js +0 -35
  448. package/dist/chunks/harmonicsFunctions-D4sp7bHN.esm.js.map +0 -1
  449. package/dist/chunks/harmonicsFunctions-DSpaTpH7.esm.min.js +0 -2
  450. package/dist/chunks/harmonicsFunctions-DSpaTpH7.esm.min.js.map +0 -1
  451. package/dist/chunks/harmonicsFunctions-DvH68s1g.esm.min.js +0 -2
  452. package/dist/chunks/harmonicsFunctions-DvH68s1g.esm.min.js.map +0 -1
  453. package/dist/chunks/hdrTextureLoader-ChbZ5_1g.esm.min.js +0 -2
  454. package/dist/chunks/hdrTextureLoader-ChbZ5_1g.esm.min.js.map +0 -1
  455. package/dist/chunks/hdrTextureLoader-OJaopXAb.esm.js +0 -253
  456. package/dist/chunks/hdrTextureLoader-OJaopXAb.esm.js.map +0 -1
  457. package/dist/chunks/helperFunctions-CNCeKea7.esm.js +0 -81
  458. package/dist/chunks/helperFunctions-CNCeKea7.esm.js.map +0 -1
  459. package/dist/chunks/helperFunctions-Crs36Q3w.esm.js +0 -109
  460. package/dist/chunks/helperFunctions-Crs36Q3w.esm.js.map +0 -1
  461. package/dist/chunks/helperFunctions-DKz6om6i.esm.min.js +0 -2
  462. package/dist/chunks/helperFunctions-DKz6om6i.esm.min.js.map +0 -1
  463. package/dist/chunks/helperFunctions-bZhuioWn.esm.min.js +0 -2
  464. package/dist/chunks/helperFunctions-bZhuioWn.esm.min.js.map +0 -1
  465. package/dist/chunks/iesTextureLoader-BTOaWdIK.esm.js +0 -189
  466. package/dist/chunks/iesTextureLoader-BTOaWdIK.esm.js.map +0 -1
  467. package/dist/chunks/iesTextureLoader-CKnu1maC.esm.min.js +0 -2
  468. package/dist/chunks/iesTextureLoader-CKnu1maC.esm.min.js.map +0 -1
  469. package/dist/chunks/index-5L5wXyrx.esm.js +0 -74870
  470. package/dist/chunks/index-5L5wXyrx.esm.js.map +0 -1
  471. package/dist/chunks/index-B5KLkjYm.esm.min.js +0 -57
  472. package/dist/chunks/index-B5KLkjYm.esm.min.js.map +0 -1
  473. package/dist/chunks/ktxTextureLoader-CMfHt5rp.esm.js +0 -814
  474. package/dist/chunks/ktxTextureLoader-CMfHt5rp.esm.js.map +0 -1
  475. package/dist/chunks/ktxTextureLoader-DCyzShol.esm.min.js +0 -2
  476. package/dist/chunks/ktxTextureLoader-DCyzShol.esm.min.js.map +0 -1
  477. package/dist/chunks/logDepthDeclaration-8CuoGLY6.esm.js +0 -35
  478. package/dist/chunks/logDepthDeclaration-8CuoGLY6.esm.js.map +0 -1
  479. package/dist/chunks/logDepthDeclaration-BC68Ktb0.esm.js +0 -11
  480. package/dist/chunks/logDepthDeclaration-BC68Ktb0.esm.js.map +0 -1
  481. package/dist/chunks/logDepthDeclaration-CgPuLaM9.esm.min.js +0 -2
  482. package/dist/chunks/logDepthDeclaration-CgPuLaM9.esm.min.js.map +0 -1
  483. package/dist/chunks/logDepthDeclaration-iNYm9mSn.esm.min.js +0 -2
  484. package/dist/chunks/logDepthDeclaration-iNYm9mSn.esm.min.js.map +0 -1
  485. package/dist/chunks/logDepthVertex-BOepIJij.esm.js +0 -77
  486. package/dist/chunks/logDepthVertex-BOepIJij.esm.js.map +0 -1
  487. package/dist/chunks/logDepthVertex-Bno6ozc-.esm.min.js +0 -2
  488. package/dist/chunks/logDepthVertex-Bno6ozc-.esm.min.js.map +0 -1
  489. package/dist/chunks/logDepthVertex-CU3WBwOA.esm.js +0 -81
  490. package/dist/chunks/logDepthVertex-CU3WBwOA.esm.js.map +0 -1
  491. package/dist/chunks/logDepthVertex-DjeubcPn.esm.min.js +0 -2
  492. package/dist/chunks/logDepthVertex-DjeubcPn.esm.min.js.map +0 -1
  493. package/dist/chunks/mainUVVaryingDeclaration-C_Am-o4e.esm.js +0 -11
  494. package/dist/chunks/mainUVVaryingDeclaration-C_Am-o4e.esm.js.map +0 -1
  495. package/dist/chunks/mainUVVaryingDeclaration-CuSqEhkE.esm.min.js +0 -2
  496. package/dist/chunks/mainUVVaryingDeclaration-CuSqEhkE.esm.min.js.map +0 -1
  497. package/dist/chunks/mainUVVaryingDeclaration-DxqJq0-m.esm.js +0 -11
  498. package/dist/chunks/mainUVVaryingDeclaration-DxqJq0-m.esm.js.map +0 -1
  499. package/dist/chunks/mainUVVaryingDeclaration-oZF0xIut.esm.min.js +0 -2
  500. package/dist/chunks/mainUVVaryingDeclaration-oZF0xIut.esm.min.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-BWuUYN5-.esm.js +0 -26
  506. package/dist/chunks/meshUboDeclaration-BWuUYN5-.esm.js.map +0 -1
  507. package/dist/chunks/meshUboDeclaration-D-9f-79D.esm.min.js +0 -2
  508. package/dist/chunks/meshUboDeclaration-D-9f-79D.esm.min.js.map +0 -1
  509. package/dist/chunks/objFileLoader-B3PzHlWB.esm.min.js +0 -2
  510. package/dist/chunks/objFileLoader-B3PzHlWB.esm.min.js.map +0 -1
  511. package/dist/chunks/objFileLoader-BjHr-pn1.esm.js +0 -1338
  512. package/dist/chunks/objFileLoader-BjHr-pn1.esm.js.map +0 -1
  513. package/dist/chunks/oitFragment-BypZDJVo.esm.min.js +0 -2
  514. package/dist/chunks/oitFragment-BypZDJVo.esm.min.js.map +0 -1
  515. package/dist/chunks/oitFragment-D3g8w3hO.esm.js +0 -1078
  516. package/dist/chunks/oitFragment-D3g8w3hO.esm.js.map +0 -1
  517. package/dist/chunks/oitFragment-Db3h4DV5.esm.min.js +0 -2
  518. package/dist/chunks/oitFragment-Db3h4DV5.esm.min.js.map +0 -1
  519. package/dist/chunks/oitFragment-tQJLudg5.esm.js +0 -1240
  520. package/dist/chunks/oitFragment-tQJLudg5.esm.js.map +0 -1
  521. package/dist/chunks/pass.fragment-C8CWeVkM.esm.js +0 -15
  522. package/dist/chunks/pass.fragment-C8CWeVkM.esm.js.map +0 -1
  523. package/dist/chunks/pass.fragment-CSK2ynPe.esm.js +0 -15
  524. package/dist/chunks/pass.fragment-CSK2ynPe.esm.js.map +0 -1
  525. package/dist/chunks/pass.fragment-CdgLWa1Q.esm.min.js +0 -2
  526. package/dist/chunks/pass.fragment-CdgLWa1Q.esm.min.js.map +0 -1
  527. package/dist/chunks/pass.fragment-ONNyQPrD.esm.min.js +0 -2
  528. package/dist/chunks/pass.fragment-ONNyQPrD.esm.min.js.map +0 -1
  529. package/dist/chunks/pbr.fragment-Be9mZgL7.esm.js +0 -3269
  530. package/dist/chunks/pbr.fragment-Be9mZgL7.esm.js.map +0 -1
  531. package/dist/chunks/pbr.fragment-C13t4f7Z.esm.min.js +0 -2
  532. package/dist/chunks/pbr.fragment-C13t4f7Z.esm.min.js.map +0 -1
  533. package/dist/chunks/pbr.fragment-CiAe6mgr.esm.js +0 -3222
  534. package/dist/chunks/pbr.fragment-CiAe6mgr.esm.js.map +0 -1
  535. package/dist/chunks/pbr.fragment-I66pqwoX.esm.min.js +0 -2
  536. package/dist/chunks/pbr.fragment-I66pqwoX.esm.min.js.map +0 -1
  537. package/dist/chunks/pbr.vertex-BlqPEcZe.esm.js +0 -223
  538. package/dist/chunks/pbr.vertex-BlqPEcZe.esm.js.map +0 -1
  539. package/dist/chunks/pbr.vertex-C1r_QFvZ.esm.min.js +0 -2
  540. package/dist/chunks/pbr.vertex-C1r_QFvZ.esm.min.js.map +0 -1
  541. package/dist/chunks/pbr.vertex-DE9NTHal.esm.min.js +0 -2
  542. package/dist/chunks/pbr.vertex-DE9NTHal.esm.min.js.map +0 -1
  543. package/dist/chunks/pbr.vertex-oQpu2zia.esm.js +0 -348
  544. package/dist/chunks/pbr.vertex-oQpu2zia.esm.js.map +0 -1
  545. package/dist/chunks/postprocess.vertex-D3XLqa14.esm.js +0 -20
  546. package/dist/chunks/postprocess.vertex-D3XLqa14.esm.js.map +0 -1
  547. package/dist/chunks/postprocess.vertex-IkQbrBQH.esm.min.js +0 -2
  548. package/dist/chunks/postprocess.vertex-IkQbrBQH.esm.min.js.map +0 -1
  549. package/dist/chunks/rawTexture-BVf9vm87.esm.js +0 -191
  550. package/dist/chunks/rawTexture-BVf9vm87.esm.js.map +0 -1
  551. package/dist/chunks/rawTexture-CNxyCiVq.esm.min.js +0 -2
  552. package/dist/chunks/rawTexture-CNxyCiVq.esm.min.js.map +0 -1
  553. package/dist/chunks/ray-BLVbie8S.esm.min.js +0 -2
  554. package/dist/chunks/ray-BLVbie8S.esm.min.js.map +0 -1
  555. package/dist/chunks/ray-C7H9vp-x.esm.js +0 -946
  556. package/dist/chunks/ray-C7H9vp-x.esm.js.map +0 -1
  557. package/dist/chunks/rgbdDecode.fragment-9dPOcBOA.esm.min.js +0 -2
  558. package/dist/chunks/rgbdDecode.fragment-9dPOcBOA.esm.min.js.map +0 -1
  559. package/dist/chunks/rgbdDecode.fragment-ApyH83v_.esm.js +0 -13
  560. package/dist/chunks/rgbdDecode.fragment-ApyH83v_.esm.js.map +0 -1
  561. package/dist/chunks/rgbdDecode.fragment-Bt75XOUV.esm.min.js +0 -2
  562. package/dist/chunks/rgbdDecode.fragment-Bt75XOUV.esm.min.js.map +0 -1
  563. package/dist/chunks/rgbdDecode.fragment-DDIJs9ID.esm.js +0 -13
  564. package/dist/chunks/rgbdDecode.fragment-DDIJs9ID.esm.js.map +0 -1
  565. package/dist/chunks/rgbdEncode.fragment-CSquf6K4.esm.js +0 -13
  566. package/dist/chunks/rgbdEncode.fragment-CSquf6K4.esm.js.map +0 -1
  567. package/dist/chunks/rgbdEncode.fragment-Cpudy2qT.esm.js +0 -13
  568. package/dist/chunks/rgbdEncode.fragment-Cpudy2qT.esm.js.map +0 -1
  569. package/dist/chunks/rgbdEncode.fragment-DZs59_tV.esm.min.js +0 -2
  570. package/dist/chunks/rgbdEncode.fragment-DZs59_tV.esm.min.js.map +0 -1
  571. package/dist/chunks/rgbdEncode.fragment-Djxd-azW.esm.min.js +0 -2
  572. package/dist/chunks/rgbdEncode.fragment-Djxd-azW.esm.min.js.map +0 -1
  573. package/dist/chunks/splatFileLoader-BkExyfY6.esm.js +0 -3379
  574. package/dist/chunks/splatFileLoader-BkExyfY6.esm.js.map +0 -1
  575. package/dist/chunks/splatFileLoader-DLc_wKu4.esm.min.js +0 -2
  576. package/dist/chunks/splatFileLoader-DLc_wKu4.esm.min.js.map +0 -1
  577. package/dist/chunks/spotLight-CFGRpcFc.esm.js +0 -701
  578. package/dist/chunks/spotLight-CFGRpcFc.esm.js.map +0 -1
  579. package/dist/chunks/spotLight-z5HIEQmM.esm.min.js +0 -2
  580. package/dist/chunks/spotLight-z5HIEQmM.esm.min.js.map +0 -1
  581. package/dist/chunks/standardMaterial-B5u9Vzil.esm.min.js +0 -2
  582. package/dist/chunks/standardMaterial-B5u9Vzil.esm.min.js.map +0 -1
  583. package/dist/chunks/standardMaterial-BJzDZ72T.esm.js +0 -1806
  584. package/dist/chunks/standardMaterial-BJzDZ72T.esm.js.map +0 -1
  585. package/dist/chunks/stlFileLoader-B3Y6u4L6.esm.min.js +0 -2
  586. package/dist/chunks/stlFileLoader-B3Y6u4L6.esm.min.js.map +0 -1
  587. package/dist/chunks/stlFileLoader-Bd1GgkYU.esm.js +0 -238
  588. package/dist/chunks/stlFileLoader-Bd1GgkYU.esm.js.map +0 -1
  589. package/dist/chunks/tgaTextureLoader-BD_A6gyw.esm.min.js +0 -2
  590. package/dist/chunks/tgaTextureLoader-BD_A6gyw.esm.min.js.map +0 -1
  591. package/dist/chunks/tgaTextureLoader-DnUiJRBO.esm.js +0 -349
  592. package/dist/chunks/tgaTextureLoader-DnUiJRBO.esm.js.map +0 -1
  593. package/dist/chunks/thinEngine-CRNAFHqA.esm.min.js +0 -2
  594. package/dist/chunks/thinEngine-CRNAFHqA.esm.min.js.map +0 -1
  595. package/dist/chunks/thinEngine-DGyFDxzW.esm.js +0 -3853
  596. package/dist/chunks/thinEngine-DGyFDxzW.esm.js.map +0 -1
  597. package/dist/chunks/thinInstanceMesh-B-f1KNB2.esm.min.js +0 -2
  598. package/dist/chunks/thinInstanceMesh-B-f1KNB2.esm.min.js.map +0 -1
  599. package/dist/chunks/thinInstanceMesh-D-cofgbF.esm.js +0 -314
  600. package/dist/chunks/thinInstanceMesh-D-cofgbF.esm.js.map +0 -1
  601. package/dist/chunks/vertexColorMixing-BUqoiJkS.esm.min.js +0 -2
  602. package/dist/chunks/vertexColorMixing-BUqoiJkS.esm.min.js.map +0 -1
  603. package/dist/chunks/vertexColorMixing-CBpXxGvM.esm.js +0 -421
  604. package/dist/chunks/vertexColorMixing-CBpXxGvM.esm.js.map +0 -1
  605. package/dist/chunks/vertexColorMixing-ChUhO7eS.esm.js +0 -531
  606. package/dist/chunks/vertexColorMixing-ChUhO7eS.esm.js.map +0 -1
  607. package/dist/chunks/vertexColorMixing-DbmkfWMo.esm.min.js +0 -2
  608. package/dist/chunks/vertexColorMixing-DbmkfWMo.esm.min.js.map +0 -1
  609. package/dist/chunks/webgpuEngine-DqprhQ4L.esm.js +0 -11538
  610. package/dist/chunks/webgpuEngine-DqprhQ4L.esm.js.map +0 -1
  611. package/dist/chunks/webgpuEngine-LpKjcEuV.esm.min.js +0 -2
  612. package/dist/chunks/webgpuEngine-LpKjcEuV.esm.min.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,55 +0,0 @@
1
- import { a$ as PBRMaterial, aQ as unregisterGLTFExtension, aR as registerGLTFExtension } from './index-5L5wXyrx.esm.js';
2
- import { G as GLTFLoader } from './glTFLoader-Qw5JObwf.esm.js';
3
- import './rawTexture-BVf9vm87.esm.js';
4
- import './assetContainer-BzlRl_4x.esm.js';
5
- import './glTFLoaderAnimation-BCUZthxT.esm.js';
6
-
7
- const NAME = "KHR_materials_emissive_strength";
8
- /**
9
- * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_emissive_strength/README.md)
10
- */
11
- // eslint-disable-next-line @typescript-eslint/naming-convention
12
- class KHR_materials_emissive_strength {
13
- /**
14
- * @internal
15
- */
16
- constructor(loader) {
17
- /**
18
- * The name of this extension.
19
- */
20
- this.name = NAME;
21
- /**
22
- * Defines a number that determines the order the extensions are applied.
23
- */
24
- this.order = 170;
25
- this._loader = loader;
26
- this.enabled = this._loader.isExtensionUsed(NAME);
27
- }
28
- /** @internal */
29
- dispose() {
30
- this._loader = null;
31
- }
32
- /**
33
- * @internal
34
- */
35
- loadMaterialPropertiesAsync(context, material, babylonMaterial) {
36
- return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
37
- return this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial).then(() => {
38
- this._loadEmissiveProperties(extensionContext, extension, babylonMaterial);
39
- });
40
- });
41
- }
42
- _loadEmissiveProperties(context, properties, babylonMaterial) {
43
- if (!(babylonMaterial instanceof PBRMaterial)) {
44
- throw new Error(`${context}: Material type not supported`);
45
- }
46
- if (properties.emissiveStrength !== undefined) {
47
- babylonMaterial.emissiveIntensity = properties.emissiveStrength;
48
- }
49
- }
50
- }
51
- unregisterGLTFExtension(NAME);
52
- registerGLTFExtension(NAME, true, (loader) => new KHR_materials_emissive_strength(loader));
53
-
54
- export { KHR_materials_emissive_strength };
55
- //# sourceMappingURL=KHR_materials_emissive_strength-BCWSR6Zg.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KHR_materials_emissive_strength-BCWSR6Zg.esm.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_emissive_strength.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_emissive_strength\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_emissive_strength/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_emissive_strength {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 170;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n return this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial).then(() => {\n this._loadEmissiveProperties(extensionContext, extension, babylonMaterial);\n });\n });\n }\n _loadEmissiveProperties(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n if (properties.emissiveStrength !== undefined) {\n babylonMaterial.emissiveIntensity = properties.emissiveStrength;\n }\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_emissive_strength(loader));\n//# sourceMappingURL=KHR_materials_emissive_strength.js.map"],"names":[],"mappings":";;;;;;AAGA,MAAM,IAAI,GAAG,iCAAiC;AAC9C;AACA;AACA;AACA;AACO,MAAM,+BAA+B,CAAC;AAC7C;AACA;AACA;AACA,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,KAAK,GAAG,GAAG;AACxB,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM;AAC7B,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;AACzD;AACA;AACA,IAAI,OAAO,GAAG;AACd,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI;AAC3B;AACA;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE;AACpE,QAAQ,OAAO,UAAU,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,gBAAgB,EAAE,SAAS,KAAK;AAC5G,YAAY,OAAO,IAAI,CAAC,OAAO,CAAC,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,IAAI,CAAC,MAAM;AAC3G,gBAAgB,IAAI,CAAC,uBAAuB,CAAC,gBAAgB,EAAE,SAAS,EAAE,eAAe,CAAC;AAC1F,aAAa,CAAC;AACd,SAAS,CAAC;AACV;AACA,IAAI,uBAAuB,CAAC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE;AAClE,QAAQ,IAAI,EAAE,eAAe,YAAY,WAAW,CAAC,EAAE;AACvD,YAAY,MAAM,IAAI,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAC;AACtE;AACA,QAAQ,IAAI,UAAU,CAAC,gBAAgB,KAAK,SAAS,EAAE;AACvD,YAAY,eAAe,CAAC,iBAAiB,GAAG,UAAU,CAAC,gBAAgB;AAC3E;AACA;AACA;AACA,uBAAuB,CAAC,IAAI,CAAC;AAC7B,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,KAAK,IAAI,+BAA+B,CAAC,MAAM,CAAC,CAAC;;;;"}
@@ -1,2 +0,0 @@
1
- import{a$ as e,aQ as s,aR as i}from"./index-B5KLkjYm.esm.min.js";import{G as t}from"./glTFLoader-iKlvKEG-.esm.min.js";import"./rawTexture-CNxyCiVq.esm.min.js";import"./assetContainer-D7C3a-Xn.esm.min.js";import"./glTFLoaderAnimation-DnTkRibM.esm.min.js";const r="KHR_materials_emissive_strength";class o{constructor(e){this.name=r,this.order=170,this._loader=e,this.enabled=this._loader.isExtensionUsed(r)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,s,i){return t.LoadExtensionAsync(e,s,this.name,((t,r)=>this._loader.loadMaterialPropertiesAsync(e,s,i).then((()=>{this._loadEmissiveProperties(t,r,i)}))))}_loadEmissiveProperties(s,i,t){if(!(t instanceof e))throw new Error(`${s}: Material type not supported`);void 0!==i.emissiveStrength&&(t.emissiveIntensity=i.emissiveStrength)}}s(r),i(r,!0,(e=>new o(e)));export{o as KHR_materials_emissive_strength};
2
- //# sourceMappingURL=KHR_materials_emissive_strength-dEqNWrU4.esm.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KHR_materials_emissive_strength-dEqNWrU4.esm.min.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_emissive_strength.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_emissive_strength\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_emissive_strength/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_emissive_strength {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 170;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n return this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial).then(() => {\n this._loadEmissiveProperties(extensionContext, extension, babylonMaterial);\n });\n });\n }\n _loadEmissiveProperties(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n if (properties.emissiveStrength !== undefined) {\n babylonMaterial.emissiveIntensity = properties.emissiveStrength;\n }\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_emissive_strength(loader));\n//# sourceMappingURL=KHR_materials_emissive_strength.js.map"],"names":["NAME","KHR_materials_emissive_strength","constructor","loader","this","name","order","_loader","enabled","isExtensionUsed","dispose","loadMaterialPropertiesAsync","context","material","babylonMaterial","GLTFLoader","LoadExtensionAsync","extensionContext","extension","then","_loadEmissiveProperties","properties","PBRMaterial","Error","undefined","emissiveStrength","emissiveIntensity","unregisterGLTFExtension","registerGLTFExtension"],"mappings":"8PAGA,MAAMA,EAAO,kCAKN,MAAMC,EAIT,WAAAC,CAAYC,GAIRC,KAAKC,KAAOL,EAIZI,KAAKE,MAAQ,IACbF,KAAKG,QAAUJ,EACfC,KAAKI,QAAUJ,KAAKG,QAAQE,gBAAgBT,EACpD,CAEI,OAAAU,GACIN,KAAKG,QAAU,IACvB,CAII,2BAAAI,CAA4BC,EAASC,EAAUC,GAC3C,OAAOC,EAAWC,mBAAmBJ,EAASC,EAAUT,KAAKC,MAAM,CAACY,EAAkBC,IAC3Ed,KAAKG,QAAQI,4BAA4BC,EAASC,EAAUC,GAAiBK,MAAK,KACrFf,KAAKgB,wBAAwBH,EAAkBC,EAAWJ,EAAgB,KAG1F,CACI,uBAAAM,CAAwBR,EAASS,EAAYP,GACzC,KAAMA,aAA2BQ,GAC7B,MAAM,IAAIC,MAAM,GAAGX,uCAEaY,IAAhCH,EAAWI,mBACXX,EAAgBY,kBAAoBL,EAAWI,iBAE3D,EAEAE,EAAwB3B,GACxB4B,EAAsB5B,GAAM,GAAOG,GAAW,IAAIF,EAAgCE"}
@@ -1,2 +0,0 @@
1
- import{a$ as e,aQ as r,aR as s}from"./index-B5KLkjYm.esm.min.js";import{G as o}from"./glTFLoader-iKlvKEG-.esm.min.js";import"./rawTexture-CNxyCiVq.esm.min.js";import"./assetContainer-D7C3a-Xn.esm.min.js";import"./glTFLoaderAnimation-DnTkRibM.esm.min.js";const i="KHR_materials_ior";class t{constructor(e){this.name=i,this.order=180,this._loader=e,this.enabled=this._loader.isExtensionUsed(i)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,r,s){return o.LoadExtensionAsync(e,r,this.name,((o,i)=>{const t=new Array;return t.push(this._loader.loadMaterialPropertiesAsync(e,r,s)),t.push(this._loadIorPropertiesAsync(o,i,s)),Promise.all(t).then((()=>{}))}))}_loadIorPropertiesAsync(r,s,o){if(!(o instanceof e))throw new Error(`${r}: Material type not supported`);return void 0!==s.ior?o.indexOfRefraction=s.ior:o.indexOfRefraction=t._DEFAULT_IOR,Promise.resolve()}}t._DEFAULT_IOR=1.5,r(i),s(i,!0,(e=>new t(e)));export{t as KHR_materials_ior};
2
- //# sourceMappingURL=KHR_materials_ior-DXmoDlX8.esm.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KHR_materials_ior-DXmoDlX8.esm.min.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_ior.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_ior\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_ior/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_ior {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 180;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadIorPropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadIorPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n if (properties.ior !== undefined) {\n babylonMaterial.indexOfRefraction = properties.ior;\n }\n else {\n babylonMaterial.indexOfRefraction = KHR_materials_ior._DEFAULT_IOR;\n }\n return Promise.resolve();\n }\n}\n/**\n * Default ior Value from the spec.\n */\nKHR_materials_ior._DEFAULT_IOR = 1.5;\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_ior(loader));\n//# sourceMappingURL=KHR_materials_ior.js.map"],"names":["NAME","KHR_materials_ior","constructor","loader","this","name","order","_loader","enabled","isExtensionUsed","dispose","loadMaterialPropertiesAsync","context","material","babylonMaterial","GLTFLoader","LoadExtensionAsync","extensionContext","extension","promises","Array","push","_loadIorPropertiesAsync","Promise","all","then","properties","PBRMaterial","Error","undefined","ior","indexOfRefraction","_DEFAULT_IOR","resolve","unregisterGLTFExtension","registerGLTFExtension"],"mappings":"8PAGA,MAAMA,EAAO,oBAKN,MAAMC,EAIT,WAAAC,CAAYC,GAIRC,KAAKC,KAAOL,EAIZI,KAAKE,MAAQ,IACbF,KAAKG,QAAUJ,EACfC,KAAKI,QAAUJ,KAAKG,QAAQE,gBAAgBT,EACpD,CAEI,OAAAU,GACIN,KAAKG,QAAU,IACvB,CAII,2BAAAI,CAA4BC,EAASC,EAAUC,GAC3C,OAAOC,EAAWC,mBAAmBJ,EAASC,EAAUT,KAAKC,MAAM,CAACY,EAAkBC,KAClF,MAAMC,EAAW,IAAIC,MAGrB,OAFAD,EAASE,KAAKjB,KAAKG,QAAQI,4BAA4BC,EAASC,EAAUC,IAC1EK,EAASE,KAAKjB,KAAKkB,wBAAwBL,EAAkBC,EAAWJ,IACjES,QAAQC,IAAIL,GAAUM,MAAK,QAAU,GAExD,CACI,uBAAAH,CAAwBV,EAASc,EAAYZ,GACzC,KAAMA,aAA2Ba,GAC7B,MAAM,IAAIC,MAAM,GAAGhB,kCAQvB,YANuBiB,IAAnBH,EAAWI,IACXhB,EAAgBiB,kBAAoBL,EAAWI,IAG/ChB,EAAgBiB,kBAAoB9B,EAAkB+B,aAEnDT,QAAQU,SACvB,EAKAhC,EAAkB+B,aAAe,IACjCE,EAAwBlC,GACxBmC,EAAsBnC,GAAM,GAAOG,GAAW,IAAIF,EAAkBE"}
@@ -1,64 +0,0 @@
1
- import { a$ as PBRMaterial, aQ as unregisterGLTFExtension, aR as registerGLTFExtension } from './index-5L5wXyrx.esm.js';
2
- import { G as GLTFLoader } from './glTFLoader-Qw5JObwf.esm.js';
3
- import './rawTexture-BVf9vm87.esm.js';
4
- import './assetContainer-BzlRl_4x.esm.js';
5
- import './glTFLoaderAnimation-BCUZthxT.esm.js';
6
-
7
- const NAME = "KHR_materials_ior";
8
- /**
9
- * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_ior/README.md)
10
- */
11
- // eslint-disable-next-line @typescript-eslint/naming-convention
12
- class KHR_materials_ior {
13
- /**
14
- * @internal
15
- */
16
- constructor(loader) {
17
- /**
18
- * The name of this extension.
19
- */
20
- this.name = NAME;
21
- /**
22
- * Defines a number that determines the order the extensions are applied.
23
- */
24
- this.order = 180;
25
- this._loader = loader;
26
- this.enabled = this._loader.isExtensionUsed(NAME);
27
- }
28
- /** @internal */
29
- dispose() {
30
- this._loader = null;
31
- }
32
- /**
33
- * @internal
34
- */
35
- loadMaterialPropertiesAsync(context, material, babylonMaterial) {
36
- return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
37
- const promises = new Array();
38
- promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));
39
- promises.push(this._loadIorPropertiesAsync(extensionContext, extension, babylonMaterial));
40
- return Promise.all(promises).then(() => { });
41
- });
42
- }
43
- _loadIorPropertiesAsync(context, properties, babylonMaterial) {
44
- if (!(babylonMaterial instanceof PBRMaterial)) {
45
- throw new Error(`${context}: Material type not supported`);
46
- }
47
- if (properties.ior !== undefined) {
48
- babylonMaterial.indexOfRefraction = properties.ior;
49
- }
50
- else {
51
- babylonMaterial.indexOfRefraction = KHR_materials_ior._DEFAULT_IOR;
52
- }
53
- return Promise.resolve();
54
- }
55
- }
56
- /**
57
- * Default ior Value from the spec.
58
- */
59
- KHR_materials_ior._DEFAULT_IOR = 1.5;
60
- unregisterGLTFExtension(NAME);
61
- registerGLTFExtension(NAME, true, (loader) => new KHR_materials_ior(loader));
62
-
63
- export { KHR_materials_ior };
64
- //# sourceMappingURL=KHR_materials_ior-NvWqR2ZR.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KHR_materials_ior-NvWqR2ZR.esm.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_ior.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_ior\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_ior/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_ior {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 180;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadIorPropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadIorPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n if (properties.ior !== undefined) {\n babylonMaterial.indexOfRefraction = properties.ior;\n }\n else {\n babylonMaterial.indexOfRefraction = KHR_materials_ior._DEFAULT_IOR;\n }\n return Promise.resolve();\n }\n}\n/**\n * Default ior Value from the spec.\n */\nKHR_materials_ior._DEFAULT_IOR = 1.5;\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_ior(loader));\n//# sourceMappingURL=KHR_materials_ior.js.map"],"names":[],"mappings":";;;;;;AAGA,MAAM,IAAI,GAAG,mBAAmB;AAChC;AACA;AACA;AACA;AACO,MAAM,iBAAiB,CAAC;AAC/B;AACA;AACA;AACA,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,KAAK,GAAG,GAAG;AACxB,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM;AAC7B,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;AACzD;AACA;AACA,IAAI,OAAO,GAAG;AACd,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI;AAC3B;AACA;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE;AACpE,QAAQ,OAAO,UAAU,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,gBAAgB,EAAE,SAAS,KAAK;AAC5G,YAAY,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE;AACxC,YAAY,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC;AACvG,YAAY,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,gBAAgB,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC;AACrG,YAAY,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;AACxD,SAAS,CAAC;AACV;AACA,IAAI,uBAAuB,CAAC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE;AAClE,QAAQ,IAAI,EAAE,eAAe,YAAY,WAAW,CAAC,EAAE;AACvD,YAAY,MAAM,IAAI,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAC;AACtE;AACA,QAAQ,IAAI,UAAU,CAAC,GAAG,KAAK,SAAS,EAAE;AAC1C,YAAY,eAAe,CAAC,iBAAiB,GAAG,UAAU,CAAC,GAAG;AAC9D;AACA,aAAa;AACb,YAAY,eAAe,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,YAAY;AAC9E;AACA,QAAQ,OAAO,OAAO,CAAC,OAAO,EAAE;AAChC;AACA;AACA;AACA;AACA;AACA,iBAAiB,CAAC,YAAY,GAAG,GAAG;AACpC,uBAAuB,CAAC,IAAI,CAAC;AAC7B,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,KAAK,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC;;;;"}
@@ -1,2 +0,0 @@
1
- import{a$ as e,aQ as i,aR as s}from"./index-B5KLkjYm.esm.min.js";import{G as r}from"./glTFLoader-iKlvKEG-.esm.min.js";import"./rawTexture-CNxyCiVq.esm.min.js";import"./assetContainer-D7C3a-Xn.esm.min.js";import"./glTFLoaderAnimation-DnTkRibM.esm.min.js";const n="KHR_materials_iridescence";class c{constructor(e){this.name=n,this.order=195,this._loader=e,this.enabled=this._loader.isExtensionUsed(n)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,i,s){return r.LoadExtensionAsync(e,i,this.name,((r,n)=>{const c=new Array;return c.push(this._loader.loadMaterialPropertiesAsync(e,i,s)),c.push(this._loadIridescencePropertiesAsync(r,n,s)),Promise.all(c).then((()=>{}))}))}_loadIridescencePropertiesAsync(i,s,r){if(!(r instanceof e))throw new Error(`${i}: Material type not supported`);const n=new Array;return r.iridescence.isEnabled=!0,r.iridescence.intensity=s.iridescenceFactor??0,r.iridescence.indexOfRefraction=s.iridescenceIor??s.iridescenceIOR??1.3,r.iridescence.minimumThickness=s.iridescenceThicknessMinimum??100,r.iridescence.maximumThickness=s.iridescenceThicknessMaximum??400,s.iridescenceTexture&&n.push(this._loader.loadTextureInfoAsync(`${i}/iridescenceTexture`,s.iridescenceTexture,(e=>{e.name=`${r.name} (Iridescence)`,r.iridescence.texture=e}))),s.iridescenceThicknessTexture&&n.push(this._loader.loadTextureInfoAsync(`${i}/iridescenceThicknessTexture`,s.iridescenceThicknessTexture,(e=>{e.name=`${r.name} (Iridescence Thickness)`,r.iridescence.thicknessTexture=e}))),Promise.all(n).then((()=>{}))}}i(n),s(n,!0,(e=>new c(e)));export{c as KHR_materials_iridescence};
2
- //# sourceMappingURL=KHR_materials_iridescence-2VKZo_Mv.esm.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KHR_materials_iridescence-2VKZo_Mv.esm.min.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_iridescence.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_iridescence\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_iridescence/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_iridescence {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 195;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadIridescencePropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadIridescencePropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.iridescence.isEnabled = true;\n babylonMaterial.iridescence.intensity = properties.iridescenceFactor ?? 0;\n babylonMaterial.iridescence.indexOfRefraction = properties.iridescenceIor ?? properties.iridescenceIOR ?? 1.3;\n babylonMaterial.iridescence.minimumThickness = properties.iridescenceThicknessMinimum ?? 100;\n babylonMaterial.iridescence.maximumThickness = properties.iridescenceThicknessMaximum ?? 400;\n if (properties.iridescenceTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceTexture`, properties.iridescenceTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Iridescence)`;\n babylonMaterial.iridescence.texture = texture;\n }));\n }\n if (properties.iridescenceThicknessTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceThicknessTexture`, properties.iridescenceThicknessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Iridescence Thickness)`;\n babylonMaterial.iridescence.thicknessTexture = texture;\n }));\n }\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_iridescence(loader));\n//# sourceMappingURL=KHR_materials_iridescence.js.map"],"names":["NAME","KHR_materials_iridescence","constructor","loader","this","name","order","_loader","enabled","isExtensionUsed","dispose","loadMaterialPropertiesAsync","context","material","babylonMaterial","GLTFLoader","LoadExtensionAsync","extensionContext","extension","promises","Array","push","_loadIridescencePropertiesAsync","Promise","all","then","properties","PBRMaterial","Error","iridescence","isEnabled","intensity","iridescenceFactor","indexOfRefraction","iridescenceIor","iridescenceIOR","minimumThickness","iridescenceThicknessMinimum","maximumThickness","iridescenceThicknessMaximum","iridescenceTexture","loadTextureInfoAsync","texture","iridescenceThicknessTexture","thicknessTexture","unregisterGLTFExtension","registerGLTFExtension"],"mappings":"8PAGA,MAAMA,EAAO,4BAKN,MAAMC,EAIT,WAAAC,CAAYC,GAIRC,KAAKC,KAAOL,EAIZI,KAAKE,MAAQ,IACbF,KAAKG,QAAUJ,EACfC,KAAKI,QAAUJ,KAAKG,QAAQE,gBAAgBT,EACpD,CAEI,OAAAU,GACIN,KAAKG,QAAU,IACvB,CAII,2BAAAI,CAA4BC,EAASC,EAAUC,GAC3C,OAAOC,EAAWC,mBAAmBJ,EAASC,EAAUT,KAAKC,MAAM,CAACY,EAAkBC,KAClF,MAAMC,EAAW,IAAIC,MAGrB,OAFAD,EAASE,KAAKjB,KAAKG,QAAQI,4BAA4BC,EAASC,EAAUC,IAC1EK,EAASE,KAAKjB,KAAKkB,gCAAgCL,EAAkBC,EAAWJ,IACzES,QAAQC,IAAIL,GAAUM,MAAK,QAAU,GAExD,CACI,+BAAAH,CAAgCV,EAASc,EAAYZ,GACjD,KAAMA,aAA2Ba,GAC7B,MAAM,IAAIC,MAAM,GAAGhB,kCAEvB,MAAMO,EAAW,IAAIC,MAkBrB,OAjBAN,EAAgBe,YAAYC,WAAY,EACxChB,EAAgBe,YAAYE,UAAYL,EAAWM,mBAAqB,EACxElB,EAAgBe,YAAYI,kBAAoBP,EAAWQ,gBAAkBR,EAAWS,gBAAkB,IAC1GrB,EAAgBe,YAAYO,iBAAmBV,EAAWW,6BAA+B,IACzFvB,EAAgBe,YAAYS,iBAAmBZ,EAAWa,6BAA+B,IACrFb,EAAWc,oBACXrB,EAASE,KAAKjB,KAAKG,QAAQkC,qBAAqB,GAAG7B,uBAA8Bc,EAAWc,oBAAqBE,IAC7GA,EAAQrC,KAAO,GAAGS,EAAgBT,qBAClCS,EAAgBe,YAAYa,QAAUA,CAAO,KAGjDhB,EAAWiB,6BACXxB,EAASE,KAAKjB,KAAKG,QAAQkC,qBAAqB,GAAG7B,gCAAuCc,EAAWiB,6BAA8BD,IAC/HA,EAAQrC,KAAO,GAAGS,EAAgBT,+BAClCS,EAAgBe,YAAYe,iBAAmBF,CAAO,KAGvDnB,QAAQC,IAAIL,GAAUM,MAAK,QAC1C,EAEAoB,EAAwB7C,GACxB8C,EAAsB9C,GAAM,GAAOG,GAAW,IAAIF,EAA0BE"}
@@ -1,72 +0,0 @@
1
- import { a$ as PBRMaterial, aQ as unregisterGLTFExtension, aR as registerGLTFExtension } from './index-5L5wXyrx.esm.js';
2
- import { G as GLTFLoader } from './glTFLoader-Qw5JObwf.esm.js';
3
- import './rawTexture-BVf9vm87.esm.js';
4
- import './assetContainer-BzlRl_4x.esm.js';
5
- import './glTFLoaderAnimation-BCUZthxT.esm.js';
6
-
7
- const NAME = "KHR_materials_iridescence";
8
- /**
9
- * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_iridescence/README.md)
10
- */
11
- // eslint-disable-next-line @typescript-eslint/naming-convention
12
- class KHR_materials_iridescence {
13
- /**
14
- * @internal
15
- */
16
- constructor(loader) {
17
- /**
18
- * The name of this extension.
19
- */
20
- this.name = NAME;
21
- /**
22
- * Defines a number that determines the order the extensions are applied.
23
- */
24
- this.order = 195;
25
- this._loader = loader;
26
- this.enabled = this._loader.isExtensionUsed(NAME);
27
- }
28
- /** @internal */
29
- dispose() {
30
- this._loader = null;
31
- }
32
- /**
33
- * @internal
34
- */
35
- loadMaterialPropertiesAsync(context, material, babylonMaterial) {
36
- return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
37
- const promises = new Array();
38
- promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));
39
- promises.push(this._loadIridescencePropertiesAsync(extensionContext, extension, babylonMaterial));
40
- return Promise.all(promises).then(() => { });
41
- });
42
- }
43
- _loadIridescencePropertiesAsync(context, properties, babylonMaterial) {
44
- if (!(babylonMaterial instanceof PBRMaterial)) {
45
- throw new Error(`${context}: Material type not supported`);
46
- }
47
- const promises = new Array();
48
- babylonMaterial.iridescence.isEnabled = true;
49
- babylonMaterial.iridescence.intensity = properties.iridescenceFactor ?? 0;
50
- babylonMaterial.iridescence.indexOfRefraction = properties.iridescenceIor ?? properties.iridescenceIOR ?? 1.3;
51
- babylonMaterial.iridescence.minimumThickness = properties.iridescenceThicknessMinimum ?? 100;
52
- babylonMaterial.iridescence.maximumThickness = properties.iridescenceThicknessMaximum ?? 400;
53
- if (properties.iridescenceTexture) {
54
- promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceTexture`, properties.iridescenceTexture, (texture) => {
55
- texture.name = `${babylonMaterial.name} (Iridescence)`;
56
- babylonMaterial.iridescence.texture = texture;
57
- }));
58
- }
59
- if (properties.iridescenceThicknessTexture) {
60
- promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceThicknessTexture`, properties.iridescenceThicknessTexture, (texture) => {
61
- texture.name = `${babylonMaterial.name} (Iridescence Thickness)`;
62
- babylonMaterial.iridescence.thicknessTexture = texture;
63
- }));
64
- }
65
- return Promise.all(promises).then(() => { });
66
- }
67
- }
68
- unregisterGLTFExtension(NAME);
69
- registerGLTFExtension(NAME, true, (loader) => new KHR_materials_iridescence(loader));
70
-
71
- export { KHR_materials_iridescence };
72
- //# sourceMappingURL=KHR_materials_iridescence-B2wLtYQ4.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KHR_materials_iridescence-B2wLtYQ4.esm.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_iridescence.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_iridescence\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_iridescence/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_iridescence {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 195;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadIridescencePropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadIridescencePropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.iridescence.isEnabled = true;\n babylonMaterial.iridescence.intensity = properties.iridescenceFactor ?? 0;\n babylonMaterial.iridescence.indexOfRefraction = properties.iridescenceIor ?? properties.iridescenceIOR ?? 1.3;\n babylonMaterial.iridescence.minimumThickness = properties.iridescenceThicknessMinimum ?? 100;\n babylonMaterial.iridescence.maximumThickness = properties.iridescenceThicknessMaximum ?? 400;\n if (properties.iridescenceTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceTexture`, properties.iridescenceTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Iridescence)`;\n babylonMaterial.iridescence.texture = texture;\n }));\n }\n if (properties.iridescenceThicknessTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceThicknessTexture`, properties.iridescenceThicknessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Iridescence Thickness)`;\n babylonMaterial.iridescence.thicknessTexture = texture;\n }));\n }\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_iridescence(loader));\n//# sourceMappingURL=KHR_materials_iridescence.js.map"],"names":[],"mappings":";;;;;;AAGA,MAAM,IAAI,GAAG,2BAA2B;AACxC;AACA;AACA;AACA;AACO,MAAM,yBAAyB,CAAC;AACvC;AACA;AACA;AACA,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,KAAK,GAAG,GAAG;AACxB,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM;AAC7B,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;AACzD;AACA;AACA,IAAI,OAAO,GAAG;AACd,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI;AAC3B;AACA;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE;AACpE,QAAQ,OAAO,UAAU,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,gBAAgB,EAAE,SAAS,KAAK;AAC5G,YAAY,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE;AACxC,YAAY,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC;AACvG,YAAY,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,gBAAgB,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC;AAC7G,YAAY,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;AACxD,SAAS,CAAC;AACV;AACA,IAAI,+BAA+B,CAAC,OAA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AC3J,gBAAgB,OAAO,CAAC,IAAI,GAAG,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,wBAAwB,CAAC;AAChF,gBAAgB,eAAe,CAAC,WAAW,CAAC,gBAAgB,GAAG,OAAO;AACtE,aAAa,CAAC,CAAC;AACf;AACA,QAAQ,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;AACpD;AACA;AACA,uBAAuB,CAAC,IAAI,CAAC;AAC7B,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,KAAK,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;;;;"}
@@ -1,81 +0,0 @@
1
- import { a$ as PBRMaterial, s as Color3, aQ as unregisterGLTFExtension, aR as registerGLTFExtension } from './index-5L5wXyrx.esm.js';
2
- import { G as GLTFLoader } from './glTFLoader-Qw5JObwf.esm.js';
3
- import './rawTexture-BVf9vm87.esm.js';
4
- import './assetContainer-BzlRl_4x.esm.js';
5
- import './glTFLoaderAnimation-BCUZthxT.esm.js';
6
-
7
- const NAME = "KHR_materials_pbrSpecularGlossiness";
8
- /**
9
- * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness/README.md)
10
- */
11
- // eslint-disable-next-line @typescript-eslint/naming-convention
12
- class KHR_materials_pbrSpecularGlossiness {
13
- /**
14
- * @internal
15
- */
16
- constructor(loader) {
17
- /**
18
- * The name of this extension.
19
- */
20
- this.name = NAME;
21
- /**
22
- * Defines a number that determines the order the extensions are applied.
23
- */
24
- this.order = 200;
25
- this._loader = loader;
26
- this.enabled = this._loader.isExtensionUsed(NAME);
27
- }
28
- /** @internal */
29
- dispose() {
30
- this._loader = null;
31
- }
32
- /**
33
- * @internal
34
- */
35
- loadMaterialPropertiesAsync(context, material, babylonMaterial) {
36
- return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
37
- const promises = new Array();
38
- promises.push(this._loader.loadMaterialBasePropertiesAsync(context, material, babylonMaterial));
39
- promises.push(this._loadSpecularGlossinessPropertiesAsync(extensionContext, extension, babylonMaterial));
40
- this._loader.loadMaterialAlphaProperties(context, material, babylonMaterial);
41
- return Promise.all(promises).then(() => { });
42
- });
43
- }
44
- _loadSpecularGlossinessPropertiesAsync(context, properties, babylonMaterial) {
45
- if (!(babylonMaterial instanceof PBRMaterial)) {
46
- throw new Error(`${context}: Material type not supported`);
47
- }
48
- const promises = new Array();
49
- babylonMaterial.metallic = null;
50
- babylonMaterial.roughness = null;
51
- if (properties.diffuseFactor) {
52
- babylonMaterial.albedoColor = Color3.FromArray(properties.diffuseFactor);
53
- babylonMaterial.alpha = properties.diffuseFactor[3];
54
- }
55
- else {
56
- babylonMaterial.albedoColor = Color3.White();
57
- }
58
- babylonMaterial.reflectivityColor = properties.specularFactor ? Color3.FromArray(properties.specularFactor) : Color3.White();
59
- babylonMaterial.microSurface = properties.glossinessFactor == undefined ? 1 : properties.glossinessFactor;
60
- if (properties.diffuseTexture) {
61
- promises.push(this._loader.loadTextureInfoAsync(`${context}/diffuseTexture`, properties.diffuseTexture, (texture) => {
62
- texture.name = `${babylonMaterial.name} (Diffuse)`;
63
- babylonMaterial.albedoTexture = texture;
64
- }));
65
- }
66
- if (properties.specularGlossinessTexture) {
67
- promises.push(this._loader.loadTextureInfoAsync(`${context}/specularGlossinessTexture`, properties.specularGlossinessTexture, (texture) => {
68
- texture.name = `${babylonMaterial.name} (Specular Glossiness)`;
69
- babylonMaterial.reflectivityTexture = texture;
70
- babylonMaterial.reflectivityTexture.hasAlpha = true;
71
- }));
72
- babylonMaterial.useMicroSurfaceFromReflectivityMapAlpha = true;
73
- }
74
- return Promise.all(promises).then(() => { });
75
- }
76
- }
77
- unregisterGLTFExtension(NAME);
78
- registerGLTFExtension(NAME, true, (loader) => new KHR_materials_pbrSpecularGlossiness(loader));
79
-
80
- export { KHR_materials_pbrSpecularGlossiness };
81
- //# sourceMappingURL=KHR_materials_pbrSpecularGlossiness-DYK5fci0.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KHR_materials_pbrSpecularGlossiness-DYK5fci0.esm.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js"],"sourcesContent":["import { Color3 } from \"core/Maths/math.color\";\nimport { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_pbrSpecularGlossiness\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_pbrSpecularGlossiness {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 200;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialBasePropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadSpecularGlossinessPropertiesAsync(extensionContext, extension, babylonMaterial));\n this._loader.loadMaterialAlphaProperties(context, material, babylonMaterial);\n return Promise.all(promises).then(() => { });\n });\n }\n _loadSpecularGlossinessPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.metallic = null;\n babylonMaterial.roughness = null;\n if (properties.diffuseFactor) {\n babylonMaterial.albedoColor = Color3.FromArray(properties.diffuseFactor);\n babylonMaterial.alpha = properties.diffuseFactor[3];\n }\n else {\n babylonMaterial.albedoColor = Color3.White();\n }\n babylonMaterial.reflectivityColor = properties.specularFactor ? Color3.FromArray(properties.specularFactor) : Color3.White();\n babylonMaterial.microSurface = properties.glossinessFactor == undefined ? 1 : properties.glossinessFactor;\n if (properties.diffuseTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/diffuseTexture`, properties.diffuseTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Diffuse)`;\n babylonMaterial.albedoTexture = texture;\n }));\n }\n if (properties.specularGlossinessTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/specularGlossinessTexture`, properties.specularGlossinessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Specular Glossiness)`;\n babylonMaterial.reflectivityTexture = texture;\n babylonMaterial.reflectivityTexture.hasAlpha = true;\n }));\n babylonMaterial.useMicroSurfaceFromReflectivityMapAlpha = true;\n }\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_pbrSpecularGlossiness(loader));\n//# sourceMappingURL=KHR_materials_pbrSpecularGlossiness.js.map"],"names":[],"mappings":";;;;;;AAIA,MAAM,IAAI,GAAG,qCAAqC;AAClD;AACA;AACA;AACA;AACO,MAAM,mCAAmC,CAAC;AACjD;AACA;AACA;AACA,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,KAAK,GAAG,GAAG;AACxB,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM;AAC7B,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;AACzD;AACA;AACA,IAAI,OAAO,GAAG;AACd,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI;AAC3B;AACA;AACA;AACA;AACA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M,GAAG,CAAC;AACpD;AACA;AACA,uBAAuB,CAAC,IAAI,CAAC;AAC7B,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,KAAK,IAAI,mCAAmC,CAAC,MAAM,CAAC,CAAC;;;;"}
@@ -1,2 +0,0 @@
1
- import{a$ as e,s,aQ as r,aR as a}from"./index-B5KLkjYm.esm.min.js";import{G as o}from"./glTFLoader-iKlvKEG-.esm.min.js";import"./rawTexture-CNxyCiVq.esm.min.js";import"./assetContainer-D7C3a-Xn.esm.min.js";import"./glTFLoaderAnimation-DnTkRibM.esm.min.js";const t="KHR_materials_pbrSpecularGlossiness";class i{constructor(e){this.name=t,this.order=200,this._loader=e,this.enabled=this._loader.isExtensionUsed(t)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,s,r){return o.LoadExtensionAsync(e,s,this.name,((a,o)=>{const t=new Array;return t.push(this._loader.loadMaterialBasePropertiesAsync(e,s,r)),t.push(this._loadSpecularGlossinessPropertiesAsync(a,o,r)),this._loader.loadMaterialAlphaProperties(e,s,r),Promise.all(t).then((()=>{}))}))}_loadSpecularGlossinessPropertiesAsync(r,a,o){if(!(o instanceof e))throw new Error(`${r}: Material type not supported`);const t=new Array;return o.metallic=null,o.roughness=null,a.diffuseFactor?(o.albedoColor=s.FromArray(a.diffuseFactor),o.alpha=a.diffuseFactor[3]):o.albedoColor=s.White(),o.reflectivityColor=a.specularFactor?s.FromArray(a.specularFactor):s.White(),o.microSurface=null==a.glossinessFactor?1:a.glossinessFactor,a.diffuseTexture&&t.push(this._loader.loadTextureInfoAsync(`${r}/diffuseTexture`,a.diffuseTexture,(e=>{e.name=`${o.name} (Diffuse)`,o.albedoTexture=e}))),a.specularGlossinessTexture&&(t.push(this._loader.loadTextureInfoAsync(`${r}/specularGlossinessTexture`,a.specularGlossinessTexture,(e=>{e.name=`${o.name} (Specular Glossiness)`,o.reflectivityTexture=e,o.reflectivityTexture.hasAlpha=!0}))),o.useMicroSurfaceFromReflectivityMapAlpha=!0),Promise.all(t).then((()=>{}))}}r(t),a(t,!0,(e=>new i(e)));export{i as KHR_materials_pbrSpecularGlossiness};
2
- //# sourceMappingURL=KHR_materials_pbrSpecularGlossiness-PlzNRHwZ.esm.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KHR_materials_pbrSpecularGlossiness-PlzNRHwZ.esm.min.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js"],"sourcesContent":["import { Color3 } from \"core/Maths/math.color\";\nimport { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_pbrSpecularGlossiness\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_pbrSpecularGlossiness {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 200;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialBasePropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadSpecularGlossinessPropertiesAsync(extensionContext, extension, babylonMaterial));\n this._loader.loadMaterialAlphaProperties(context, material, babylonMaterial);\n return Promise.all(promises).then(() => { });\n });\n }\n _loadSpecularGlossinessPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.metallic = null;\n babylonMaterial.roughness = null;\n if (properties.diffuseFactor) {\n babylonMaterial.albedoColor = Color3.FromArray(properties.diffuseFactor);\n babylonMaterial.alpha = properties.diffuseFactor[3];\n }\n else {\n babylonMaterial.albedoColor = Color3.White();\n }\n babylonMaterial.reflectivityColor = properties.specularFactor ? Color3.FromArray(properties.specularFactor) : Color3.White();\n babylonMaterial.microSurface = properties.glossinessFactor == undefined ? 1 : properties.glossinessFactor;\n if (properties.diffuseTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/diffuseTexture`, properties.diffuseTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Diffuse)`;\n babylonMaterial.albedoTexture = texture;\n }));\n }\n if (properties.specularGlossinessTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/specularGlossinessTexture`, properties.specularGlossinessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Specular Glossiness)`;\n babylonMaterial.reflectivityTexture = texture;\n babylonMaterial.reflectivityTexture.hasAlpha = true;\n }));\n babylonMaterial.useMicroSurfaceFromReflectivityMapAlpha = true;\n }\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_pbrSpecularGlossiness(loader));\n//# sourceMappingURL=KHR_materials_pbrSpecularGlossiness.js.map"],"names":["NAME","KHR_materials_pbrSpecularGlossiness","constructor","loader","this","name","order","_loader","enabled","isExtensionUsed","dispose","loadMaterialPropertiesAsync","context","material","babylonMaterial","GLTFLoader","LoadExtensionAsync","extensionContext","extension","promises","Array","push","loadMaterialBasePropertiesAsync","_loadSpecularGlossinessPropertiesAsync","loadMaterialAlphaProperties","Promise","all","then","properties","PBRMaterial","Error","metallic","roughness","diffuseFactor","albedoColor","Color3","FromArray","alpha","White","reflectivityColor","specularFactor","microSurface","undefined","glossinessFactor","diffuseTexture","loadTextureInfoAsync","texture","albedoTexture","specularGlossinessTexture","reflectivityTexture","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gBT,iBAClCS,EAAgBiC,cAAgBD,CAAO,KAG3ClB,EAAWoB,4BACX7B,EAASE,KAAKjB,KAAKG,QAAQsC,qBAAqB,GAAGjC,8BAAqCgB,EAAWoB,2BAA4BF,IAC3HA,EAAQzC,KAAO,GAAGS,EAAgBT,6BAClCS,EAAgBmC,oBAAsBH,EACtChC,EAAgBmC,oBAAoBC,UAAW,CAAI,KAEvDpC,EAAgBqC,yCAA0C,GAEvD1B,QAAQC,IAAIP,GAAUQ,MAAK,QAC1C,EAEAyB,EAAwBpD,GACxBqD,EAAsBrD,GAAM,GAAOG,GAAW,IAAIF,EAAoCE"}
@@ -1,2 +0,0 @@
1
- import{a$ as e,s,aQ as n,aR as o}from"./index-B5KLkjYm.esm.min.js";import{G as r}from"./glTFLoader-iKlvKEG-.esm.min.js";import"./rawTexture-CNxyCiVq.esm.min.js";import"./assetContainer-D7C3a-Xn.esm.min.js";import"./glTFLoaderAnimation-DnTkRibM.esm.min.js";const t="KHR_materials_sheen";class a{constructor(e){this.name=t,this.order=190,this._loader=e,this.enabled=this._loader.isExtensionUsed(t)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,s,n){return r.LoadExtensionAsync(e,s,this.name,((o,r)=>{const t=new Array;return t.push(this._loader.loadMaterialPropertiesAsync(e,s,n)),t.push(this._loadSheenPropertiesAsync(o,r,n)),Promise.all(t).then((()=>{}))}))}_loadSheenPropertiesAsync(n,o,r){if(!(r instanceof e))throw new Error(`${n}: Material type not supported`);const t=new Array;return r.sheen.isEnabled=!0,r.sheen.intensity=1,null!=o.sheenColorFactor?r.sheen.color=s.FromArray(o.sheenColorFactor):r.sheen.color=s.Black(),o.sheenColorTexture&&t.push(this._loader.loadTextureInfoAsync(`${n}/sheenColorTexture`,o.sheenColorTexture,(e=>{e.name=`${r.name} (Sheen Color)`,r.sheen.texture=e}))),void 0!==o.sheenRoughnessFactor?r.sheen.roughness=o.sheenRoughnessFactor:r.sheen.roughness=0,o.sheenRoughnessTexture&&(o.sheenRoughnessTexture.nonColorData=!0,t.push(this._loader.loadTextureInfoAsync(`${n}/sheenRoughnessTexture`,o.sheenRoughnessTexture,(e=>{e.name=`${r.name} (Sheen Roughness)`,r.sheen.textureRoughness=e})))),r.sheen.albedoScaling=!0,r.sheen.useRoughnessFromMainTexture=!1,Promise.all(t).then((()=>{}))}}n(t),o(t,!0,(e=>new a(e)));export{a as KHR_materials_sheen};
2
- //# sourceMappingURL=KHR_materials_sheen-CvA19viC.esm.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KHR_materials_sheen-CvA19viC.esm.min.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_sheen.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { Color3 } from \"core/Maths/math.color\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_sheen\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_sheen/README.md)\n * [Playground Sample](https://www.babylonjs-playground.com/frame.html#BNIZX6#4)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_sheen {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 190;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadSheenPropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadSheenPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.sheen.isEnabled = true;\n babylonMaterial.sheen.intensity = 1;\n if (properties.sheenColorFactor != undefined) {\n babylonMaterial.sheen.color = Color3.FromArray(properties.sheenColorFactor);\n }\n else {\n babylonMaterial.sheen.color = Color3.Black();\n }\n if (properties.sheenColorTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenColorTexture`, properties.sheenColorTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Sheen Color)`;\n babylonMaterial.sheen.texture = texture;\n }));\n }\n if (properties.sheenRoughnessFactor !== undefined) {\n babylonMaterial.sheen.roughness = properties.sheenRoughnessFactor;\n }\n else {\n babylonMaterial.sheen.roughness = 0;\n }\n if (properties.sheenRoughnessTexture) {\n properties.sheenRoughnessTexture.nonColorData = true;\n promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenRoughnessTexture`, properties.sheenRoughnessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Sheen Roughness)`;\n babylonMaterial.sheen.textureRoughness = texture;\n }));\n }\n babylonMaterial.sheen.albedoScaling = true;\n babylonMaterial.sheen.useRoughnessFromMainTexture = false;\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_sheen(loader));\n//# sourceMappingURL=KHR_materials_sheen.js.map"],"names":["NAME","KHR_materials_sheen","constructor","loader","this","name","order","_loader","enabled","isExtensionUsed","dispose","loadMaterialPropertiesAsync","context","material","babylonMaterial","GLTFLoader","LoadExtensionAsync","extensionContext","extension","promises","Array","push","_loadSheenPropertiesAsync","Promise","all","then","properties","PBRMaterial","Error","sheen","isEnabled","intensity","undefined","sheenColorFactor","color","Color3","FromArray","Black","sheenColorTexture","loadTextureInfoAsync","texture","sheenRoughnessFactor","roughness","sheenRoughnessTexture","nonColorData","textureRoughness","albed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qBAAqB,GAAG3B,0BAAiCc,EAAWiB,uBAAwBH,IACnHA,EAAQnC,KAAO,GAAGS,EAAgBT,yBAClCS,EAAgBe,MAAMgB,iBAAmBL,CAAO,MAGxD1B,EAAgBe,MAAMiB,eAAgB,EACtChC,EAAgBe,MAAMkB,6BAA8B,EAC7CxB,QAAQC,IAAIL,GAAUM,MAAK,QAC1C,EAEAuB,EAAwBhD,GACxBiD,EAAsBjD,GAAM,GAAOG,GAAW,IAAIF,EAAoBE"}
@@ -1,85 +0,0 @@
1
- import { a$ as PBRMaterial, s as Color3, aQ as unregisterGLTFExtension, aR as registerGLTFExtension } from './index-5L5wXyrx.esm.js';
2
- import { G as GLTFLoader } from './glTFLoader-Qw5JObwf.esm.js';
3
- import './rawTexture-BVf9vm87.esm.js';
4
- import './assetContainer-BzlRl_4x.esm.js';
5
- import './glTFLoaderAnimation-BCUZthxT.esm.js';
6
-
7
- const NAME = "KHR_materials_sheen";
8
- /**
9
- * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_sheen/README.md)
10
- * [Playground Sample](https://www.babylonjs-playground.com/frame.html#BNIZX6#4)
11
- */
12
- // eslint-disable-next-line @typescript-eslint/naming-convention
13
- class KHR_materials_sheen {
14
- /**
15
- * @internal
16
- */
17
- constructor(loader) {
18
- /**
19
- * The name of this extension.
20
- */
21
- this.name = NAME;
22
- /**
23
- * Defines a number that determines the order the extensions are applied.
24
- */
25
- this.order = 190;
26
- this._loader = loader;
27
- this.enabled = this._loader.isExtensionUsed(NAME);
28
- }
29
- /** @internal */
30
- dispose() {
31
- this._loader = null;
32
- }
33
- /**
34
- * @internal
35
- */
36
- loadMaterialPropertiesAsync(context, material, babylonMaterial) {
37
- return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
38
- const promises = new Array();
39
- promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));
40
- promises.push(this._loadSheenPropertiesAsync(extensionContext, extension, babylonMaterial));
41
- return Promise.all(promises).then(() => { });
42
- });
43
- }
44
- _loadSheenPropertiesAsync(context, properties, babylonMaterial) {
45
- if (!(babylonMaterial instanceof PBRMaterial)) {
46
- throw new Error(`${context}: Material type not supported`);
47
- }
48
- const promises = new Array();
49
- babylonMaterial.sheen.isEnabled = true;
50
- babylonMaterial.sheen.intensity = 1;
51
- if (properties.sheenColorFactor != undefined) {
52
- babylonMaterial.sheen.color = Color3.FromArray(properties.sheenColorFactor);
53
- }
54
- else {
55
- babylonMaterial.sheen.color = Color3.Black();
56
- }
57
- if (properties.sheenColorTexture) {
58
- promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenColorTexture`, properties.sheenColorTexture, (texture) => {
59
- texture.name = `${babylonMaterial.name} (Sheen Color)`;
60
- babylonMaterial.sheen.texture = texture;
61
- }));
62
- }
63
- if (properties.sheenRoughnessFactor !== undefined) {
64
- babylonMaterial.sheen.roughness = properties.sheenRoughnessFactor;
65
- }
66
- else {
67
- babylonMaterial.sheen.roughness = 0;
68
- }
69
- if (properties.sheenRoughnessTexture) {
70
- properties.sheenRoughnessTexture.nonColorData = true;
71
- promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenRoughnessTexture`, properties.sheenRoughnessTexture, (texture) => {
72
- texture.name = `${babylonMaterial.name} (Sheen Roughness)`;
73
- babylonMaterial.sheen.textureRoughness = texture;
74
- }));
75
- }
76
- babylonMaterial.sheen.albedoScaling = true;
77
- babylonMaterial.sheen.useRoughnessFromMainTexture = false;
78
- return Promise.all(promises).then(() => { });
79
- }
80
- }
81
- unregisterGLTFExtension(NAME);
82
- registerGLTFExtension(NAME, true, (loader) => new KHR_materials_sheen(loader));
83
-
84
- export { KHR_materials_sheen };
85
- //# sourceMappingURL=KHR_materials_sheen-DY8Hlw2C.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KHR_materials_sheen-DY8Hlw2C.esm.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_sheen.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { Color3 } from \"core/Maths/math.color\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_sheen\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_sheen/README.md)\n * [Playground Sample](https://www.babylonjs-playground.com/frame.html#BNIZX6#4)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_sheen {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 190;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadSheenPropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadSheenPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.sheen.isEnabled = true;\n babylonMaterial.sheen.intensity = 1;\n if (properties.sheenColorFactor != undefined) {\n babylonMaterial.sheen.color = Color3.FromArray(properties.sheenColorFactor);\n }\n else {\n babylonMaterial.sheen.color = Color3.Black();\n }\n if (properties.sheenColorTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenColorTexture`, properties.sheenColorTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Sheen Color)`;\n babylonMaterial.sheen.texture = texture;\n }));\n }\n if (properties.sheenRoughnessFactor !== undefined) {\n babylonMaterial.sheen.roughness = properties.sheenRoughnessFactor;\n }\n else {\n babylonMaterial.sheen.roughness = 0;\n }\n if (properties.sheenRoughnessTexture) {\n properties.sheenRoughnessTexture.nonColorData = true;\n promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenRoughnessTexture`, properties.sheenRoughnessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Sheen Roughness)`;\n babylonMaterial.sheen.textureRoughness = texture;\n }));\n }\n babylonMaterial.sheen.albedoScaling = true;\n babylonMaterial.sheen.useRoughnessFromMainTexture = false;\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_sheen(loader));\n//# sourceMappingURL=KHR_materials_sheen.js.map"],"names":[],"mappings":";;;;;;AAIA,MAAM,IAAI,GAAG,qBAAqB;AAClC;AACA;AACA;AACA;AACA;AACO,MAAM,mBAAmB,CAAC;AACjC;AACA;AACA;AACA,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,KAAK,GAAG,GAAG;AACxB,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM;AAC7B,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;AACzD;AACA;AACA,IAAI,OAAO,GAAG;AACd,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI;AAC3B;AACA;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE;AACpE,QAAQ,OAAO,UAAU,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,gBAAgB,EAAE,SAAS,KAAK;AAC5G,YAAY,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE;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FLoader } from './glTFLoader-Qw5JObwf.esm.js';
3
- import './rawTexture-BVf9vm87.esm.js';
4
- import './assetContainer-BzlRl_4x.esm.js';
5
- import './glTFLoaderAnimation-BCUZthxT.esm.js';
6
-
7
- const NAME = "KHR_materials_specular";
8
- /**
9
- * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_specular/README.md)
10
- */
11
- // eslint-disable-next-line @typescript-eslint/naming-convention
12
- class KHR_materials_specular {
13
- /**
14
- * @internal
15
- */
16
- constructor(loader) {
17
- /**
18
- * The name of this extension.
19
- */
20
- this.name = NAME;
21
- /**
22
- * Defines a number that determines the order the extensions are applied.
23
- */
24
- this.order = 190;
25
- this._loader = loader;
26
- this.enabled = this._loader.isExtensionUsed(NAME);
27
- }
28
- /** @internal */
29
- dispose() {
30
- this._loader = null;
31
- }
32
- /**
33
- * @internal
34
- */
35
- loadMaterialPropertiesAsync(context, material, babylonMaterial) {
36
- return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
37
- const promises = new Array();
38
- promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));
39
- promises.push(this._loadSpecularPropertiesAsync(extensionContext, extension, babylonMaterial));
40
- return Promise.all(promises).then(() => { });
41
- });
42
- }
43
- _loadSpecularPropertiesAsync(context, properties, babylonMaterial) {
44
- if (!(babylonMaterial instanceof PBRMaterial)) {
45
- throw new Error(`${context}: Material type not supported`);
46
- }
47
- const promises = new Array();
48
- if (properties.specularFactor !== undefined) {
49
- babylonMaterial.metallicF0Factor = properties.specularFactor;
50
- }
51
- if (properties.specularColorFactor !== undefined) {
52
- babylonMaterial.metallicReflectanceColor = Color3.FromArray(properties.specularColorFactor);
53
- }
54
- if (properties.specularTexture) {
55
- properties.specularTexture.nonColorData = true;
56
- promises.push(this._loader.loadTextureInfoAsync(`${context}/specularTexture`, properties.specularTexture, (texture) => {
57
- texture.name = `${babylonMaterial.name} (Specular)`;
58
- babylonMaterial.metallicReflectanceTexture = texture;
59
- babylonMaterial.useOnlyMetallicFromMetallicReflectanceTexture = true;
60
- }));
61
- }
62
- if (properties.specularColorTexture) {
63
- promises.push(this._loader.loadTextureInfoAsync(`${context}/specularColorTexture`, properties.specularColorTexture, (texture) => {
64
- texture.name = `${babylonMaterial.name} (Specular Color)`;
65
- babylonMaterial.reflectanceTexture = texture;
66
- }));
67
- }
68
- return Promise.all(promises).then(() => { });
69
- }
70
- }
71
- unregisterGLTFExtension(NAME);
72
- registerGLTFExtension(NAME, true, (loader) => new KHR_materials_specular(loader));
73
-
74
- export { KHR_materials_specular };
75
- //# sourceMappingURL=KHR_materials_specular-DPankAYO.esm.js.map