@babylonjs/viewer 7.40.0-alpha → 7.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (615) 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-CWPYWIWN.esm.min.js +0 -2
  198. package/dist/chunks/EXT_lights_ies-CWPYWIWN.esm.min.js.map +0 -1
  199. package/dist/chunks/EXT_lights_ies-DXjx4vS8.esm.js +0 -84
  200. package/dist/chunks/EXT_lights_ies-DXjx4vS8.esm.js.map +0 -1
  201. package/dist/chunks/EXT_lights_image_based-B-Daha_c.esm.js +0 -171
  202. package/dist/chunks/EXT_lights_image_based-B-Daha_c.esm.js.map +0 -1
  203. package/dist/chunks/EXT_lights_image_based-fafIAwHA.esm.min.js +0 -2
  204. package/dist/chunks/EXT_lights_image_based-fafIAwHA.esm.min.js.map +0 -1
  205. package/dist/chunks/EXT_mesh_gpu_instancing-CQHNuvea.esm.min.js +0 -2
  206. package/dist/chunks/EXT_mesh_gpu_instancing-CQHNuvea.esm.min.js.map +0 -1
  207. package/dist/chunks/EXT_mesh_gpu_instancing-xQzfnk4R.esm.js +0 -86
  208. package/dist/chunks/EXT_mesh_gpu_instancing-xQzfnk4R.esm.js.map +0 -1
  209. package/dist/chunks/EXT_meshopt_compression-B2YW8Jul.esm.min.js +0 -2
  210. package/dist/chunks/EXT_meshopt_compression-B2YW8Jul.esm.min.js.map +0 -1
  211. package/dist/chunks/EXT_meshopt_compression-D-WT4x3b.esm.js +0 -134
  212. package/dist/chunks/EXT_meshopt_compression-D-WT4x3b.esm.js.map +0 -1
  213. package/dist/chunks/EXT_texture_avif-B3jJQLi_.esm.js +0 -44
  214. package/dist/chunks/EXT_texture_avif-B3jJQLi_.esm.js.map +0 -1
  215. package/dist/chunks/EXT_texture_avif-Cdp43X9W.esm.min.js +0 -2
  216. package/dist/chunks/EXT_texture_avif-Cdp43X9W.esm.min.js.map +0 -1
  217. package/dist/chunks/EXT_texture_webp-BnjDmIhh.esm.min.js +0 -2
  218. package/dist/chunks/EXT_texture_webp-BnjDmIhh.esm.min.js.map +0 -1
  219. package/dist/chunks/EXT_texture_webp-CJRS8tVF.esm.js +0 -43
  220. package/dist/chunks/EXT_texture_webp-CJRS8tVF.esm.js.map +0 -1
  221. package/dist/chunks/ExtrasAsMetadata-CIJMhaBZ.esm.min.js +0 -2
  222. package/dist/chunks/ExtrasAsMetadata-CIJMhaBZ.esm.min.js.map +0 -1
  223. package/dist/chunks/ExtrasAsMetadata-CwbKTcv7.esm.js +0 -64
  224. package/dist/chunks/ExtrasAsMetadata-CwbKTcv7.esm.js.map +0 -1
  225. package/dist/chunks/KHR_animation_pointer-9iHVi2y-.esm.js +0 -352
  226. package/dist/chunks/KHR_animation_pointer-9iHVi2y-.esm.js.map +0 -1
  227. package/dist/chunks/KHR_animation_pointer-CqdJSFtB.esm.min.js +0 -2
  228. package/dist/chunks/KHR_animation_pointer-CqdJSFtB.esm.min.js.map +0 -1
  229. package/dist/chunks/KHR_draco_mesh_compression-ClL38TL5.esm.min.js +0 -2
  230. package/dist/chunks/KHR_draco_mesh_compression-ClL38TL5.esm.min.js.map +0 -1
  231. package/dist/chunks/KHR_draco_mesh_compression-D3dZicO8.esm.js +0 -617
  232. package/dist/chunks/KHR_draco_mesh_compression-D3dZicO8.esm.js.map +0 -1
  233. package/dist/chunks/KHR_interactivity-6HrLuIjZ.esm.js +0 -4033
  234. package/dist/chunks/KHR_interactivity-6HrLuIjZ.esm.js.map +0 -1
  235. package/dist/chunks/KHR_interactivity-zubZF_6R.esm.min.js +0 -2
  236. package/dist/chunks/KHR_interactivity-zubZF_6R.esm.min.js.map +0 -1
  237. package/dist/chunks/KHR_lights_punctual-ClmFHdd7.esm.js +0 -581
  238. package/dist/chunks/KHR_lights_punctual-ClmFHdd7.esm.js.map +0 -1
  239. package/dist/chunks/KHR_lights_punctual-Fpwx2lSI.esm.min.js +0 -2
  240. package/dist/chunks/KHR_lights_punctual-Fpwx2lSI.esm.min.js.map +0 -1
  241. package/dist/chunks/KHR_materials_anisotropy-DJzuE8wA.esm.js +0 -65
  242. package/dist/chunks/KHR_materials_anisotropy-DJzuE8wA.esm.js.map +0 -1
  243. package/dist/chunks/KHR_materials_anisotropy-DXobrZpb.esm.min.js +0 -2
  244. package/dist/chunks/KHR_materials_anisotropy-DXobrZpb.esm.min.js.map +0 -1
  245. package/dist/chunks/KHR_materials_clearcoat-D0969pHH.esm.js +0 -96
  246. package/dist/chunks/KHR_materials_clearcoat-D0969pHH.esm.js.map +0 -1
  247. package/dist/chunks/KHR_materials_clearcoat-IanIfR8B.esm.min.js +0 -2
  248. package/dist/chunks/KHR_materials_clearcoat-IanIfR8B.esm.min.js.map +0 -1
  249. package/dist/chunks/KHR_materials_diffuse_transmission-CswRFXu1.esm.js +0 -97
  250. package/dist/chunks/KHR_materials_diffuse_transmission-CswRFXu1.esm.js.map +0 -1
  251. package/dist/chunks/KHR_materials_diffuse_transmission-DOSvTGyA.esm.min.js +0 -2
  252. package/dist/chunks/KHR_materials_diffuse_transmission-DOSvTGyA.esm.min.js.map +0 -1
  253. package/dist/chunks/KHR_materials_dispersion-N7vSa0nU.esm.min.js +0 -2
  254. package/dist/chunks/KHR_materials_dispersion-N7vSa0nU.esm.min.js.map +0 -1
  255. package/dist/chunks/KHR_materials_dispersion-lcuIAf7T.esm.js +0 -62
  256. package/dist/chunks/KHR_materials_dispersion-lcuIAf7T.esm.js.map +0 -1
  257. package/dist/chunks/KHR_materials_emissive_strength-CYCr0qYT.esm.min.js +0 -2
  258. package/dist/chunks/KHR_materials_emissive_strength-CYCr0qYT.esm.min.js.map +0 -1
  259. package/dist/chunks/KHR_materials_emissive_strength-Ccj9q0E7.esm.js +0 -55
  260. package/dist/chunks/KHR_materials_emissive_strength-Ccj9q0E7.esm.js.map +0 -1
  261. package/dist/chunks/KHR_materials_ior-CMGgp610.esm.js +0 -64
  262. package/dist/chunks/KHR_materials_ior-CMGgp610.esm.js.map +0 -1
  263. package/dist/chunks/KHR_materials_ior-DLbZJSfw.esm.min.js +0 -2
  264. package/dist/chunks/KHR_materials_ior-DLbZJSfw.esm.min.js.map +0 -1
  265. package/dist/chunks/KHR_materials_iridescence-DxhjIyld.esm.js +0 -72
  266. package/dist/chunks/KHR_materials_iridescence-DxhjIyld.esm.js.map +0 -1
  267. package/dist/chunks/KHR_materials_iridescence-GKx4iT0n.esm.min.js +0 -2
  268. package/dist/chunks/KHR_materials_iridescence-GKx4iT0n.esm.min.js.map +0 -1
  269. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BhSexHVn.esm.min.js +0 -2
  270. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BhSexHVn.esm.min.js.map +0 -1
  271. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CaAfu_3f.esm.js +0 -81
  272. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CaAfu_3f.esm.js.map +0 -1
  273. package/dist/chunks/KHR_materials_sheen-CN1BYTg2.esm.min.js +0 -2
  274. package/dist/chunks/KHR_materials_sheen-CN1BYTg2.esm.min.js.map +0 -1
  275. package/dist/chunks/KHR_materials_sheen-CTrHpM3p.esm.js +0 -85
  276. package/dist/chunks/KHR_materials_sheen-CTrHpM3p.esm.js.map +0 -1
  277. package/dist/chunks/KHR_materials_specular-D_qAmusR.esm.js +0 -75
  278. package/dist/chunks/KHR_materials_specular-D_qAmusR.esm.js.map +0 -1
  279. package/dist/chunks/KHR_materials_specular-DpKtpzvK.esm.min.js +0 -2
  280. package/dist/chunks/KHR_materials_specular-DpKtpzvK.esm.min.js.map +0 -1
  281. package/dist/chunks/KHR_materials_transmission-CxaJK0KS.esm.min.js +0 -2
  282. package/dist/chunks/KHR_materials_transmission-CxaJK0KS.esm.min.js.map +0 -1
  283. package/dist/chunks/KHR_materials_transmission-jJevhaTD.esm.js +0 -307
  284. package/dist/chunks/KHR_materials_transmission-jJevhaTD.esm.js.map +0 -1
  285. package/dist/chunks/KHR_materials_unlit-B9NoDbLu.esm.js +0 -74
  286. package/dist/chunks/KHR_materials_unlit-B9NoDbLu.esm.js.map +0 -1
  287. package/dist/chunks/KHR_materials_unlit-BV2WFURQ.esm.min.js +0 -2
  288. package/dist/chunks/KHR_materials_unlit-BV2WFURQ.esm.min.js.map +0 -1
  289. package/dist/chunks/KHR_materials_variants-BmH6A7LQ.esm.min.js +0 -2
  290. package/dist/chunks/KHR_materials_variants-BmH6A7LQ.esm.min.js.map +0 -1
  291. package/dist/chunks/KHR_materials_variants-BwlvUynB.esm.js +0 -262
  292. package/dist/chunks/KHR_materials_variants-BwlvUynB.esm.js.map +0 -1
  293. package/dist/chunks/KHR_materials_volume-BxsuFsjg.esm.js +0 -87
  294. package/dist/chunks/KHR_materials_volume-BxsuFsjg.esm.js.map +0 -1
  295. package/dist/chunks/KHR_materials_volume-DgaN4xP_.esm.min.js +0 -2
  296. package/dist/chunks/KHR_materials_volume-DgaN4xP_.esm.min.js.map +0 -1
  297. package/dist/chunks/KHR_mesh_quantization-BiqtT9kx.esm.min.js +0 -2
  298. package/dist/chunks/KHR_mesh_quantization-BiqtT9kx.esm.min.js.map +0 -1
  299. package/dist/chunks/KHR_mesh_quantization-Dui9vNiN.esm.js +0 -26
  300. package/dist/chunks/KHR_mesh_quantization-Dui9vNiN.esm.js.map +0 -1
  301. package/dist/chunks/KHR_node_hoverability-Bb7NACAZ.esm.js +0 -39
  302. package/dist/chunks/KHR_node_hoverability-Bb7NACAZ.esm.js.map +0 -1
  303. package/dist/chunks/KHR_node_hoverability-DO_c3jaM.esm.min.js +0 -2
  304. package/dist/chunks/KHR_node_hoverability-DO_c3jaM.esm.min.js.map +0 -1
  305. package/dist/chunks/KHR_node_visibility-B5DLk18h.esm.js +0 -46
  306. package/dist/chunks/KHR_node_visibility-B5DLk18h.esm.js.map +0 -1
  307. package/dist/chunks/KHR_node_visibility-Cf7iNP2D.esm.min.js +0 -2
  308. package/dist/chunks/KHR_node_visibility-Cf7iNP2D.esm.min.js.map +0 -1
  309. package/dist/chunks/KHR_texture_basisu-DgmXsV7i.esm.js +0 -43
  310. package/dist/chunks/KHR_texture_basisu-DgmXsV7i.esm.js.map +0 -1
  311. package/dist/chunks/KHR_texture_basisu-O4WmrcrG.esm.min.js +0 -2
  312. package/dist/chunks/KHR_texture_basisu-O4WmrcrG.esm.min.js.map +0 -1
  313. package/dist/chunks/KHR_texture_transform-C2B03Q6l.esm.min.js +0 -2
  314. package/dist/chunks/KHR_texture_transform-C2B03Q6l.esm.min.js.map +0 -1
  315. package/dist/chunks/KHR_texture_transform-DkQQG3PK.esm.js +0 -63
  316. package/dist/chunks/KHR_texture_transform-DkQQG3PK.esm.js.map +0 -1
  317. package/dist/chunks/KHR_xmp_json_ld-D9eCYTa2.esm.min.js +0 -2
  318. package/dist/chunks/KHR_xmp_json_ld-D9eCYTa2.esm.min.js.map +0 -1
  319. package/dist/chunks/KHR_xmp_json_ld-gs5UzU_o.esm.js +0 -51
  320. package/dist/chunks/KHR_xmp_json_ld-gs5UzU_o.esm.js.map +0 -1
  321. package/dist/chunks/MSFT_audio_emitter-B9fkUjJ0.esm.js +0 -2207
  322. package/dist/chunks/MSFT_audio_emitter-B9fkUjJ0.esm.js.map +0 -1
  323. package/dist/chunks/MSFT_audio_emitter-DpJ8OxBw.esm.min.js +0 -2
  324. package/dist/chunks/MSFT_audio_emitter-DpJ8OxBw.esm.min.js.map +0 -1
  325. package/dist/chunks/MSFT_lod-DS6_zCB0.esm.js +0 -337
  326. package/dist/chunks/MSFT_lod-DS6_zCB0.esm.js.map +0 -1
  327. package/dist/chunks/MSFT_lod-qGdnTg6f.esm.min.js +0 -2
  328. package/dist/chunks/MSFT_lod-qGdnTg6f.esm.min.js.map +0 -1
  329. package/dist/chunks/MSFT_minecraftMesh-99ZDXpdT.esm.min.js +0 -2
  330. package/dist/chunks/MSFT_minecraftMesh-99ZDXpdT.esm.min.js.map +0 -1
  331. package/dist/chunks/MSFT_minecraftMesh-B60rmY-O.esm.js +0 -46
  332. package/dist/chunks/MSFT_minecraftMesh-B60rmY-O.esm.js.map +0 -1
  333. package/dist/chunks/MSFT_sRGBFactors-Br1RUJsD.esm.min.js +0 -2
  334. package/dist/chunks/MSFT_sRGBFactors-Br1RUJsD.esm.min.js.map +0 -1
  335. package/dist/chunks/MSFT_sRGBFactors-DVcyl59-.esm.js +0 -47
  336. package/dist/chunks/MSFT_sRGBFactors-DVcyl59-.esm.js.map +0 -1
  337. package/dist/chunks/animationGroup-D80NDoJK.esm.min.js +0 -2
  338. package/dist/chunks/animationGroup-D80NDoJK.esm.min.js.map +0 -1
  339. package/dist/chunks/animationGroup-DaKL_xr0.esm.js +0 -2482
  340. package/dist/chunks/animationGroup-DaKL_xr0.esm.js.map +0 -1
  341. package/dist/chunks/assetContainer-DUHXkzRR.esm.js +0 -1720
  342. package/dist/chunks/assetContainer-DUHXkzRR.esm.js.map +0 -1
  343. package/dist/chunks/assetContainer-DrlGfFUd.esm.min.js +0 -2
  344. package/dist/chunks/assetContainer-DrlGfFUd.esm.min.js.map +0 -1
  345. package/dist/chunks/audioEngine-BbaOte04.esm.min.js +0 -2
  346. package/dist/chunks/audioEngine-BbaOte04.esm.min.js.map +0 -1
  347. package/dist/chunks/audioEngine-Cl77hj6S.esm.js +0 -305
  348. package/dist/chunks/audioEngine-Cl77hj6S.esm.js.map +0 -1
  349. package/dist/chunks/bakedVertexAnimation-1Je9P1Wr.esm.js +0 -114
  350. package/dist/chunks/bakedVertexAnimation-1Je9P1Wr.esm.js.map +0 -1
  351. package/dist/chunks/bakedVertexAnimation-CqAC8NlK.esm.min.js +0 -2
  352. package/dist/chunks/bakedVertexAnimation-CqAC8NlK.esm.min.js.map +0 -1
  353. package/dist/chunks/basisTextureLoader-D6HL2Z1j.esm.js +0 -600
  354. package/dist/chunks/basisTextureLoader-D6HL2Z1j.esm.js.map +0 -1
  355. package/dist/chunks/basisTextureLoader-r7SDsKh7.esm.min.js +0 -2
  356. package/dist/chunks/basisTextureLoader-r7SDsKh7.esm.min.js.map +0 -1
  357. package/dist/chunks/dds-B3q7zTkZ.esm.js +0 -540
  358. package/dist/chunks/dds-B3q7zTkZ.esm.js.map +0 -1
  359. package/dist/chunks/dds-BBiaQw-Y.esm.min.js +0 -2
  360. package/dist/chunks/dds-BBiaQw-Y.esm.min.js.map +0 -1
  361. package/dist/chunks/ddsTextureLoader-C4PtTvoL.esm.js +0 -88
  362. package/dist/chunks/ddsTextureLoader-C4PtTvoL.esm.js.map +0 -1
  363. package/dist/chunks/ddsTextureLoader-CGA8DF-Z.esm.min.js +0 -2
  364. package/dist/chunks/ddsTextureLoader-CGA8DF-Z.esm.min.js.map +0 -1
  365. package/dist/chunks/decalFragment-BTxhBHbp.esm.js +0 -18
  366. package/dist/chunks/decalFragment-BTxhBHbp.esm.js.map +0 -1
  367. package/dist/chunks/decalFragment-n8HEgits.esm.min.js +0 -2
  368. package/dist/chunks/decalFragment-n8HEgits.esm.min.js.map +0 -1
  369. package/dist/chunks/default.fragment-CUJQb4Ds.esm.min.js +0 -2
  370. package/dist/chunks/default.fragment-CUJQb4Ds.esm.min.js.map +0 -1
  371. package/dist/chunks/default.fragment-CkvRouhO.esm.min.js +0 -2
  372. package/dist/chunks/default.fragment-CkvRouhO.esm.min.js.map +0 -1
  373. package/dist/chunks/default.fragment-D3CHq-x9.esm.js +0 -515
  374. package/dist/chunks/default.fragment-D3CHq-x9.esm.js.map +0 -1
  375. package/dist/chunks/default.fragment-DIWDeOi3.esm.js +0 -446
  376. package/dist/chunks/default.fragment-DIWDeOi3.esm.js.map +0 -1
  377. package/dist/chunks/default.vertex-7EvlstiX.esm.js +0 -181
  378. package/dist/chunks/default.vertex-7EvlstiX.esm.js.map +0 -1
  379. package/dist/chunks/default.vertex-DNVWc7Pt.esm.min.js +0 -2
  380. package/dist/chunks/default.vertex-DNVWc7Pt.esm.min.js.map +0 -1
  381. package/dist/chunks/default.vertex-DRUHVqKs.esm.min.js +0 -2
  382. package/dist/chunks/default.vertex-DRUHVqKs.esm.min.js.map +0 -1
  383. package/dist/chunks/default.vertex-Vc6tOJMI.esm.js +0 -202
  384. package/dist/chunks/default.vertex-Vc6tOJMI.esm.js.map +0 -1
  385. package/dist/chunks/defaultUboDeclaration-Bf-6awzG.esm.js +0 -15
  386. package/dist/chunks/defaultUboDeclaration-Bf-6awzG.esm.js.map +0 -1
  387. package/dist/chunks/defaultUboDeclaration-DDhQ3CTy.esm.js +0 -13
  388. package/dist/chunks/defaultUboDeclaration-DDhQ3CTy.esm.js.map +0 -1
  389. package/dist/chunks/defaultUboDeclaration-DYX0y14N.esm.min.js +0 -2
  390. package/dist/chunks/defaultUboDeclaration-DYX0y14N.esm.min.js.map +0 -1
  391. package/dist/chunks/defaultUboDeclaration-DcdUryhi.esm.min.js +0 -2
  392. package/dist/chunks/defaultUboDeclaration-DcdUryhi.esm.min.js.map +0 -1
  393. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +0 -11
  394. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +0 -1
  395. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +0 -2
  396. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +0 -1
  397. package/dist/chunks/dumpTools-BWNjR_G6.esm.min.js +0 -2
  398. package/dist/chunks/dumpTools-BWNjR_G6.esm.min.js.map +0 -1
  399. package/dist/chunks/dumpTools-hegDCvBc.esm.js +0 -200
  400. package/dist/chunks/dumpTools-hegDCvBc.esm.js.map +0 -1
  401. package/dist/chunks/engine-CZGy-n30.esm.js +0 -2216
  402. package/dist/chunks/engine-CZGy-n30.esm.js.map +0 -1
  403. package/dist/chunks/engine-iddO2T22.esm.min.js +0 -2
  404. package/dist/chunks/engine-iddO2T22.esm.min.js.map +0 -1
  405. package/dist/chunks/engine.common-CGXs9MDG.esm.min.js +0 -2
  406. package/dist/chunks/engine.common-CGXs9MDG.esm.min.js.map +0 -1
  407. package/dist/chunks/engine.common-Cqb8HjxX.esm.js +0 -1162
  408. package/dist/chunks/engine.common-Cqb8HjxX.esm.js.map +0 -1
  409. package/dist/chunks/envTextureLoader-Czm9uAXM.esm.js +0 -64
  410. package/dist/chunks/envTextureLoader-Czm9uAXM.esm.js.map +0 -1
  411. package/dist/chunks/envTextureLoader-D-YagZnu.esm.min.js +0 -2
  412. package/dist/chunks/envTextureLoader-D-YagZnu.esm.min.js.map +0 -1
  413. package/dist/chunks/environmentTextureTools-B5WZowyO.esm.min.js +0 -2
  414. package/dist/chunks/environmentTextureTools-B5WZowyO.esm.min.js.map +0 -1
  415. package/dist/chunks/environmentTextureTools-BrdD2X7A.esm.js +0 -382
  416. package/dist/chunks/environmentTextureTools-BrdD2X7A.esm.js.map +0 -1
  417. package/dist/chunks/exrTextureLoader-ClJnk3E3.esm.js +0 -1683
  418. package/dist/chunks/exrTextureLoader-ClJnk3E3.esm.js.map +0 -1
  419. package/dist/chunks/exrTextureLoader-s-Mog8_s.esm.min.js +0 -2
  420. package/dist/chunks/exrTextureLoader-s-Mog8_s.esm.min.js.map +0 -1
  421. package/dist/chunks/fogFragment-C2vW2rrh.esm.js +0 -102
  422. package/dist/chunks/fogFragment-C2vW2rrh.esm.js.map +0 -1
  423. package/dist/chunks/fogFragment-CAmhx99G.esm.min.js +0 -2
  424. package/dist/chunks/fogFragment-CAmhx99G.esm.min.js.map +0 -1
  425. package/dist/chunks/fogFragment-VhCT_edc.esm.min.js +0 -2
  426. package/dist/chunks/fogFragment-VhCT_edc.esm.min.js.map +0 -1
  427. package/dist/chunks/fogFragment-weVZWTdd.esm.js +0 -101
  428. package/dist/chunks/fogFragment-weVZWTdd.esm.js.map +0 -1
  429. package/dist/chunks/fresnelFunction-4cImVcNT.esm.js +0 -12
  430. package/dist/chunks/fresnelFunction-4cImVcNT.esm.js.map +0 -1
  431. package/dist/chunks/fresnelFunction-Da1sPcvo.esm.min.js +0 -2
  432. package/dist/chunks/fresnelFunction-Da1sPcvo.esm.min.js.map +0 -1
  433. package/dist/chunks/glTFLoader-7uvFneFt.esm.js +0 -7586
  434. package/dist/chunks/glTFLoader-7uvFneFt.esm.js.map +0 -1
  435. package/dist/chunks/glTFLoader-ChTng_Ew.esm.min.js +0 -2
  436. package/dist/chunks/glTFLoader-ChTng_Ew.esm.min.js.map +0 -1
  437. package/dist/chunks/glTFLoaderAnimation-BeBTAsWq.esm.js +0 -77
  438. package/dist/chunks/glTFLoaderAnimation-BeBTAsWq.esm.js.map +0 -1
  439. package/dist/chunks/glTFLoaderAnimation-CCHLAoRK.esm.min.js +0 -2
  440. package/dist/chunks/glTFLoaderAnimation-CCHLAoRK.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-CIez3XpU.esm.min.js +0 -2
  446. package/dist/chunks/harmonicsFunctions-CIez3XpU.esm.min.js.map +0 -1
  447. package/dist/chunks/harmonicsFunctions-CjYmCnUh.esm.min.js +0 -2
  448. package/dist/chunks/harmonicsFunctions-CjYmCnUh.esm.min.js.map +0 -1
  449. package/dist/chunks/harmonicsFunctions-D8X6XkcB.esm.js +0 -35
  450. package/dist/chunks/harmonicsFunctions-D8X6XkcB.esm.js.map +0 -1
  451. package/dist/chunks/harmonicsFunctions-i7q2aWAO.esm.js +0 -34
  452. package/dist/chunks/harmonicsFunctions-i7q2aWAO.esm.js.map +0 -1
  453. package/dist/chunks/hdrTextureLoader-C6WR9qDu.esm.min.js +0 -2
  454. package/dist/chunks/hdrTextureLoader-C6WR9qDu.esm.min.js.map +0 -1
  455. package/dist/chunks/hdrTextureLoader-DdEmyqh5.esm.js +0 -253
  456. package/dist/chunks/hdrTextureLoader-DdEmyqh5.esm.js.map +0 -1
  457. package/dist/chunks/helperFunctions-B8W8JpaI.esm.min.js +0 -2
  458. package/dist/chunks/helperFunctions-B8W8JpaI.esm.min.js.map +0 -1
  459. package/dist/chunks/helperFunctions-CV2C3XEf.esm.js +0 -108
  460. package/dist/chunks/helperFunctions-CV2C3XEf.esm.js.map +0 -1
  461. package/dist/chunks/helperFunctions-CgUf8pyk.esm.js +0 -80
  462. package/dist/chunks/helperFunctions-CgUf8pyk.esm.js.map +0 -1
  463. package/dist/chunks/helperFunctions-VM--MJVI.esm.min.js +0 -2
  464. package/dist/chunks/helperFunctions-VM--MJVI.esm.min.js.map +0 -1
  465. package/dist/chunks/iesTextureLoader-BuScKRlS.esm.js +0 -189
  466. package/dist/chunks/iesTextureLoader-BuScKRlS.esm.js.map +0 -1
  467. package/dist/chunks/iesTextureLoader-if1ntALJ.esm.min.js +0 -2
  468. package/dist/chunks/iesTextureLoader-if1ntALJ.esm.min.js.map +0 -1
  469. package/dist/chunks/index-7pOUdivR.esm.js +0 -74709
  470. package/dist/chunks/index-7pOUdivR.esm.js.map +0 -1
  471. package/dist/chunks/index-CHb7NKRY.esm.min.js +0 -57
  472. package/dist/chunks/index-CHb7NKRY.esm.min.js.map +0 -1
  473. package/dist/chunks/ktxTextureLoader-9L7lCOMk.esm.min.js +0 -2
  474. package/dist/chunks/ktxTextureLoader-9L7lCOMk.esm.min.js.map +0 -1
  475. package/dist/chunks/ktxTextureLoader-Ct-9NIcu.esm.js +0 -814
  476. package/dist/chunks/ktxTextureLoader-Ct-9NIcu.esm.js.map +0 -1
  477. package/dist/chunks/logDepthDeclaration-CFHaSiET.esm.min.js +0 -2
  478. package/dist/chunks/logDepthDeclaration-CFHaSiET.esm.min.js.map +0 -1
  479. package/dist/chunks/logDepthDeclaration-Cqb_Zo_s.esm.js +0 -11
  480. package/dist/chunks/logDepthDeclaration-Cqb_Zo_s.esm.js.map +0 -1
  481. package/dist/chunks/logDepthDeclaration-DCW2NExX.esm.min.js +0 -2
  482. package/dist/chunks/logDepthDeclaration-DCW2NExX.esm.min.js.map +0 -1
  483. package/dist/chunks/logDepthDeclaration-oJ9tNQ3q.esm.js +0 -35
  484. package/dist/chunks/logDepthDeclaration-oJ9tNQ3q.esm.js.map +0 -1
  485. package/dist/chunks/logDepthVertex-BCP-KTtt.esm.js +0 -81
  486. package/dist/chunks/logDepthVertex-BCP-KTtt.esm.js.map +0 -1
  487. package/dist/chunks/logDepthVertex-BwYkGLpu.esm.js +0 -77
  488. package/dist/chunks/logDepthVertex-BwYkGLpu.esm.js.map +0 -1
  489. package/dist/chunks/logDepthVertex-DoyGVTWA.esm.min.js +0 -2
  490. package/dist/chunks/logDepthVertex-DoyGVTWA.esm.min.js.map +0 -1
  491. package/dist/chunks/logDepthVertex-WdJWwsLV.esm.min.js +0 -2
  492. package/dist/chunks/logDepthVertex-WdJWwsLV.esm.min.js.map +0 -1
  493. package/dist/chunks/mainUVVaryingDeclaration-B_ziE3K3.esm.min.js +0 -2
  494. package/dist/chunks/mainUVVaryingDeclaration-B_ziE3K3.esm.min.js.map +0 -1
  495. package/dist/chunks/mainUVVaryingDeclaration-CRWcERPP.esm.js +0 -11
  496. package/dist/chunks/mainUVVaryingDeclaration-CRWcERPP.esm.js.map +0 -1
  497. package/dist/chunks/mainUVVaryingDeclaration-NuhfZTP4.esm.js +0 -11
  498. package/dist/chunks/mainUVVaryingDeclaration-NuhfZTP4.esm.js.map +0 -1
  499. package/dist/chunks/mainUVVaryingDeclaration-_WOgDBUD.esm.min.js +0 -2
  500. package/dist/chunks/mainUVVaryingDeclaration-_WOgDBUD.esm.min.js.map +0 -1
  501. package/dist/chunks/meshUboDeclaration-BkKdZCAL.esm.min.js +0 -2
  502. package/dist/chunks/meshUboDeclaration-BkKdZCAL.esm.min.js.map +0 -1
  503. package/dist/chunks/meshUboDeclaration-VO75rv0M.esm.js +0 -26
  504. package/dist/chunks/meshUboDeclaration-VO75rv0M.esm.js.map +0 -1
  505. package/dist/chunks/objFileLoader-BcUlaMO0.esm.min.js +0 -2
  506. package/dist/chunks/objFileLoader-BcUlaMO0.esm.min.js.map +0 -1
  507. package/dist/chunks/objFileLoader-CrSk62pN.esm.js +0 -1338
  508. package/dist/chunks/objFileLoader-CrSk62pN.esm.js.map +0 -1
  509. package/dist/chunks/oitFragment-9xHvc1pY.esm.min.js +0 -2
  510. package/dist/chunks/oitFragment-9xHvc1pY.esm.min.js.map +0 -1
  511. package/dist/chunks/oitFragment-BedTygSm.esm.js +0 -1240
  512. package/dist/chunks/oitFragment-BedTygSm.esm.js.map +0 -1
  513. package/dist/chunks/oitFragment-Dx3jhb-Y.esm.js +0 -1078
  514. package/dist/chunks/oitFragment-Dx3jhb-Y.esm.js.map +0 -1
  515. package/dist/chunks/oitFragment-wsShal2z.esm.min.js +0 -2
  516. package/dist/chunks/oitFragment-wsShal2z.esm.min.js.map +0 -1
  517. package/dist/chunks/pass.fragment-BAFAqEd3.esm.js +0 -15
  518. package/dist/chunks/pass.fragment-BAFAqEd3.esm.js.map +0 -1
  519. package/dist/chunks/pass.fragment-BCDgjoaP.esm.min.js +0 -2
  520. package/dist/chunks/pass.fragment-BCDgjoaP.esm.min.js.map +0 -1
  521. package/dist/chunks/pass.fragment-Cw2vMur1.esm.min.js +0 -2
  522. package/dist/chunks/pass.fragment-Cw2vMur1.esm.min.js.map +0 -1
  523. package/dist/chunks/pass.fragment-DvVPDD3q.esm.js +0 -15
  524. package/dist/chunks/pass.fragment-DvVPDD3q.esm.js.map +0 -1
  525. package/dist/chunks/pbr.fragment-BEgWbv9s.esm.min.js +0 -2
  526. package/dist/chunks/pbr.fragment-BEgWbv9s.esm.min.js.map +0 -1
  527. package/dist/chunks/pbr.fragment-CR8wXt2w.esm.js +0 -3232
  528. package/dist/chunks/pbr.fragment-CR8wXt2w.esm.js.map +0 -1
  529. package/dist/chunks/pbr.fragment-CmVN3-cU.esm.js +0 -3273
  530. package/dist/chunks/pbr.fragment-CmVN3-cU.esm.js.map +0 -1
  531. package/dist/chunks/pbr.fragment-DXqzm4Ha.esm.min.js +0 -2
  532. package/dist/chunks/pbr.fragment-DXqzm4Ha.esm.min.js.map +0 -1
  533. package/dist/chunks/pbr.vertex-B7DptLQs.esm.js +0 -214
  534. package/dist/chunks/pbr.vertex-B7DptLQs.esm.js.map +0 -1
  535. package/dist/chunks/pbr.vertex-BNDn-K_8.esm.min.js +0 -2
  536. package/dist/chunks/pbr.vertex-BNDn-K_8.esm.min.js.map +0 -1
  537. package/dist/chunks/pbr.vertex-Cp8jkMaM.esm.min.js +0 -2
  538. package/dist/chunks/pbr.vertex-Cp8jkMaM.esm.min.js.map +0 -1
  539. package/dist/chunks/pbr.vertex-rvNW4KDh.esm.js +0 -339
  540. package/dist/chunks/pbr.vertex-rvNW4KDh.esm.js.map +0 -1
  541. package/dist/chunks/postprocess.vertex-BRHkF-uK.esm.js +0 -20
  542. package/dist/chunks/postprocess.vertex-BRHkF-uK.esm.js.map +0 -1
  543. package/dist/chunks/postprocess.vertex-QT9kbb4b.esm.min.js +0 -2
  544. package/dist/chunks/postprocess.vertex-QT9kbb4b.esm.min.js.map +0 -1
  545. package/dist/chunks/rawTexture-CS3J_QPB.esm.min.js +0 -2
  546. package/dist/chunks/rawTexture-CS3J_QPB.esm.min.js.map +0 -1
  547. package/dist/chunks/rawTexture-CTQXP4lW.esm.js +0 -191
  548. package/dist/chunks/rawTexture-CTQXP4lW.esm.js.map +0 -1
  549. package/dist/chunks/ray-D1I6_i0K.esm.js +0 -946
  550. package/dist/chunks/ray-D1I6_i0K.esm.js.map +0 -1
  551. package/dist/chunks/ray-ffMmFIRM.esm.min.js +0 -2
  552. package/dist/chunks/ray-ffMmFIRM.esm.min.js.map +0 -1
  553. package/dist/chunks/rgbdDecode.fragment-BuXAGpKo.esm.js +0 -17
  554. package/dist/chunks/rgbdDecode.fragment-BuXAGpKo.esm.js.map +0 -1
  555. package/dist/chunks/rgbdDecode.fragment-Uqqwk9hd.esm.min.js +0 -2
  556. package/dist/chunks/rgbdDecode.fragment-Uqqwk9hd.esm.min.js.map +0 -1
  557. package/dist/chunks/rgbdDecode.fragment-iifwD2Tq.esm.js +0 -17
  558. package/dist/chunks/rgbdDecode.fragment-iifwD2Tq.esm.js.map +0 -1
  559. package/dist/chunks/rgbdDecode.fragment-ykJ6BacZ.esm.min.js +0 -2
  560. package/dist/chunks/rgbdDecode.fragment-ykJ6BacZ.esm.min.js.map +0 -1
  561. package/dist/chunks/rgbdEncode.fragment-B8trM95E.esm.js +0 -17
  562. package/dist/chunks/rgbdEncode.fragment-B8trM95E.esm.js.map +0 -1
  563. package/dist/chunks/rgbdEncode.fragment-Dk50Ggfr.esm.min.js +0 -2
  564. package/dist/chunks/rgbdEncode.fragment-Dk50Ggfr.esm.min.js.map +0 -1
  565. package/dist/chunks/rgbdEncode.fragment-OfZ629fV.esm.min.js +0 -2
  566. package/dist/chunks/rgbdEncode.fragment-OfZ629fV.esm.min.js.map +0 -1
  567. package/dist/chunks/rgbdEncode.fragment-S4QKY6JX.esm.js +0 -17
  568. package/dist/chunks/rgbdEncode.fragment-S4QKY6JX.esm.js.map +0 -1
  569. package/dist/chunks/splatFileLoader-BKRNi0Kz.esm.js +0 -3379
  570. package/dist/chunks/splatFileLoader-BKRNi0Kz.esm.js.map +0 -1
  571. package/dist/chunks/splatFileLoader-Bii2polh.esm.min.js +0 -2
  572. package/dist/chunks/splatFileLoader-Bii2polh.esm.min.js.map +0 -1
  573. package/dist/chunks/spotLight-Bx97rCpk.esm.js +0 -701
  574. package/dist/chunks/spotLight-Bx97rCpk.esm.js.map +0 -1
  575. package/dist/chunks/spotLight-WYJhdyXT.esm.min.js +0 -2
  576. package/dist/chunks/spotLight-WYJhdyXT.esm.min.js.map +0 -1
  577. package/dist/chunks/standardMaterial-B2COaxO7.esm.min.js +0 -2
  578. package/dist/chunks/standardMaterial-B2COaxO7.esm.min.js.map +0 -1
  579. package/dist/chunks/standardMaterial-DobO9sHt.esm.js +0 -1805
  580. package/dist/chunks/standardMaterial-DobO9sHt.esm.js.map +0 -1
  581. package/dist/chunks/stlFileLoader-BA8gtxRg.esm.js +0 -238
  582. package/dist/chunks/stlFileLoader-BA8gtxRg.esm.js.map +0 -1
  583. package/dist/chunks/stlFileLoader-hIvh4jC_.esm.min.js +0 -2
  584. package/dist/chunks/stlFileLoader-hIvh4jC_.esm.min.js.map +0 -1
  585. package/dist/chunks/tgaTextureLoader-BVKXLe7s.esm.js +0 -349
  586. package/dist/chunks/tgaTextureLoader-BVKXLe7s.esm.js.map +0 -1
  587. package/dist/chunks/tgaTextureLoader-autBbrGZ.esm.min.js +0 -2
  588. package/dist/chunks/tgaTextureLoader-autBbrGZ.esm.min.js.map +0 -1
  589. package/dist/chunks/thinEngine-BPspbumB.esm.min.js +0 -2
  590. package/dist/chunks/thinEngine-BPspbumB.esm.min.js.map +0 -1
  591. package/dist/chunks/thinEngine-wr-z1XFG.esm.js +0 -3848
  592. package/dist/chunks/thinEngine-wr-z1XFG.esm.js.map +0 -1
  593. package/dist/chunks/thinInstanceMesh-D2RBwifP.esm.min.js +0 -2
  594. package/dist/chunks/thinInstanceMesh-D2RBwifP.esm.min.js.map +0 -1
  595. package/dist/chunks/thinInstanceMesh-DVy1Ya49.esm.js +0 -314
  596. package/dist/chunks/thinInstanceMesh-DVy1Ya49.esm.js.map +0 -1
  597. package/dist/chunks/vertexColorMixing-B_-b5IVj.esm.js +0 -522
  598. package/dist/chunks/vertexColorMixing-B_-b5IVj.esm.js.map +0 -1
  599. package/dist/chunks/vertexColorMixing-Bd53icV7.esm.min.js +0 -2
  600. package/dist/chunks/vertexColorMixing-Bd53icV7.esm.min.js.map +0 -1
  601. package/dist/chunks/vertexColorMixing-Bm_nb2CS.esm.js +0 -412
  602. package/dist/chunks/vertexColorMixing-Bm_nb2CS.esm.js.map +0 -1
  603. package/dist/chunks/vertexColorMixing-DogY4EnF.esm.min.js +0 -2
  604. package/dist/chunks/vertexColorMixing-DogY4EnF.esm.min.js.map +0 -1
  605. package/dist/chunks/webgpuEngine-CZnjGjDY.esm.min.js +0 -2
  606. package/dist/chunks/webgpuEngine-CZnjGjDY.esm.min.js.map +0 -1
  607. package/dist/chunks/webgpuEngine-DQcXBSQC.esm.js +0 -11533
  608. package/dist/chunks/webgpuEngine-DQcXBSQC.esm.js.map +0 -1
  609. package/dist/chunks/workerPool-BUOov2K1.esm.js +0 -122
  610. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +0 -1
  611. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +0 -2
  612. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +0 -1
  613. package/lib/index.d.ts +0 -559
  614. package/lib/index.js +0 -2083
  615. package/lib/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"engine.common-CGXs9MDG.esm.min.js","sources":["../../../../../dev/core/dist/Misc/performanceMonitor.js","../../../../../dev/core/dist/Engines/renderTargetWrapper.js","../../../../../dev/core/dist/Engines/engine.common.js","../../../../../dev/core/dist/Engines/AbstractEngine/abstractEngine.texture.js","../../../../../dev/core/dist/Engines/AbstractEngine/abstractEngine.loadingScreen.js","../../../../../dev/core/dist/Engines/AbstractEngine/abstractEngine.dom.js","../../../../../dev/core/dist/Engines/AbstractEngine/abstractEngine.alpha.js","../../../../../dev/core/dist/Engines/AbstractEngine/abstractEngine.states.js","../../../../../dev/core/dist/Engines/AbstractEngine/abstractEngine.renderPass.js"],"sourcesContent":["import { PrecisionDate } from \"./precisionDate\";\n/**\n * Performance monitor tracks rolling average frame-time and frame-time variance over a user defined sliding-window\n */\nexport class PerformanceMonitor {\n /**\n * constructor\n * @param frameSampleSize The number of samples required to saturate the sliding window\n */\n constructor(frameSampleSize = 30) {\n this._enabled = true;\n this._rollingFrameTime = new RollingAverage(frameSampleSize);\n }\n /**\n * Samples current frame\n * @param timeMs A timestamp in milliseconds of the current frame to compare with other frames\n */\n sampleFrame(timeMs = PrecisionDate.Now) {\n if (!this._enabled) {\n return;\n }\n if (this._lastFrameTimeMs != null) {\n const dt = timeMs - this._lastFrameTimeMs;\n this._rollingFrameTime.add(dt);\n }\n this._lastFrameTimeMs = timeMs;\n }\n /**\n * Returns the average frame time in milliseconds over the sliding window (or the subset of frames sampled so far)\n */\n get averageFrameTime() {\n return this._rollingFrameTime.average;\n }\n /**\n * Returns the variance frame time in milliseconds over the sliding window (or the subset of frames sampled so far)\n */\n get averageFrameTimeVariance() {\n return this._rollingFrameTime.variance;\n }\n /**\n * Returns the frame time of the most recent frame\n */\n get instantaneousFrameTime() {\n return this._rollingFrameTime.history(0);\n }\n /**\n * Returns the average framerate in frames per second over the sliding window (or the subset of frames sampled so far)\n */\n get averageFPS() {\n return 1000.0 / this._rollingFrameTime.average;\n }\n /**\n * Returns the average framerate in frames per second using the most recent frame time\n */\n get instantaneousFPS() {\n const history = this._rollingFrameTime.history(0);\n if (history === 0) {\n return 0;\n }\n return 1000.0 / history;\n }\n /**\n * Returns true if enough samples have been taken to completely fill the sliding window\n */\n get isSaturated() {\n return this._rollingFrameTime.isSaturated();\n }\n /**\n * Enables contributions to the sliding window sample set\n */\n enable() {\n this._enabled = true;\n }\n /**\n * Disables contributions to the sliding window sample set\n * Samples will not be interpolated over the disabled period\n */\n disable() {\n this._enabled = false;\n //clear last sample to avoid interpolating over the disabled period when next enabled\n this._lastFrameTimeMs = null;\n }\n /**\n * Returns true if sampling is enabled\n */\n get isEnabled() {\n return this._enabled;\n }\n /**\n * Resets performance monitor\n */\n reset() {\n //clear last sample to avoid interpolating over the disabled period when next enabled\n this._lastFrameTimeMs = null;\n //wipe record\n this._rollingFrameTime.reset();\n }\n}\n/**\n * RollingAverage\n *\n * Utility to efficiently compute the rolling average and variance over a sliding window of samples\n */\nexport class RollingAverage {\n /**\n * constructor\n * @param length The number of samples required to saturate the sliding window\n */\n constructor(length) {\n this._samples = new Array(length);\n this.reset();\n }\n /**\n * Adds a sample to the sample set\n * @param v The sample value\n */\n add(v) {\n //http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance\n let delta;\n //we need to check if we've already wrapped round\n if (this.isSaturated()) {\n //remove bottom of stack from mean\n const bottomValue = this._samples[this._pos];\n delta = bottomValue - this.average;\n this.average -= delta / (this._sampleCount - 1);\n this._m2 -= delta * (bottomValue - this.average);\n }\n else {\n this._sampleCount++;\n }\n //add new value to mean\n delta = v - this.average;\n this.average += delta / this._sampleCount;\n this._m2 += delta * (v - this.average);\n //set the new variance\n this.variance = this._m2 / (this._sampleCount - 1);\n this._samples[this._pos] = v;\n this._pos++;\n this._pos %= this._samples.length; //positive wrap around\n }\n /**\n * Returns previously added values or null if outside of history or outside the sliding window domain\n * @param i Index in history. For example, pass 0 for the most recent value and 1 for the value before that\n * @returns Value previously recorded with add() or null if outside of range\n */\n history(i) {\n if (i >= this._sampleCount || i >= this._samples.length) {\n return 0;\n }\n const i0 = this._wrapPosition(this._pos - 1.0);\n return this._samples[this._wrapPosition(i0 - i)];\n }\n /**\n * Returns true if enough samples have been taken to completely fill the sliding window\n * @returns true if sample-set saturated\n */\n isSaturated() {\n return this._sampleCount >= this._samples.length;\n }\n /**\n * Resets the rolling average (equivalent to 0 samples taken so far)\n */\n reset() {\n this.average = 0;\n this.variance = 0;\n this._sampleCount = 0;\n this._pos = 0;\n this._m2 = 0;\n }\n /**\n * Wraps a value around the sample range boundaries\n * @param i Position in sample range, for example if the sample length is 5, and i is -3, then 2 will be returned.\n * @returns Wrapped position in sample range\n */\n _wrapPosition(i) {\n const max = this._samples.length;\n return ((i % max) + max) % max;\n }\n}\n//# sourceMappingURL=performanceMonitor.js.map","import { HasStencilAspect } from \"../Materials/Textures/internalTexture\";\nimport { Constants } from \"./constants\";\n/**\n * Wrapper around a render target (either single or multi textures)\n */\nexport class RenderTargetWrapper {\n /**\n * Gets the depth/stencil texture\n */\n get depthStencilTexture() {\n return this._depthStencilTexture;\n }\n /**\n * Sets the depth/stencil texture\n * @param texture The depth/stencil texture to set\n * @param disposeExisting True to dispose the existing depth/stencil texture (if any) before replacing it (default: true)\n */\n setDepthStencilTexture(texture, disposeExisting = true) {\n if (disposeExisting && this._depthStencilTexture) {\n this._depthStencilTexture.dispose();\n }\n this._depthStencilTexture = texture;\n this._generateDepthBuffer = this._generateStencilBuffer = false;\n if (texture) {\n this._generateDepthBuffer = true;\n this._generateStencilBuffer = HasStencilAspect(texture.format);\n }\n }\n /**\n * Indicates if the depth/stencil texture has a stencil aspect\n */\n get depthStencilTextureWithStencil() {\n return this._depthStencilTextureWithStencil;\n }\n /**\n * Defines if the render target wrapper is for a cube texture or if false a 2d texture\n */\n get isCube() {\n return this._isCube;\n }\n /**\n * Defines if the render target wrapper is for a single or multi target render wrapper\n */\n get isMulti() {\n return this._isMulti;\n }\n /**\n * Defines if the render target wrapper is for a single or an array of textures\n */\n get is2DArray() {\n return this.layers > 0;\n }\n /**\n * Defines if the render target wrapper is for a 3D texture\n */\n get is3D() {\n return this.depth > 0;\n }\n /**\n * Gets the size of the render target wrapper (used for cubes, as width=height in this case)\n */\n get size() {\n return this.width;\n }\n /**\n * Gets the width of the render target wrapper\n */\n get width() {\n return this._size.width ?? this._size;\n }\n /**\n * Gets the height of the render target wrapper\n */\n get height() {\n return this._size.height ?? this._size;\n }\n /**\n * Gets the number of layers of the render target wrapper (only used if is2DArray is true and wrapper is not a multi render target)\n */\n get layers() {\n return this._size.layers || 0;\n }\n /**\n * Gets the depth of the render target wrapper (only used if is3D is true and wrapper is not a multi render target)\n */\n get depth() {\n return this._size.depth || 0;\n }\n /**\n * Gets the render texture. If this is a multi render target, gets the first texture\n */\n get texture() {\n return this._textures?.[0] ?? null;\n }\n /**\n * Gets the list of render textures. If we are not in a multi render target, the list will be null (use the texture getter instead)\n */\n get textures() {\n return this._textures;\n }\n /**\n * Gets the face indices that correspond to the list of render textures. If we are not in a multi render target, the list will be null\n */\n get faceIndices() {\n return this._faceIndices;\n }\n /**\n * Gets the layer indices that correspond to the list of render textures. If we are not in a multi render target, the list will be null\n */\n get layerIndices() {\n return this._layerIndices;\n }\n /**\n * Gets the base array layer of a texture in the textures array\n * This is an number that is calculated based on the layer and face indices set for this texture at that index\n * @param index The index of the texture in the textures array to get the base array layer for\n * @returns the base array layer of the texture at the given index\n */\n getBaseArrayLayer(index) {\n if (!this._textures) {\n return -1;\n }\n const texture = this._textures[index];\n const layerIndex = this._layerIndices?.[index] ?? 0;\n const faceIndex = this._faceIndices?.[index] ?? 0;\n return texture.isCube ? layerIndex * 6 + faceIndex : texture.is3D ? 0 : layerIndex;\n }\n /**\n * Gets the sample count of the render target\n */\n get samples() {\n return this._samples;\n }\n /**\n * Sets the sample count of the render target\n * @param value sample count\n * @param initializeBuffers If set to true, the engine will make an initializing call to drawBuffers (only used when isMulti=true).\n * @param force true to force calling the update sample count engine function even if the current sample count is equal to value\n * @returns the sample count that has been set\n */\n setSamples(value, initializeBuffers = true, force = false) {\n if (this.samples === value && !force) {\n return value;\n }\n const result = this._isMulti\n ? this._engine.updateMultipleRenderTargetTextureSampleCount(this, value, initializeBuffers)\n : this._engine.updateRenderTargetTextureSampleCount(this, value);\n this._samples = value;\n return result;\n }\n /**\n * Resolves the MSAA textures into their non-MSAA version.\n * Note that if samples equals 1 (no MSAA), no resolve is performed.\n */\n resolveMSAATextures() {\n if (this.isMulti) {\n this._engine.resolveMultiFramebuffer(this);\n }\n else {\n this._engine.resolveFramebuffer(this);\n }\n }\n /**\n * Generates mipmaps for each texture of the render target\n */\n generateMipMaps() {\n if (this._engine._currentRenderTarget === this) {\n this._engine.unBindFramebuffer(this, true);\n }\n if (this.isMulti) {\n this._engine.generateMipMapsMultiFramebuffer(this);\n }\n else {\n this._engine.generateMipMapsFramebuffer(this);\n }\n }\n /**\n * Initializes the render target wrapper\n * @param isMulti true if the wrapper is a multi render target\n * @param isCube true if the wrapper should render to a cube texture\n * @param size size of the render target (width/height/layers)\n * @param engine engine used to create the render target\n * @param label defines the label to use for the wrapper (for debugging purpose only)\n */\n constructor(isMulti, isCube, size, engine, label) {\n this._textures = null;\n this._faceIndices = null;\n this._layerIndices = null;\n /** @internal */\n this._samples = 1;\n /** @internal */\n this._attachments = null;\n /** @internal */\n this._generateStencilBuffer = false;\n /** @internal */\n this._generateDepthBuffer = false;\n /** @internal */\n this._depthStencilTextureWithStencil = false;\n /**\n * Sets this property to true to disable the automatic MSAA resolve that happens when the render target wrapper is unbound (default is false)\n */\n this.disableAutomaticMSAAResolve = false;\n /**\n * Indicates if MSAA color texture(s) should be resolved when a resolve occur (either automatically by the engine or manually by the user) (default is true)\n * Note that you can trigger a MSAA resolve at any time by calling resolveMSAATextures()\n */\n this.resolveMSAAColors = true;\n /**\n * Indicates if MSAA depth texture should be resolved when a resolve occur (either automatically by the engine or manually by the user) (default is false)\n */\n this.resolveMSAADepth = false;\n /**\n * Indicates if MSAA stencil texture should be resolved when a resolve occur (either automatically by the engine or manually by the user) (default is false)\n */\n this.resolveMSAAStencil = false;\n this._isMulti = isMulti;\n this._isCube = isCube;\n this._size = size;\n this._engine = engine;\n this._depthStencilTexture = null;\n this.label = label;\n }\n /**\n * Sets the render target texture(s)\n * @param textures texture(s) to set\n */\n setTextures(textures) {\n if (Array.isArray(textures)) {\n this._textures = textures;\n }\n else if (textures) {\n this._textures = [textures];\n }\n else {\n this._textures = null;\n }\n }\n /**\n * Set a texture in the textures array\n * @param texture The texture to set\n * @param index The index in the textures array to set\n * @param disposePrevious If this function should dispose the previous texture\n */\n setTexture(texture, index = 0, disposePrevious = true) {\n if (!this._textures) {\n this._textures = [];\n }\n if (this._textures[index] === texture) {\n return;\n }\n if (this._textures[index] && disposePrevious) {\n this._textures[index].dispose();\n }\n this._textures[index] = texture;\n }\n /**\n * Sets the layer and face indices of every render target texture bound to each color attachment\n * @param layers The layers of each texture to be set\n * @param faces The faces of each texture to be set\n */\n setLayerAndFaceIndices(layers, faces) {\n this._layerIndices = layers;\n this._faceIndices = faces;\n }\n /**\n * Sets the layer and face indices of a texture in the textures array that should be bound to each color attachment\n * @param index The index of the texture in the textures array to modify\n * @param layer The layer of the texture to be set\n * @param face The face of the texture to be set\n */\n setLayerAndFaceIndex(index = 0, layer, face) {\n if (!this._layerIndices) {\n this._layerIndices = [];\n }\n if (!this._faceIndices) {\n this._faceIndices = [];\n }\n if (layer !== undefined && layer >= 0) {\n this._layerIndices[index] = layer;\n }\n if (face !== undefined && face >= 0) {\n this._faceIndices[index] = face;\n }\n }\n /**\n * Creates the depth/stencil texture\n * @param comparisonFunction Comparison function to use for the texture\n * @param bilinearFiltering true if bilinear filtering should be used when sampling the texture\n * @param generateStencil Not used anymore. \"format\" will be used to determine if stencil should be created\n * @param samples sample count to use when creating the texture (default: 1)\n * @param format format of the depth texture (default: Constants.TEXTUREFORMAT_DEPTH32_FLOAT)\n * @param label defines the label to use for the texture (for debugging purpose only)\n * @returns the depth/stencil created texture\n */\n createDepthStencilTexture(comparisonFunction = 0, bilinearFiltering = true, generateStencil = false, samples = 1, format = Constants.TEXTUREFORMAT_DEPTH32_FLOAT, label) {\n this._depthStencilTexture?.dispose();\n this._depthStencilTextureWithStencil = generateStencil;\n this._depthStencilTextureLabel = label;\n this._depthStencilTexture = this._engine.createDepthStencilTexture(this._size, {\n bilinearFiltering,\n comparisonFunction,\n generateStencil,\n isCube: this._isCube,\n samples,\n depthTextureFormat: format,\n label,\n }, this);\n return this._depthStencilTexture;\n }\n /**\n * @deprecated Use shareDepth instead\n * @param renderTarget Destination renderTarget\n */\n _shareDepth(renderTarget) {\n this.shareDepth(renderTarget);\n }\n /**\n * Shares the depth buffer of this render target with another render target.\n * @param renderTarget Destination renderTarget\n */\n shareDepth(renderTarget) {\n if (this._depthStencilTexture) {\n if (renderTarget._depthStencilTexture) {\n renderTarget._depthStencilTexture.dispose();\n }\n renderTarget._depthStencilTexture = this._depthStencilTexture;\n renderTarget._depthStencilTextureWithStencil = this._depthStencilTextureWithStencil;\n this._depthStencilTexture.incrementReferences();\n }\n }\n /**\n * @internal\n */\n _swapAndDie(target) {\n if (this.texture) {\n this.texture._swapAndDie(target);\n }\n this._textures = null;\n this.dispose(true);\n }\n _cloneRenderTargetWrapper() {\n let rtw = null;\n if (this._isMulti) {\n const textureArray = this.textures;\n if (textureArray && textureArray.length > 0) {\n let generateDepthTexture = false;\n let textureCount = textureArray.length;\n let depthTextureFormat = -1;\n const lastTextureSource = textureArray[textureArray.length - 1]._source;\n if (lastTextureSource === 14 /* InternalTextureSource.Depth */ || lastTextureSource === 12 /* InternalTextureSource.DepthStencil */) {\n generateDepthTexture = true;\n depthTextureFormat = textureArray[textureArray.length - 1].format;\n textureCount--;\n }\n const samplingModes = [];\n const types = [];\n const formats = [];\n const targetTypes = [];\n const faceIndex = [];\n const layerIndex = [];\n const layerCounts = [];\n const internalTexture2Index = {};\n for (let i = 0; i < textureCount; ++i) {\n const texture = textureArray[i];\n samplingModes.push(texture.samplingMode);\n types.push(texture.type);\n formats.push(texture.format);\n const index = internalTexture2Index[texture.uniqueId];\n if (index !== undefined) {\n targetTypes.push(-1);\n layerCounts.push(0);\n }\n else {\n internalTexture2Index[texture.uniqueId] = i;\n if (texture.is2DArray) {\n targetTypes.push(Constants.TEXTURE_2D_ARRAY);\n layerCounts.push(texture.depth);\n }\n else if (texture.isCube) {\n targetTypes.push(Constants.TEXTURE_CUBE_MAP);\n layerCounts.push(0);\n } /*else if (texture.isCubeArray) {\n targetTypes.push(Constants.TEXTURE_CUBE_MAP_ARRAY);\n layerCounts.push(texture.depth);\n }*/\n else if (texture.is3D) {\n targetTypes.push(Constants.TEXTURE_3D);\n layerCounts.push(texture.depth);\n }\n else {\n targetTypes.push(Constants.TEXTURE_2D);\n layerCounts.push(0);\n }\n }\n if (this._faceIndices) {\n faceIndex.push(this._faceIndices[i] ?? 0);\n }\n if (this._layerIndices) {\n layerIndex.push(this._layerIndices[i] ?? 0);\n }\n }\n const optionsMRT = {\n samplingModes,\n generateMipMaps: textureArray[0].generateMipMaps,\n generateDepthBuffer: this._generateDepthBuffer,\n generateStencilBuffer: this._generateStencilBuffer,\n generateDepthTexture,\n depthTextureFormat,\n types,\n formats,\n textureCount,\n targetTypes,\n faceIndex,\n layerIndex,\n layerCounts,\n label: this.label,\n };\n const size = {\n width: this.width,\n height: this.height,\n depth: this.depth,\n };\n rtw = this._engine.createMultipleRenderTarget(size, optionsMRT);\n for (let i = 0; i < textureCount; ++i) {\n if (targetTypes[i] !== -1) {\n continue;\n }\n const index = internalTexture2Index[textureArray[i].uniqueId];\n rtw.setTexture(rtw.textures[index], i);\n }\n }\n }\n else {\n const options = {};\n options.generateDepthBuffer = this._generateDepthBuffer;\n options.generateMipMaps = this.texture?.generateMipMaps ?? false;\n options.generateStencilBuffer = this._generateStencilBuffer;\n options.samplingMode = this.texture?.samplingMode;\n options.type = this.texture?.type;\n options.format = this.texture?.format;\n options.noColorAttachment = !this._textures;\n options.label = this.label;\n if (this.isCube) {\n rtw = this._engine.createRenderTargetCubeTexture(this.width, options);\n }\n else {\n const size = {\n width: this.width,\n height: this.height,\n layers: this.is2DArray || this.is3D ? this.texture?.depth : undefined,\n };\n rtw = this._engine.createRenderTargetTexture(size, options);\n }\n if (rtw.texture) {\n rtw.texture.isReady = true;\n }\n }\n return rtw;\n }\n _swapRenderTargetWrapper(target) {\n if (this._textures && target._textures) {\n for (let i = 0; i < this._textures.length; ++i) {\n this._textures[i]._swapAndDie(target._textures[i], false);\n target._textures[i].isReady = true;\n }\n }\n if (this._depthStencilTexture && target._depthStencilTexture) {\n this._depthStencilTexture._swapAndDie(target._depthStencilTexture);\n target._depthStencilTexture.isReady = true;\n }\n this._textures = null;\n this._depthStencilTexture = null;\n }\n /** @internal */\n _rebuild() {\n const rtw = this._cloneRenderTargetWrapper();\n if (!rtw) {\n return;\n }\n if (this._depthStencilTexture) {\n const samplingMode = this._depthStencilTexture.samplingMode;\n const format = this._depthStencilTexture.format;\n const bilinear = samplingMode === Constants.TEXTURE_BILINEAR_SAMPLINGMODE ||\n samplingMode === Constants.TEXTURE_TRILINEAR_SAMPLINGMODE ||\n samplingMode === Constants.TEXTURE_LINEAR_LINEAR_MIPNEAREST;\n rtw.createDepthStencilTexture(this._depthStencilTexture._comparisonFunction, bilinear, this._depthStencilTextureWithStencil, this._depthStencilTexture.samples, format, this._depthStencilTextureLabel);\n }\n if (this.samples > 1) {\n rtw.setSamples(this.samples);\n }\n rtw._swapRenderTargetWrapper(this);\n rtw.dispose();\n }\n /**\n * Releases the internal render textures\n */\n releaseTextures() {\n if (this._textures) {\n for (let i = 0; i < this._textures.length; ++i) {\n this._textures[i].dispose();\n }\n }\n this._textures = null;\n }\n /**\n * Disposes the whole render target wrapper\n * @param disposeOnlyFramebuffers true if only the frame buffers should be released (used for the WebGL engine). If false, all the textures will also be released\n */\n dispose(disposeOnlyFramebuffers = false) {\n if (!disposeOnlyFramebuffers) {\n this._depthStencilTexture?.dispose();\n this._depthStencilTexture = null;\n this.releaseTextures();\n }\n this._engine._releaseRenderTargetWrapper(this);\n }\n}\n//# sourceMappingURL=renderTargetWrapper.js.map","import { IsDocumentAvailable } from \"../Misc/domManagement\";\nimport { AbstractEngine } from \"./abstractEngine\";\nimport { EngineStore } from \"./engineStore\";\n/** @internal */\nfunction _DisableTouchAction(canvas) {\n if (!canvas || !canvas.setAttribute) {\n return;\n }\n canvas.setAttribute(\"touch-action\", \"none\");\n canvas.style.touchAction = \"none\";\n canvas.style.webkitTapHighlightColor = \"transparent\";\n}\n/** @internal */\nexport function _CommonInit(commonEngine, canvas, creationOptions) {\n commonEngine._onCanvasFocus = () => {\n commonEngine.onCanvasFocusObservable.notifyObservers(commonEngine);\n };\n commonEngine._onCanvasBlur = () => {\n commonEngine.onCanvasBlurObservable.notifyObservers(commonEngine);\n };\n commonEngine._onCanvasContextMenu = (evt) => {\n if (commonEngine.disableContextMenu) {\n evt.preventDefault();\n }\n };\n canvas.addEventListener(\"focus\", commonEngine._onCanvasFocus);\n canvas.addEventListener(\"blur\", commonEngine._onCanvasBlur);\n canvas.addEventListener(\"contextmenu\", commonEngine._onCanvasContextMenu);\n commonEngine._onBlur = () => {\n if (commonEngine.disablePerformanceMonitorInBackground) {\n commonEngine.performanceMonitor.disable();\n }\n commonEngine._windowIsBackground = true;\n };\n commonEngine._onFocus = () => {\n if (commonEngine.disablePerformanceMonitorInBackground) {\n commonEngine.performanceMonitor.enable();\n }\n commonEngine._windowIsBackground = false;\n };\n commonEngine._onCanvasPointerOut = (ev) => {\n // Check that the element at the point of the pointer out isn't the canvas and if it isn't, notify observers\n // Note: This is a workaround for a bug with Safari\n if (document.elementFromPoint(ev.clientX, ev.clientY) !== canvas) {\n commonEngine.onCanvasPointerOutObservable.notifyObservers(ev);\n }\n };\n const hostWindow = commonEngine.getHostWindow(); // it calls IsWindowObjectExist()\n if (hostWindow && typeof hostWindow.addEventListener === \"function\") {\n hostWindow.addEventListener(\"blur\", commonEngine._onBlur);\n hostWindow.addEventListener(\"focus\", commonEngine._onFocus);\n }\n canvas.addEventListener(\"pointerout\", commonEngine._onCanvasPointerOut);\n if (!creationOptions.doNotHandleTouchAction) {\n _DisableTouchAction(canvas);\n }\n // Create Audio Engine if needed.\n if (!AbstractEngine.audioEngine && creationOptions.audioEngine && AbstractEngine.AudioEngineFactory) {\n AbstractEngine.audioEngine = AbstractEngine.AudioEngineFactory(commonEngine.getRenderingCanvas(), commonEngine.getAudioContext(), commonEngine.getAudioDestination());\n }\n if (IsDocumentAvailable()) {\n // Fullscreen\n commonEngine._onFullscreenChange = () => {\n commonEngine.isFullscreen = !!document.fullscreenElement;\n // Pointer lock\n if (commonEngine.isFullscreen && commonEngine._pointerLockRequested && canvas) {\n RequestPointerlock(canvas);\n }\n };\n document.addEventListener(\"fullscreenchange\", commonEngine._onFullscreenChange, false);\n document.addEventListener(\"webkitfullscreenchange\", commonEngine._onFullscreenChange, false);\n // Pointer lock\n commonEngine._onPointerLockChange = () => {\n commonEngine.isPointerLock = document.pointerLockElement === canvas;\n };\n document.addEventListener(\"pointerlockchange\", commonEngine._onPointerLockChange, false);\n document.addEventListener(\"webkitpointerlockchange\", commonEngine._onPointerLockChange, false);\n }\n commonEngine.enableOfflineSupport = AbstractEngine.OfflineProviderFactory !== undefined;\n commonEngine._deterministicLockstep = !!creationOptions.deterministicLockstep;\n commonEngine._lockstepMaxSteps = creationOptions.lockstepMaxSteps || 0;\n commonEngine._timeStep = creationOptions.timeStep || 1 / 60;\n}\n/** @internal */\nexport function _CommonDispose(commonEngine, canvas) {\n // Release audio engine\n if (EngineStore.Instances.length === 1 && AbstractEngine.audioEngine) {\n AbstractEngine.audioEngine.dispose();\n AbstractEngine.audioEngine = null;\n }\n // Events\n const hostWindow = commonEngine.getHostWindow(); // it calls IsWindowObjectExist()\n if (hostWindow && typeof hostWindow.removeEventListener === \"function\") {\n hostWindow.removeEventListener(\"blur\", commonEngine._onBlur);\n hostWindow.removeEventListener(\"focus\", commonEngine._onFocus);\n }\n if (canvas) {\n canvas.removeEventListener(\"focus\", commonEngine._onCanvasFocus);\n canvas.removeEventListener(\"blur\", commonEngine._onCanvasBlur);\n canvas.removeEventListener(\"pointerout\", commonEngine._onCanvasPointerOut);\n canvas.removeEventListener(\"contextmenu\", commonEngine._onCanvasContextMenu);\n }\n if (IsDocumentAvailable()) {\n document.removeEventListener(\"fullscreenchange\", commonEngine._onFullscreenChange);\n document.removeEventListener(\"mozfullscreenchange\", commonEngine._onFullscreenChange);\n document.removeEventListener(\"webkitfullscreenchange\", commonEngine._onFullscreenChange);\n document.removeEventListener(\"msfullscreenchange\", commonEngine._onFullscreenChange);\n document.removeEventListener(\"pointerlockchange\", commonEngine._onPointerLockChange);\n document.removeEventListener(\"mspointerlockchange\", commonEngine._onPointerLockChange);\n document.removeEventListener(\"mozpointerlockchange\", commonEngine._onPointerLockChange);\n document.removeEventListener(\"webkitpointerlockchange\", commonEngine._onPointerLockChange);\n }\n}\n/**\n * Get Font size information\n * @param font font name\n * @returns an object containing ascent, height and descent\n */\nexport function GetFontOffset(font) {\n const text = document.createElement(\"span\");\n text.textContent = \"Hg\";\n text.style.font = font;\n const block = document.createElement(\"div\");\n block.style.display = \"inline-block\";\n block.style.width = \"1px\";\n block.style.height = \"0px\";\n block.style.verticalAlign = \"bottom\";\n const div = document.createElement(\"div\");\n div.style.whiteSpace = \"nowrap\";\n div.appendChild(text);\n div.appendChild(block);\n document.body.appendChild(div);\n let fontAscent = 0;\n let fontHeight = 0;\n try {\n fontHeight = block.getBoundingClientRect().top - text.getBoundingClientRect().top;\n block.style.verticalAlign = \"baseline\";\n fontAscent = block.getBoundingClientRect().top - text.getBoundingClientRect().top;\n }\n finally {\n document.body.removeChild(div);\n }\n return { ascent: fontAscent, height: fontHeight, descent: fontHeight - fontAscent };\n}\n/** @internal */\nexport function CreateImageBitmapFromSource(engine, imageSource, options) {\n const promise = new Promise((resolve, reject) => {\n const image = new Image();\n image.onload = () => {\n image.decode().then(() => {\n engine.createImageBitmap(image, options).then((imageBitmap) => {\n resolve(imageBitmap);\n });\n });\n };\n image.onerror = () => {\n reject(`Error loading image ${image.src}`);\n };\n image.src = imageSource;\n });\n return promise;\n}\n/** @internal */\nexport function ResizeImageBitmap(engine, image, bufferWidth, bufferHeight) {\n const canvas = engine.createCanvas(bufferWidth, bufferHeight);\n const context = canvas.getContext(\"2d\");\n if (!context) {\n throw new Error(\"Unable to get 2d context for resizeImageBitmap\");\n }\n context.drawImage(image, 0, 0);\n // Create VertexData from map data\n // Cast is due to wrong definition in lib.d.ts from ts 1.3 - https://github.com/Microsoft/TypeScript/issues/949\n const buffer = context.getImageData(0, 0, bufferWidth, bufferHeight).data;\n return buffer;\n}\n/**\n * Ask the browser to promote the current element to fullscreen rendering mode\n * @param element defines the DOM element to promote\n */\nexport function RequestFullscreen(element) {\n const requestFunction = element.requestFullscreen || element.webkitRequestFullscreen;\n if (!requestFunction) {\n return;\n }\n requestFunction.call(element);\n}\n/**\n * Asks the browser to exit fullscreen mode\n */\nexport function ExitFullscreen() {\n const anyDoc = document;\n if (document.exitFullscreen) {\n document.exitFullscreen();\n }\n else if (anyDoc.webkitCancelFullScreen) {\n anyDoc.webkitCancelFullScreen();\n }\n}\n/**\n * Ask the browser to promote the current element to pointerlock mode\n * @param element defines the DOM element to promote\n */\nexport function RequestPointerlock(element) {\n if (element.requestPointerLock) {\n // In some browsers, requestPointerLock returns a promise.\n // Handle possible rejections to avoid an unhandled top-level exception.\n const promise = element.requestPointerLock();\n if (promise instanceof Promise)\n promise\n .then(() => {\n element.focus();\n })\n .catch(() => { });\n else\n element.focus();\n }\n}\n/**\n * Asks the browser to exit pointerlock mode\n */\nexport function ExitPointerlock() {\n if (document.exitPointerLock) {\n document.exitPointerLock();\n }\n}\n//# sourceMappingURL=engine.common.js.map","import { AbstractEngine } from \"../abstractEngine\";\nAbstractEngine.prototype.createDepthStencilTexture = function (size, options, rtWrapper) {\n if (options.isCube) {\n const width = size.width || size;\n return this._createDepthStencilCubeTexture(width, options);\n }\n else {\n return this._createDepthStencilTexture(size, options, rtWrapper);\n }\n};\n//# sourceMappingURL=abstractEngine.texture.js.map","import { IsWindowObjectExist } from \"../../Misc/domManagement\";\nimport { AbstractEngine } from \"../abstractEngine\";\nAbstractEngine.prototype.displayLoadingUI = function () {\n if (!IsWindowObjectExist()) {\n return;\n }\n const loadingScreen = this.loadingScreen;\n if (loadingScreen) {\n loadingScreen.displayLoadingUI();\n }\n};\nAbstractEngine.prototype.hideLoadingUI = function () {\n if (!IsWindowObjectExist()) {\n return;\n }\n const loadingScreen = this._loadingScreen;\n if (loadingScreen) {\n loadingScreen.hideLoadingUI();\n }\n};\nObject.defineProperty(AbstractEngine.prototype, \"loadingScreen\", {\n get: function () {\n if (!this._loadingScreen && this._renderingCanvas) {\n this._loadingScreen = AbstractEngine.DefaultLoadingScreenFactory(this._renderingCanvas);\n }\n return this._loadingScreen;\n },\n set: function (value) {\n this._loadingScreen = value;\n },\n enumerable: true,\n configurable: true,\n});\nObject.defineProperty(AbstractEngine.prototype, \"loadingUIText\", {\n set: function (value) {\n this.loadingScreen.loadingUIText = value;\n },\n enumerable: true,\n configurable: true,\n});\nObject.defineProperty(AbstractEngine.prototype, \"loadingUIBackgroundColor\", {\n set: function (value) {\n this.loadingScreen.loadingUIBackgroundColor = value;\n },\n enumerable: true,\n configurable: true,\n});\n//# sourceMappingURL=abstractEngine.loadingScreen.js.map","import { AbstractEngine } from \"../abstractEngine\";\nAbstractEngine.prototype.getInputElement = function () {\n return this._renderingCanvas;\n};\nAbstractEngine.prototype.getRenderingCanvasClientRect = function () {\n if (!this._renderingCanvas) {\n return null;\n }\n return this._renderingCanvas.getBoundingClientRect();\n};\nAbstractEngine.prototype.getInputElementClientRect = function () {\n if (!this._renderingCanvas) {\n return null;\n }\n return this.getInputElement().getBoundingClientRect();\n};\nAbstractEngine.prototype.getAspectRatio = function (viewportOwner, useScreen = false) {\n const viewport = viewportOwner.viewport;\n return (this.getRenderWidth(useScreen) * viewport.width) / (this.getRenderHeight(useScreen) * viewport.height);\n};\nAbstractEngine.prototype.getScreenAspectRatio = function () {\n return this.getRenderWidth(true) / this.getRenderHeight(true);\n};\nAbstractEngine.prototype._verifyPointerLock = function () {\n this._onPointerLockChange?.();\n};\n//# sourceMappingURL=abstractEngine.dom.js.map","import { AbstractEngine } from \"../abstractEngine\";\nimport { Constants } from \"../constants\";\nAbstractEngine.prototype.setAlphaEquation = function (equation) {\n if (this._alphaEquation === equation) {\n return;\n }\n switch (equation) {\n case Constants.ALPHA_EQUATION_ADD:\n this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_ADD, Constants.GL_ALPHA_EQUATION_ADD);\n break;\n case Constants.ALPHA_EQUATION_SUBSTRACT:\n this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_SUBTRACT, Constants.GL_ALPHA_EQUATION_SUBTRACT);\n break;\n case Constants.ALPHA_EQUATION_REVERSE_SUBTRACT:\n this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_REVERSE_SUBTRACT, Constants.GL_ALPHA_EQUATION_REVERSE_SUBTRACT);\n break;\n case Constants.ALPHA_EQUATION_MAX:\n this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_MAX, Constants.GL_ALPHA_EQUATION_MAX);\n break;\n case Constants.ALPHA_EQUATION_MIN:\n this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_MIN, Constants.GL_ALPHA_EQUATION_MIN);\n break;\n case Constants.ALPHA_EQUATION_DARKEN:\n this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_MIN, Constants.GL_ALPHA_EQUATION_ADD);\n break;\n }\n this._alphaEquation = equation;\n};\n//# sourceMappingURL=abstractEngine.alpha.js.map","import { AbstractEngine } from \"../abstractEngine\";\nimport { Constants } from \"../constants\";\nimport \"./abstractEngine.alpha\";\nAbstractEngine.prototype.getInputElement = function () {\n return this._renderingCanvas;\n};\nAbstractEngine.prototype.getDepthFunction = function () {\n return this._depthCullingState.depthFunc;\n};\nAbstractEngine.prototype.setDepthFunction = function (depthFunc) {\n this._depthCullingState.depthFunc = depthFunc;\n};\nAbstractEngine.prototype.setDepthFunctionToGreater = function () {\n this.setDepthFunction(Constants.GREATER);\n};\nAbstractEngine.prototype.setDepthFunctionToGreaterOrEqual = function () {\n this.setDepthFunction(Constants.GEQUAL);\n};\nAbstractEngine.prototype.setDepthFunctionToLess = function () {\n this.setDepthFunction(Constants.LESS);\n};\nAbstractEngine.prototype.setDepthFunctionToLessOrEqual = function () {\n this.setDepthFunction(Constants.LEQUAL);\n};\nAbstractEngine.prototype.getDepthWrite = function () {\n return this._depthCullingState.depthMask;\n};\nAbstractEngine.prototype.setDepthWrite = function (enable) {\n this._depthCullingState.depthMask = enable;\n};\nAbstractEngine.prototype.getStencilBuffer = function () {\n return this._stencilState.stencilTest;\n};\nAbstractEngine.prototype.setStencilBuffer = function (enable) {\n this._stencilState.stencilTest = enable;\n};\nAbstractEngine.prototype.getStencilMask = function () {\n return this._stencilState.stencilMask;\n};\nAbstractEngine.prototype.setStencilMask = function (mask) {\n this._stencilState.stencilMask = mask;\n};\nAbstractEngine.prototype.getStencilFunction = function () {\n return this._stencilState.stencilFunc;\n};\nAbstractEngine.prototype.getStencilFunctionReference = function () {\n return this._stencilState.stencilFuncRef;\n};\nAbstractEngine.prototype.getStencilFunctionMask = function () {\n return this._stencilState.stencilFuncMask;\n};\nAbstractEngine.prototype.setStencilFunction = function (stencilFunc) {\n this._stencilState.stencilFunc = stencilFunc;\n};\nAbstractEngine.prototype.setStencilFunctionReference = function (reference) {\n this._stencilState.stencilFuncRef = reference;\n};\nAbstractEngine.prototype.setStencilFunctionMask = function (mask) {\n this._stencilState.stencilFuncMask = mask;\n};\nAbstractEngine.prototype.getStencilOperationFail = function () {\n return this._stencilState.stencilOpStencilFail;\n};\nAbstractEngine.prototype.getStencilOperationDepthFail = function () {\n return this._stencilState.stencilOpDepthFail;\n};\nAbstractEngine.prototype.getStencilOperationPass = function () {\n return this._stencilState.stencilOpStencilDepthPass;\n};\nAbstractEngine.prototype.setStencilOperationFail = function (operation) {\n this._stencilState.stencilOpStencilFail = operation;\n};\nAbstractEngine.prototype.setStencilOperationDepthFail = function (operation) {\n this._stencilState.stencilOpDepthFail = operation;\n};\nAbstractEngine.prototype.setStencilOperationPass = function (operation) {\n this._stencilState.stencilOpStencilDepthPass = operation;\n};\nAbstractEngine.prototype.cacheStencilState = function () {\n this._cachedStencilBuffer = this.getStencilBuffer();\n this._cachedStencilFunction = this.getStencilFunction();\n this._cachedStencilMask = this.getStencilMask();\n this._cachedStencilOperationPass = this.getStencilOperationPass();\n this._cachedStencilOperationFail = this.getStencilOperationFail();\n this._cachedStencilOperationDepthFail = this.getStencilOperationDepthFail();\n this._cachedStencilReference = this.getStencilFunctionReference();\n};\nAbstractEngine.prototype.restoreStencilState = function () {\n this.setStencilFunction(this._cachedStencilFunction);\n this.setStencilMask(this._cachedStencilMask);\n this.setStencilBuffer(this._cachedStencilBuffer);\n this.setStencilOperationPass(this._cachedStencilOperationPass);\n this.setStencilOperationFail(this._cachedStencilOperationFail);\n this.setStencilOperationDepthFail(this._cachedStencilOperationDepthFail);\n this.setStencilFunctionReference(this._cachedStencilReference);\n};\nAbstractEngine.prototype.setAlphaConstants = function (r, g, b, a) {\n this._alphaState.setAlphaBlendConstants(r, g, b, a);\n};\nAbstractEngine.prototype.getAlphaMode = function () {\n return this._alphaMode;\n};\nAbstractEngine.prototype.getAlphaEquation = function () {\n return this._alphaEquation;\n};\n//# sourceMappingURL=abstractEngine.states.js.map","import { AbstractEngine } from \"../abstractEngine\";\nAbstractEngine.prototype.getRenderPassNames = function () {\n return this._renderPassNames;\n};\nAbstractEngine.prototype.getCurrentRenderPassName = function () {\n return this._renderPassNames[this.currentRenderPassId];\n};\nAbstractEngine.prototype.createRenderPassId = function (name) {\n // Note: render pass id == 0 is always for the main render pass\n const id = ++AbstractEngine._RenderPassIdCounter;\n this._renderPassNames[id] = name ?? \"NONAME\";\n return id;\n};\nAbstractEngine.prototype.releaseRenderPassId = function (id) {\n this._renderPassNames[id] = undefined;\n for (let s = 0; s < this.scenes.length; ++s) {\n const scene = this.scenes[s];\n for (let m = 0; m < scene.meshes.length; ++m) {\n const mesh = scene.meshes[m];\n if (mesh.subMeshes) {\n for (let b = 0; b < mesh.subMeshes.length; ++b) {\n const subMesh = mesh.subMeshes[b];\n subMesh._removeDrawWrapper(id);\n }\n }\n }\n }\n};\n//# sourceMappingURL=abstractEngine.renderPass.js.map"],"names":["PerformanceMonitor","constructor","frameSampleSize","this","_enabled","_rollingFrameTime","RollingAverage","sampleFrame","timeMs","PrecisionDate","Now","_lastFrameTimeMs","dt","add","averageFrameTime","average","averageFrameTimeVariance","variance","instantaneousFrameTime","history","averageFPS","instantaneousFPS","isSaturated","enable","disable","isEnabled","reset","length","_samples","Array","v","delta","bottomValue","_pos","_sampleCount","_m2","i","i0","_wrapPosition","max","RenderTargetWrapper","depthStencilTexture","_depthStencilTexture","setDepthStencilTexture","texture","disposeExisting","dispose","_generateDepthBuffer","_generateStencilBuffer","HasStencilAspect","format","depthStencilTextureWithStencil","_depthStencilTextureWithStencil","isCube","_isCube","isMulti","_isMulti","is2DArray","layers","is3D","depth","size","width","_size","height","_textures","textures","faceIndices","_faceIndices","layerIndices","_layerIndices","getBaseArrayLayer","index","layerIndex","faceIndex","samples","setSamples","value","initializeBuffers","force","result","_engine","updateMultipleRenderTargetTextureSampleCount","updateRenderTargetTextureSampleCount","resolveMSAATextures","resolveMultiFramebuffer","resolveFramebuffer","generateMipMaps","_currentRenderTarget","unBindFramebuffer","generateMipMapsMultiFramebuffer","generateMipMapsFramebuffer","engine","label","_attachments","disableAutomaticMSAAResolve","resolveMSAAColors","resolveMSAADepth","resolveMSAAStencil","setTextures","isArray","setTexture","disposePrevious","setLayerAndFaceIndices","faces","setLayerAndFaceIndex","layer","face","undefined","createDepthStencilTexture","comparisonFunction","bilinearFiltering","generateStencil","Constants","TEXTUREFORMAT_DEPTH32_FLOAT","_depthStencilTextureLabel","depthTextureFormat","_shareDepth","renderTarget","shareDepth","incrementReferences","_swapAndDie","target","_cloneRenderTargetWrapper","rtw","textureArray","generateDepthTexture","textureCount","lastTextureSource","_source","samplingModes","types","formats","targetTypes","layerCounts","internalTexture2Index","push","samplingMode","type","uniqueId","TEXTURE_2D_ARRAY","TEXTURE_CUBE_MAP","TEXTURE_3D","TEXTURE_2D","optionsMRT","generateDepthBuffer","generateStencilBuffer","createMultipleRenderTarget","options","noColorAttachment","createRenderTargetCubeTexture","createRenderTargetTexture","isReady","_swapRenderTargetWrapper","_rebuild","bilinear","TEXTURE_BILINEAR_SAMPLINGMODE","TEXTURE_TRILINEAR_SAMPLINGMODE","TEXTURE_LINEAR_LINEAR_MIPNEAREST","_comparisonFunction","releaseTextures","disposeOnlyFramebuffers","_releaseRenderTargetWrapper","_CommonInit","commonEngine","canvas","creationOptions","_onCanvasFocus","onCanvasFocusObservable","notifyObservers","_onCanvasBlur","onCanvasBlurObservable","_onCanvasContextMenu","evt","disableContextMenu","preventDefault","addEventListener","_onBlur","disablePerformanceMonitorInBackground","performanceMonitor","_windowIsBackground","_onFocus","_onCanvasPointerOut","ev","document","elementFromPoint","clientX","clientY","onCanvasPointerOutObservable","hostWindow","getHostWindow","doNotHandleTouchAction","setAttribute","style","touchAction","webkitTapHighlightColor","_DisableTouchAction","AbstractEngine","audioEngine","AudioEngineFactory","getRenderingCanvas","getAudioContext","getAudioDestination","IsDocumentAvailable","_onFullscreenChange","isFullscreen","fullscreenElement","_pointerLockRequested","RequestPointerlock","_onPointerLockChange","isPointerLock","pointerLockElement","enableOfflineSupport","OfflineProviderFactory","_deterministicLockstep","deterministicLockstep","_lockstepMaxSteps","lockstepMaxSteps","_timeStep","timeStep","_CommonDispose","EngineStore","Instances","removeEventListener","GetFontOffset","font","text","createElement","textContent","block","display","verticalAlign","div","whiteSpace","appendChild","body","fontAscent","fontHeight","getBoundingClientRect","top","removeChild","ascent","descent","CreateImageBitmapFromSource","imageSource","Promise","resolve","reject","image","Image","onload","decode","then","createImageBitmap","imageBitmap","onerror","src","ResizeImageBitmap","bufferWidth","bufferHeight","context","createCanvas","getContext","Error","drawImage","getImageData","data","RequestFullscreen","element","requestFunction","requestFullscreen","webkitRequestFullscreen","call","ExitFullscreen","anyDoc","exitFullscreen","webkitCancelFullScreen","requestPointerLock","promise","focus","catch","ExitPointerlock","exitPointerLock","prototype","rtWrapper","_createDepthStencilCubeTexture","_createDepthStencilTexture","displayLoadingUI","IsWindowObjectExist","loadingScreen","hideLoadingUI","_loadingScreen","Object","defineProperty","get","_renderingCanvas","DefaultLoadingScreenFactory","set","enumerable","configurable","loadingUIText","loadingUIBackgroundColor","getInputElement","getRenderingCanvasClientRect","getInputElementClientRect","getAspectRatio","viewportOwner","useScreen","viewport","getRenderWidth","getRenderHeight","getScreenAspectRatio","_verifyPointerLock","setAlphaEquation","equation","_alphaEquation","ALPHA_EQUATION_ADD","_alphaState","setAlphaEquationParameters","GL_ALPHA_EQUATION_ADD","ALPHA_EQUATION_SUBSTRACT","GL_ALPHA_EQUATION_SUBTRACT","ALPHA_EQUATION_REVERSE_SUBTRACT","GL_ALPHA_EQUATION_REVERSE_SUBTRACT","ALPHA_EQUATION_MAX","GL_ALPHA_EQUATION_MAX","ALPHA_EQUATION_MIN","GL_ALPHA_EQUATION_MIN","ALPHA_EQUATION_DARKEN","getDepthFunction","_depthCullingState","depthFunc","setDepthFunction","setDepthFunctionToGreater","GREATER","setDepthFunctionToGreaterOrEqual","GEQUAL","setDepthFunctionToLess","LESS","setDepthFunctionToLessOrEqual","LEQUAL","getDepthWrite","depthMask","setDepthWrite","getStencilBuffer","_stencilState","stencilTest","setStencilBuffer","getStencilMask","stencilMask","setStencilMask","mask","getStencilFunction","stencilFunc","getStencilFunctionReference","stencilFuncRef","getStencilFunctionMask","stencilFuncMask","setStencilFunction","setStencilFunctionReference","reference","setStencilFunctionMask","getStencilOperationFail","stencilOpStencilFail","getStencilOperationDepthFail","stencilOpDepthFail","getStencilOperationPass","stencilOpStencilDepthPass","setStencilOperationFail","operation","setStencilOperationDepthFail","setStencilOperationPass","cacheStencilState","_cachedStencilBuffer","_cachedStencilFunction","_cachedStencilMask","_cachedStencilOperationPass","_cachedStencilOperationFail","_cachedStencilOperationDepthFail","_cachedStencilReference","restoreStencilState","setAlphaConstants","r","g","b","a","setAlphaBlendConstants","getAlphaMode","_alphaMode","getAlphaEquation","getRenderPassNames","_renderPassNames","getCurrentRenderPassName","currentRenderPassId","createRenderPassId","name","id","_RenderPassIdCounter","releaseRenderPassId","s","scenes","scene","m","meshes","mesh","subMeshes","_removeDrawWrapper"],"mappings":"0FAIO,MAAMA,EAKT,WAAAC,CAAYC,EAAkB,IAC1BC,KAAKC,UAAW,EAChBD,KAAKE,kBAAoB,IAAIC,EAAeJ,EACpD,CAKI,WAAAK,CAAYC,EAASC,EAAcC,KAC/B,GAAKP,KAAKC,SAAV,CAGA,GAA6B,MAAzBD,KAAKQ,iBAA0B,CAC/B,MAAMC,EAAKJ,EAASL,KAAKQ,iBACzBR,KAAKE,kBAAkBQ,IAAID,EACvC,CACQT,KAAKQ,iBAAmBH,CALhC,CAMA,CAII,oBAAIM,GACA,OAAOX,KAAKE,kBAAkBU,OACtC,CAII,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