@babylonjs/viewer 7.39.1 → 7.39.2-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/photoStudio.env +0 -0
- package/dist/babylon-viewer.esm.js +2 -0
- package/dist/babylon-viewer.esm.js.map +1 -0
- package/dist/babylon-viewer.esm.min.js +2 -0
- package/dist/babylon-viewer.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_ies-4qR36gYU.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_ies-4qR36gYU.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_ies-BPlraXeK.esm.js +84 -0
- package/dist/chunks/EXT_lights_ies-BPlraXeK.esm.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-BKcuKJnG.esm.js +171 -0
- package/dist/chunks/EXT_lights_image_based-BKcuKJnG.esm.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-BdVvViaf.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_image_based-BdVvViaf.esm.min.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BuZ_HIlp.esm.min.js +2 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BuZ_HIlp.esm.min.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-D18AKsGb.esm.js +86 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-D18AKsGb.esm.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-CQh4jdfN.esm.min.js +2 -0
- package/dist/chunks/EXT_meshopt_compression-CQh4jdfN.esm.min.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-O1MQUocb.esm.js +134 -0
- package/dist/chunks/EXT_meshopt_compression-O1MQUocb.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-CCxF0wVt.esm.js +44 -0
- package/dist/chunks/EXT_texture_avif-CCxF0wVt.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-DlR_5lIH.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_avif-DlR_5lIH.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-BZWMblFL.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_webp-BZWMblFL.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-CkYnXjDY.esm.js +43 -0
- package/dist/chunks/EXT_texture_webp-CkYnXjDY.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-BS_0W2ux.esm.js +64 -0
- package/dist/chunks/ExtrasAsMetadata-BS_0W2ux.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-D94X7SZK.esm.min.js +2 -0
- package/dist/chunks/ExtrasAsMetadata-D94X7SZK.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-B5MIvuuG.esm.min.js +2 -0
- package/dist/chunks/KHR_animation_pointer-B5MIvuuG.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-DJR-hNZz.esm.js +352 -0
- package/dist/chunks/KHR_animation_pointer-DJR-hNZz.esm.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-1IaOqeJI.esm.min.js +2 -0
- package/dist/chunks/KHR_draco_mesh_compression-1IaOqeJI.esm.min.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-BMN23sqe.esm.js +617 -0
- package/dist/chunks/KHR_draco_mesh_compression-BMN23sqe.esm.js.map +1 -0
- package/dist/chunks/KHR_interactivity-D6IKznLX.esm.min.js +2 -0
- package/dist/chunks/KHR_interactivity-D6IKznLX.esm.min.js.map +1 -0
- package/dist/chunks/KHR_interactivity-FHoEiTSr.esm.js +4033 -0
- package/dist/chunks/KHR_interactivity-FHoEiTSr.esm.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-CS0_Hl-k.esm.min.js +2 -0
- package/dist/chunks/KHR_lights_punctual-CS0_Hl-k.esm.min.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-CU8SL4YU.esm.js +581 -0
- package/dist/chunks/KHR_lights_punctual-CU8SL4YU.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-BmoCKU2T.esm.js +65 -0
- package/dist/chunks/KHR_materials_anisotropy-BmoCKU2T.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-c5WiyW7u.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_anisotropy-c5WiyW7u.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-BevP4R0R.esm.js +96 -0
- package/dist/chunks/KHR_materials_clearcoat-BevP4R0R.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-D0oqehbY.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_clearcoat-D0oqehbY.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-3jJq_5Ei.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-3jJq_5Ei.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-VpLwEVvR.esm.js +97 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-VpLwEVvR.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-KcCrKADQ.esm.js +62 -0
- package/dist/chunks/KHR_materials_dispersion-KcCrKADQ.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-NGevtKqF.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_dispersion-NGevtKqF.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-B3Cpv5ft.esm.js +55 -0
- package/dist/chunks/KHR_materials_emissive_strength-B3Cpv5ft.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-CjL_dxqU.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_emissive_strength-CjL_dxqU.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-C1zdaIo6.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_ior-C1zdaIo6.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-DVdZ4qiW.esm.js +64 -0
- package/dist/chunks/KHR_materials_ior-DVdZ4qiW.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-CNNoTWsO.esm.js +72 -0
- package/dist/chunks/KHR_materials_iridescence-CNNoTWsO.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-nRyZ5G0K.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_iridescence-nRyZ5G0K.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BF5M7ba6.esm.js +81 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BF5M7ba6.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CcK3cSiv.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CcK3cSiv.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-CLR1ycGi.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_sheen-CLR1ycGi.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-Do0Q9hN6.esm.js +85 -0
- package/dist/chunks/KHR_materials_sheen-Do0Q9hN6.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-D8LxzxVK.esm.js +75 -0
- package/dist/chunks/KHR_materials_specular-D8LxzxVK.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-DFAw3GK3.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_specular-DFAw3GK3.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-DJXq51hn.esm.js +307 -0
- package/dist/chunks/KHR_materials_transmission-DJXq51hn.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-DwVHJye5.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_transmission-DwVHJye5.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-DMhNm_H7.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_unlit-DMhNm_H7.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-Fz1AnVdn.esm.js +74 -0
- package/dist/chunks/KHR_materials_unlit-Fz1AnVdn.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-C8ln7j0W.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_variants-C8ln7j0W.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-DoA-NgHQ.esm.js +262 -0
- package/dist/chunks/KHR_materials_variants-DoA-NgHQ.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-D3xYuzG6.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_volume-D3xYuzG6.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-DEGZfaf7.esm.js +87 -0
- package/dist/chunks/KHR_materials_volume-DEGZfaf7.esm.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-CCStwARs.esm.min.js +2 -0
- package/dist/chunks/KHR_mesh_quantization-CCStwARs.esm.min.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-CXx2AbVp.esm.js +26 -0
- package/dist/chunks/KHR_mesh_quantization-CXx2AbVp.esm.js.map +1 -0
- package/dist/chunks/KHR_node_hoverability-CTR7HT3o.esm.js +39 -0
- package/dist/chunks/KHR_node_hoverability-CTR7HT3o.esm.js.map +1 -0
- package/dist/chunks/KHR_node_hoverability-x2eI6Gs9.esm.min.js +2 -0
- package/dist/chunks/KHR_node_hoverability-x2eI6Gs9.esm.min.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-4HdLmsRo.esm.js +46 -0
- package/dist/chunks/KHR_node_visibility-4HdLmsRo.esm.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-BCcg-0od.esm.min.js +2 -0
- package/dist/chunks/KHR_node_visibility-BCcg-0od.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-DYy4wQV8.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_basisu-DYy4wQV8.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-xtFTmbqu.esm.js +43 -0
- package/dist/chunks/KHR_texture_basisu-xtFTmbqu.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-BFfAtZVl.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_transform-BFfAtZVl.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-DWbdthW6.esm.js +63 -0
- package/dist/chunks/KHR_texture_transform-DWbdthW6.esm.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-Cq7VTWzM.esm.js +51 -0
- package/dist/chunks/KHR_xmp_json_ld-Cq7VTWzM.esm.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-DWdeU_IR.esm.min.js +2 -0
- package/dist/chunks/KHR_xmp_json_ld-DWdeU_IR.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-CTikE_8C.esm.min.js +2 -0
- package/dist/chunks/MSFT_audio_emitter-CTikE_8C.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-g-xL1ZbP.esm.js +2207 -0
- package/dist/chunks/MSFT_audio_emitter-g-xL1ZbP.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-CWGEeOE_.esm.js +337 -0
- package/dist/chunks/MSFT_lod-CWGEeOE_.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-CplrNR_z.esm.min.js +2 -0
- package/dist/chunks/MSFT_lod-CplrNR_z.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-BN62A-kY.esm.min.js +2 -0
- package/dist/chunks/MSFT_minecraftMesh-BN62A-kY.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-CWbwJqYL.esm.js +46 -0
- package/dist/chunks/MSFT_minecraftMesh-CWbwJqYL.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-D7PCfKro.esm.min.js +2 -0
- package/dist/chunks/MSFT_sRGBFactors-D7PCfKro.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-Dkr-KEwE.esm.js +47 -0
- package/dist/chunks/MSFT_sRGBFactors-Dkr-KEwE.esm.js.map +1 -0
- package/dist/chunks/animationGroup-DM-j9N1V.esm.js +2482 -0
- package/dist/chunks/animationGroup-DM-j9N1V.esm.js.map +1 -0
- package/dist/chunks/animationGroup-Kda0guiA.esm.min.js +2 -0
- package/dist/chunks/animationGroup-Kda0guiA.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-CFUATXVJ.esm.js +1720 -0
- package/dist/chunks/assetContainer-CFUATXVJ.esm.js.map +1 -0
- package/dist/chunks/assetContainer-jgIpF0Xj.esm.min.js +2 -0
- package/dist/chunks/assetContainer-jgIpF0Xj.esm.min.js.map +1 -0
- package/dist/chunks/audioEngine-DP7mTb_N.esm.js +305 -0
- package/dist/chunks/audioEngine-DP7mTb_N.esm.js.map +1 -0
- package/dist/chunks/audioEngine-DXwzZRuc.esm.min.js +2 -0
- package/dist/chunks/audioEngine-DXwzZRuc.esm.min.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-D93QZjVC.esm.js +114 -0
- package/dist/chunks/bakedVertexAnimation-D93QZjVC.esm.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-a0VE1nIK.esm.min.js +2 -0
- package/dist/chunks/bakedVertexAnimation-a0VE1nIK.esm.min.js.map +1 -0
- package/dist/chunks/basisTextureLoader-BRauwpC9.esm.min.js +2 -0
- package/dist/chunks/basisTextureLoader-BRauwpC9.esm.min.js.map +1 -0
- package/dist/chunks/basisTextureLoader-BlQn3PhW.esm.js +600 -0
- package/dist/chunks/basisTextureLoader-BlQn3PhW.esm.js.map +1 -0
- package/dist/chunks/dds-BakVE7_G.esm.js +540 -0
- package/dist/chunks/dds-BakVE7_G.esm.js.map +1 -0
- package/dist/chunks/dds-Bd8lzypO.esm.min.js +2 -0
- package/dist/chunks/dds-Bd8lzypO.esm.min.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-nRpeqKlq.esm.js +88 -0
- package/dist/chunks/ddsTextureLoader-nRpeqKlq.esm.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-o67cgekT.esm.min.js +2 -0
- package/dist/chunks/ddsTextureLoader-o67cgekT.esm.min.js.map +1 -0
- package/dist/chunks/decalFragment-BoIyvSRj.esm.js +18 -0
- package/dist/chunks/decalFragment-BoIyvSRj.esm.js.map +1 -0
- package/dist/chunks/decalFragment-DdmP32l2.esm.min.js +2 -0
- package/dist/chunks/decalFragment-DdmP32l2.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment--Bk0jkpq.esm.min.js +2 -0
- package/dist/chunks/default.fragment--Bk0jkpq.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-8JCA2onb.esm.js +515 -0
- package/dist/chunks/default.fragment-8JCA2onb.esm.js.map +1 -0
- package/dist/chunks/default.fragment-BnHHny3M.esm.min.js +2 -0
- package/dist/chunks/default.fragment-BnHHny3M.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-yFDq7Yk2.esm.js +446 -0
- package/dist/chunks/default.fragment-yFDq7Yk2.esm.js.map +1 -0
- package/dist/chunks/default.vertex-BqhIPPwq.esm.min.js +2 -0
- package/dist/chunks/default.vertex-BqhIPPwq.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-BrSRv27y.esm.js +181 -0
- package/dist/chunks/default.vertex-BrSRv27y.esm.js.map +1 -0
- package/dist/chunks/default.vertex-CyVKU3MR.esm.min.js +2 -0
- package/dist/chunks/default.vertex-CyVKU3MR.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-Dbr4Brlw.esm.js +202 -0
- package/dist/chunks/default.vertex-Dbr4Brlw.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-B_Lff6It.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-B_Lff6It.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-DapF4oDG.esm.js +13 -0
- package/dist/chunks/defaultUboDeclaration-DapF4oDG.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-DhkJEdVS.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-DhkJEdVS.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-Slzzuc8Z.esm.js +15 -0
- package/dist/chunks/defaultUboDeclaration-Slzzuc8Z.esm.js.map +1 -0
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
- package/dist/chunks/dumpTools-BLztomr1.esm.min.js +2 -0
- package/dist/chunks/dumpTools-BLztomr1.esm.min.js.map +1 -0
- package/dist/chunks/dumpTools-Cdw9GIJk.esm.js +200 -0
- package/dist/chunks/dumpTools-Cdw9GIJk.esm.js.map +1 -0
- package/dist/chunks/engine-Bqcy7XH3.esm.min.js +2 -0
- package/dist/chunks/engine-Bqcy7XH3.esm.min.js.map +1 -0
- package/dist/chunks/engine-ZqfZB8zR.esm.js +2216 -0
- package/dist/chunks/engine-ZqfZB8zR.esm.js.map +1 -0
- package/dist/chunks/engine.common-BD0GAxmh.esm.min.js +2 -0
- package/dist/chunks/engine.common-BD0GAxmh.esm.min.js.map +1 -0
- package/dist/chunks/engine.common-DykUWXa4.esm.js +1162 -0
- package/dist/chunks/engine.common-DykUWXa4.esm.js.map +1 -0
- package/dist/chunks/envTextureLoader-Bae1wyc9.esm.min.js +2 -0
- package/dist/chunks/envTextureLoader-Bae1wyc9.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-l2igipId.esm.js +64 -0
- package/dist/chunks/envTextureLoader-l2igipId.esm.js.map +1 -0
- package/dist/chunks/environmentTextureTools-BRpO3y41.esm.min.js +2 -0
- package/dist/chunks/environmentTextureTools-BRpO3y41.esm.min.js.map +1 -0
- package/dist/chunks/environmentTextureTools-Bdnqd2Nu.esm.js +382 -0
- package/dist/chunks/environmentTextureTools-Bdnqd2Nu.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-JKsZ3m2S.esm.js +1683 -0
- package/dist/chunks/exrTextureLoader-JKsZ3m2S.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-JXpYRea6.esm.min.js +2 -0
- package/dist/chunks/exrTextureLoader-JXpYRea6.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-B8DN_zZM.esm.js +102 -0
- package/dist/chunks/fogFragment-B8DN_zZM.esm.js.map +1 -0
- package/dist/chunks/fogFragment-CRlriWtW.esm.min.js +2 -0
- package/dist/chunks/fogFragment-CRlriWtW.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-CjA4bh2v.esm.min.js +2 -0
- package/dist/chunks/fogFragment-CjA4bh2v.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-gzSW7fy9.esm.js +101 -0
- package/dist/chunks/fogFragment-gzSW7fy9.esm.js.map +1 -0
- package/dist/chunks/fresnelFunction-B1zYLwo0.esm.js +12 -0
- package/dist/chunks/fresnelFunction-B1zYLwo0.esm.js.map +1 -0
- package/dist/chunks/fresnelFunction-C_gho-pZ.esm.min.js +2 -0
- package/dist/chunks/fresnelFunction-C_gho-pZ.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoader-BFUUTcVx.esm.js +7586 -0
- package/dist/chunks/glTFLoader-BFUUTcVx.esm.js.map +1 -0
- package/dist/chunks/glTFLoader-INCp6zxS.esm.min.js +2 -0
- package/dist/chunks/glTFLoader-INCp6zxS.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-BOMgARkG.esm.js +77 -0
- package/dist/chunks/glTFLoaderAnimation-BOMgARkG.esm.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-DJTuoyoY.esm.min.js +2 -0
- package/dist/chunks/glTFLoaderAnimation-DJTuoyoY.esm.min.js.map +1 -0
- package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +2 -0
- package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +1 -0
- package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +67 -0
- package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-BxN634-s.esm.js +34 -0
- package/dist/chunks/harmonicsFunctions-BxN634-s.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-Cd-f480y.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-Cd-f480y.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-D1R6DnLz.esm.js +35 -0
- package/dist/chunks/harmonicsFunctions-D1R6DnLz.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-Qmgk7VLJ.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-Qmgk7VLJ.esm.min.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-BxlJhmEA.esm.js +253 -0
- package/dist/chunks/hdrTextureLoader-BxlJhmEA.esm.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-CfiyNQxw.esm.min.js +2 -0
- package/dist/chunks/hdrTextureLoader-CfiyNQxw.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-CA6oEthZ.esm.js +108 -0
- package/dist/chunks/helperFunctions-CA6oEthZ.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-DhmsmNSo.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-DhmsmNSo.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-JSaV4zvu.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-JSaV4zvu.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-kIWOIO7x.esm.js +80 -0
- package/dist/chunks/helperFunctions-kIWOIO7x.esm.js.map +1 -0
- package/dist/chunks/iesTextureLoader-Dl220l3j.esm.js +189 -0
- package/dist/chunks/iesTextureLoader-Dl220l3j.esm.js.map +1 -0
- package/dist/chunks/iesTextureLoader-R3BtnOZe.esm.min.js +2 -0
- package/dist/chunks/iesTextureLoader-R3BtnOZe.esm.min.js.map +1 -0
- package/dist/chunks/index-BV954TSg.esm.min.js +57 -0
- package/dist/chunks/index-BV954TSg.esm.min.js.map +1 -0
- package/dist/chunks/index-DNagLMQU.esm.js +74702 -0
- package/dist/chunks/index-DNagLMQU.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-8q0pdrVv.esm.js +814 -0
- package/dist/chunks/ktxTextureLoader-8q0pdrVv.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-DTJ9S4nn.esm.min.js +2 -0
- package/dist/chunks/ktxTextureLoader-DTJ9S4nn.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-CDNUELTA.esm.js +11 -0
- package/dist/chunks/logDepthDeclaration-CDNUELTA.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-Dc_3sQ3G.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-Dc_3sQ3G.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-hjWXUVIC.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-hjWXUVIC.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-mBI2i1ll.esm.js +35 -0
- package/dist/chunks/logDepthDeclaration-mBI2i1ll.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-B1OW0jvO.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-B1OW0jvO.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-Dbo4wFVt.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-Dbo4wFVt.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-DxGn-AeQ.esm.js +77 -0
- package/dist/chunks/logDepthVertex-DxGn-AeQ.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-oR1gWmhN.esm.js +81 -0
- package/dist/chunks/logDepthVertex-oR1gWmhN.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-B5vwo1hm.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-B5vwo1hm.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-BpoV9QuW.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-BpoV9QuW.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-LjxE2Mea.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-LjxE2Mea.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-rw0pqFUf.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-rw0pqFUf.esm.min.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-BmKxcbO0.esm.js +26 -0
- package/dist/chunks/meshUboDeclaration-BmKxcbO0.esm.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-C3peGJMc.esm.min.js +2 -0
- package/dist/chunks/meshUboDeclaration-C3peGJMc.esm.min.js.map +1 -0
- package/dist/chunks/objFileLoader-CbXXPwdO.esm.js +1338 -0
- package/dist/chunks/objFileLoader-CbXXPwdO.esm.js.map +1 -0
- package/dist/chunks/objFileLoader-CqrKcsxQ.esm.min.js +2 -0
- package/dist/chunks/objFileLoader-CqrKcsxQ.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-5RXvySJz.esm.js +1078 -0
- package/dist/chunks/oitFragment-5RXvySJz.esm.js.map +1 -0
- package/dist/chunks/oitFragment-BQK7d-f2.esm.min.js +2 -0
- package/dist/chunks/oitFragment-BQK7d-f2.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-D21gxicm.esm.js +1240 -0
- package/dist/chunks/oitFragment-D21gxicm.esm.js.map +1 -0
- package/dist/chunks/oitFragment-RvJLDoeq.esm.min.js +2 -0
- package/dist/chunks/oitFragment-RvJLDoeq.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-5i-vYHQA.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-5i-vYHQA.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-Ce_q1NhI.esm.js +15 -0
- package/dist/chunks/pass.fragment-Ce_q1NhI.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-VMbJ4sLl.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-VMbJ4sLl.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-atV6YKWy.esm.js +15 -0
- package/dist/chunks/pass.fragment-atV6YKWy.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-Bu_fi_iI.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-Bu_fi_iI.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-DPtALaTz.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-DPtALaTz.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-DmruHCJ9.esm.js +3232 -0
- package/dist/chunks/pbr.fragment-DmruHCJ9.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-cxg4hnoI.esm.js +3273 -0
- package/dist/chunks/pbr.fragment-cxg4hnoI.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-Cjk-WaTM.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-Cjk-WaTM.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-D47_G7iU.esm.js +339 -0
- package/dist/chunks/pbr.vertex-D47_G7iU.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-DS2o5zbh.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-DS2o5zbh.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-WHOPTEk3.esm.js +214 -0
- package/dist/chunks/pbr.vertex-WHOPTEk3.esm.js.map +1 -0
- package/dist/chunks/postprocess.vertex-BzgzVIsS.esm.min.js +2 -0
- package/dist/chunks/postprocess.vertex-BzgzVIsS.esm.min.js.map +1 -0
- package/dist/chunks/postprocess.vertex-PL27JBZv.esm.js +20 -0
- package/dist/chunks/postprocess.vertex-PL27JBZv.esm.js.map +1 -0
- package/dist/chunks/rawTexture-BVYz58jL.esm.min.js +2 -0
- package/dist/chunks/rawTexture-BVYz58jL.esm.min.js.map +1 -0
- package/dist/chunks/rawTexture-CNIh53bc.esm.js +191 -0
- package/dist/chunks/rawTexture-CNIh53bc.esm.js.map +1 -0
- package/dist/chunks/ray-CT3BNKAW.esm.js +946 -0
- package/dist/chunks/ray-CT3BNKAW.esm.js.map +1 -0
- package/dist/chunks/ray-DX4Fw29u.esm.min.js +2 -0
- package/dist/chunks/ray-DX4Fw29u.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-BZPuGjF3.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-BZPuGjF3.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-CdDQUiAd.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-CdDQUiAd.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-DU4OpfAH.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-DU4OpfAH.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-Z7C0ndoD.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-Z7C0ndoD.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-11YOq3IZ.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-11YOq3IZ.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-CW8jhON1.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-CW8jhON1.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-C_wUTOj2.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-C_wUTOj2.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-M5RRLioq.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-M5RRLioq.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-CF4Tx1Lb.esm.min.js +2 -0
- package/dist/chunks/splatFileLoader-CF4Tx1Lb.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-DiZshr8t.esm.js +3379 -0
- package/dist/chunks/splatFileLoader-DiZshr8t.esm.js.map +1 -0
- package/dist/chunks/spotLight-C21P2jUw.esm.js +701 -0
- package/dist/chunks/spotLight-C21P2jUw.esm.js.map +1 -0
- package/dist/chunks/spotLight-DI_bUJRY.esm.min.js +2 -0
- package/dist/chunks/spotLight-DI_bUJRY.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-BJxaRLqY.esm.js +1805 -0
- package/dist/chunks/standardMaterial-BJxaRLqY.esm.js.map +1 -0
- package/dist/chunks/standardMaterial-DJS6_-Gr.esm.min.js +2 -0
- package/dist/chunks/standardMaterial-DJS6_-Gr.esm.min.js.map +1 -0
- package/dist/chunks/stlFileLoader-D15Lbb9F.esm.min.js +2 -0
- package/dist/chunks/stlFileLoader-D15Lbb9F.esm.min.js.map +1 -0
- package/dist/chunks/stlFileLoader-Deg3Vy89.esm.js +238 -0
- package/dist/chunks/stlFileLoader-Deg3Vy89.esm.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-2TGZHIP9.esm.min.js +2 -0
- package/dist/chunks/tgaTextureLoader-2TGZHIP9.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-DwfP9S47.esm.js +349 -0
- package/dist/chunks/tgaTextureLoader-DwfP9S47.esm.js.map +1 -0
- package/dist/chunks/thinEngine-0DsMlU2k.esm.min.js +2 -0
- package/dist/chunks/thinEngine-0DsMlU2k.esm.min.js.map +1 -0
- package/dist/chunks/thinEngine-Cm65Vx_j.esm.js +3842 -0
- package/dist/chunks/thinEngine-Cm65Vx_j.esm.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-C6UlEC2f.esm.min.js +2 -0
- package/dist/chunks/thinInstanceMesh-C6UlEC2f.esm.min.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-DA6E7x4T.esm.js +314 -0
- package/dist/chunks/thinInstanceMesh-DA6E7x4T.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-BRSVXv9U.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-BRSVXv9U.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-BXirzxd2.esm.js +522 -0
- package/dist/chunks/vertexColorMixing-BXirzxd2.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-D0_S2DHD.esm.js +412 -0
- package/dist/chunks/vertexColorMixing-D0_S2DHD.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-Db2ycO0T.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-Db2ycO0T.esm.min.js.map +1 -0
- package/dist/chunks/webgpuEngine-CPedVcqR.esm.min.js +2 -0
- package/dist/chunks/webgpuEngine-CPedVcqR.esm.min.js.map +1 -0
- package/dist/chunks/webgpuEngine-CqHGurOF.esm.js +11533 -0
- package/dist/chunks/webgpuEngine-CqHGurOF.esm.js.map +1 -0
- package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
- package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
- package/lib/index.d.ts +558 -0
- package/lib/index.js +2076 -0
- package/lib/index.js.map +1 -0
- package/package.json +19 -28
- package/readme.md +29 -24
- package/configuration/configuration.d.ts +0 -107
- package/configuration/configuration.js +0 -16
- package/configuration/configuration.js.map +0 -1
- package/configuration/configurationCompatibility.d.ts +0 -8
- package/configuration/configurationCompatibility.js +0 -66
- package/configuration/configurationCompatibility.js.map +0 -1
- package/configuration/configurationContainer.d.ts +0 -10
- package/configuration/configurationContainer.js +0 -10
- package/configuration/configurationContainer.js.map +0 -1
- package/configuration/globals.d.ts +0 -6
- package/configuration/globals.js +0 -18
- package/configuration/globals.js.map +0 -1
- package/configuration/index.d.ts +0 -2
- package/configuration/index.js +0 -4
- package/configuration/index.js.map +0 -1
- package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
- package/configuration/interfaces/cameraConfiguration.js +0 -2
- package/configuration/interfaces/cameraConfiguration.js.map +0 -1
- package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
- package/configuration/interfaces/colorGradingConfiguration.js +0 -2
- package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
- package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
- package/configuration/interfaces/environmentMapConfiguration.js +0 -2
- package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
- package/configuration/interfaces/groundConfiguration.d.ts +0 -24
- package/configuration/interfaces/groundConfiguration.js +0 -2
- package/configuration/interfaces/groundConfiguration.js.map +0 -1
- package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
- package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
- package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
- package/configuration/interfaces/index.d.ts +0 -15
- package/configuration/interfaces/index.js +0 -16
- package/configuration/interfaces/index.js.map +0 -1
- package/configuration/interfaces/lightConfiguration.d.ts +0 -60
- package/configuration/interfaces/lightConfiguration.js +0 -2
- package/configuration/interfaces/lightConfiguration.js.map +0 -1
- package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
- package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
- package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
- package/configuration/interfaces/modelConfiguration.d.ts +0 -65
- package/configuration/interfaces/modelConfiguration.js +0 -2
- package/configuration/interfaces/modelConfiguration.js.map +0 -1
- package/configuration/interfaces/observersConfiguration.d.ts +0 -5
- package/configuration/interfaces/observersConfiguration.js +0 -2
- package/configuration/interfaces/observersConfiguration.js.map +0 -1
- package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
- package/configuration/interfaces/sceneConfiguration.js +0 -2
- package/configuration/interfaces/sceneConfiguration.js.map +0 -1
- package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
- package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
- package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
- package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
- package/configuration/interfaces/skyboxConfiguration.js +0 -2
- package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
- package/configuration/interfaces/templateConfiguration.d.ts +0 -67
- package/configuration/interfaces/templateConfiguration.js +0 -2
- package/configuration/interfaces/templateConfiguration.js.map +0 -1
- package/configuration/interfaces/vrConfiguration.d.ts +0 -16
- package/configuration/interfaces/vrConfiguration.js +0 -2
- package/configuration/interfaces/vrConfiguration.js.map +0 -1
- package/configuration/loader.d.ts +0 -4
- package/configuration/loader.js +0 -17
- package/configuration/loader.js.map +0 -1
- package/configuration/mappers.d.ts +0 -43
- package/configuration/mappers.js +0 -193
- package/configuration/mappers.js.map +0 -1
- package/configuration/renderOnlyLoader.d.ts +0 -33
- package/configuration/renderOnlyLoader.js +0 -162
- package/configuration/renderOnlyLoader.js.map +0 -1
- package/configuration/types/default.d.ts +0 -6
- package/configuration/types/default.js +0 -121
- package/configuration/types/default.js.map +0 -1
- package/configuration/types/environmentMap.d.ts +0 -5
- package/configuration/types/environmentMap.js +0 -14
- package/configuration/types/environmentMap.js.map +0 -1
- package/configuration/types/extended.d.ts +0 -6
- package/configuration/types/extended.js +0 -317
- package/configuration/types/extended.js.map +0 -1
- package/configuration/types/index.d.ts +0 -14
- package/configuration/types/index.js +0 -51
- package/configuration/types/index.js.map +0 -1
- package/configuration/types/minimal.d.ts +0 -6
- package/configuration/types/minimal.js +0 -43
- package/configuration/types/minimal.js.map +0 -1
- package/configuration/types/renderOnlyDefault.d.ts +0 -30
- package/configuration/types/renderOnlyDefault.js +0 -31
- package/configuration/types/renderOnlyDefault.js.map +0 -1
- package/configuration/types/shadowLight.d.ts +0 -9
- package/configuration/types/shadowLight.js +0 -64
- package/configuration/types/shadowLight.js.map +0 -1
- package/helper/index.d.ts +0 -29
- package/helper/index.js +0 -66
- package/helper/index.js.map +0 -1
- package/index.d.ts +0 -30
- package/index.js +0 -46
- package/index.js.map +0 -1
- package/initializer.d.ts +0 -11
- package/initializer.js +0 -35
- package/initializer.js.map +0 -1
- package/interfaces.d.ts +0 -5
- package/interfaces.js +0 -7
- package/interfaces.js.map +0 -1
- package/labs/environmentSerializer.d.ts +0 -126
- package/labs/environmentSerializer.js +0 -191
- package/labs/environmentSerializer.js.map +0 -1
- package/labs/texture.d.ts +0 -183
- package/labs/texture.js +0 -351
- package/labs/texture.js.map +0 -1
- package/labs/viewerLabs.d.ts +0 -51
- package/labs/viewerLabs.js +0 -134
- package/labs/viewerLabs.js.map +0 -1
- package/loader/modelLoader.d.ts +0 -56
- package/loader/modelLoader.js +0 -202
- package/loader/modelLoader.js.map +0 -1
- package/loader/plugins/applyMaterialConfig.d.ts +0 -12
- package/loader/plugins/applyMaterialConfig.js +0 -16
- package/loader/plugins/applyMaterialConfig.js.map +0 -1
- package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
- package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
- package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
- package/loader/plugins/index.d.ts +0 -19
- package/loader/plugins/index.js +0 -44
- package/loader/plugins/index.js.map +0 -1
- package/loader/plugins/loaderPlugin.d.ts +0 -24
- package/loader/plugins/loaderPlugin.js +0 -2
- package/loader/plugins/loaderPlugin.js.map +0 -1
- package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
- package/loader/plugins/msftLodLoaderPlugin.js +0 -21
- package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
- package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
- package/loader/plugins/telemetryLoaderPlugin.js +0 -36
- package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
- package/managers/observablesManager.d.ts +0 -66
- package/managers/observablesManager.js +0 -35
- package/managers/observablesManager.js.map +0 -1
- package/managers/sceneManager.d.ts +0 -245
- package/managers/sceneManager.js +0 -1375
- package/managers/sceneManager.js.map +0 -1
- package/managers/telemetryManager.d.ts +0 -78
- package/managers/telemetryManager.js +0 -117
- package/managers/telemetryManager.js.map +0 -1
- package/model/modelAnimation.d.ts +0 -215
- package/model/modelAnimation.js +0 -237
- package/model/modelAnimation.js.map +0 -1
- package/model/viewerModel.d.ts +0 -233
- package/model/viewerModel.js +0 -673
- package/model/viewerModel.js.map +0 -1
- package/optimizer/custom/extended.d.ts +0 -13
- package/optimizer/custom/extended.js +0 -101
- package/optimizer/custom/extended.js.map +0 -1
- package/optimizer/custom/index.d.ts +0 -9
- package/optimizer/custom/index.js +0 -26
- package/optimizer/custom/index.js.map +0 -1
- package/renderOnlyIndex.d.ts +0 -11
- package/renderOnlyIndex.js +0 -18
- package/renderOnlyIndex.js.map +0 -1
- package/templating/eventManager.d.ts +0 -35
- package/templating/eventManager.js +0 -66
- package/templating/eventManager.js.map +0 -1
- package/templating/plugins/hdButtonPlugin.d.ts +0 -9
- package/templating/plugins/hdButtonPlugin.js +0 -22
- package/templating/plugins/hdButtonPlugin.js.map +0 -1
- package/templating/plugins/printButton.d.ts +0 -9
- package/templating/plugins/printButton.js +0 -41
- package/templating/plugins/printButton.js.map +0 -1
- package/templating/templateManager.d.ts +0 -197
- package/templating/templateManager.js +0 -561
- package/templating/templateManager.js.map +0 -1
- package/templating/viewerTemplatePlugin.d.ts +0 -21
- package/templating/viewerTemplatePlugin.js +0 -69
- package/templating/viewerTemplatePlugin.js.map +0 -1
- package/viewer/defaultViewer.d.ts +0 -130
- package/viewer/defaultViewer.js +0 -672
- package/viewer/defaultViewer.js.map +0 -1
- package/viewer/renderOnlyViewer.d.ts +0 -9
- package/viewer/renderOnlyViewer.js +0 -46
- package/viewer/renderOnlyViewer.js.map +0 -1
- package/viewer/viewer.d.ts +0 -258
- package/viewer/viewer.js +0 -783
- package/viewer/viewer.js.map +0 -1
- package/viewer/viewerManager.d.ts +0 -58
- package/viewer/viewerManager.js +0 -91
- package/viewer/viewerManager.js.map +0 -1
- package/viewer/viewerWithTemplate.d.ts +0 -9
- package/viewer/viewerWithTemplate.js +0 -20
- package/viewer/viewerWithTemplate.js.map +0 -1
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { by as Clamp, C as Constants, T as Tools, E as EngineStore, bz as EffectRenderer, bA as EffectWrapper } from './index-DNagLMQU.esm.js';
|
|
2
|
+
|
|
3
|
+
let _dumpToolsEngine;
|
|
4
|
+
let _enginePromise = null;
|
|
5
|
+
async function _CreateDumpRenderer() {
|
|
6
|
+
if (!_enginePromise) {
|
|
7
|
+
_enginePromise = new Promise((resolve, reject) => {
|
|
8
|
+
let canvas;
|
|
9
|
+
let engine = null;
|
|
10
|
+
const options = {
|
|
11
|
+
preserveDrawingBuffer: true,
|
|
12
|
+
depth: false,
|
|
13
|
+
stencil: false,
|
|
14
|
+
alpha: true,
|
|
15
|
+
premultipliedAlpha: false,
|
|
16
|
+
antialias: false,
|
|
17
|
+
failIfMajorPerformanceCaveat: false,
|
|
18
|
+
};
|
|
19
|
+
import('./thinEngine-Cm65Vx_j.esm.js').then(function (n) { return n.t; })
|
|
20
|
+
.then(({ ThinEngine: thinEngineClass }) => {
|
|
21
|
+
try {
|
|
22
|
+
canvas = new OffscreenCanvas(100, 100); // will be resized later
|
|
23
|
+
engine = new thinEngineClass(canvas, false, options);
|
|
24
|
+
}
|
|
25
|
+
catch (e) {
|
|
26
|
+
// The browser either does not support OffscreenCanvas or WebGL context in OffscreenCanvas, fallback on a regular canvas
|
|
27
|
+
canvas = document.createElement("canvas");
|
|
28
|
+
engine = new thinEngineClass(canvas, false, options);
|
|
29
|
+
}
|
|
30
|
+
// remove this engine from the list of instances to avoid using it for other purposes
|
|
31
|
+
EngineStore.Instances.pop();
|
|
32
|
+
// However, make sure to dispose it when no other engines are left
|
|
33
|
+
EngineStore.OnEnginesDisposedObservable.add((e) => {
|
|
34
|
+
// guaranteed to run when no other instances are left
|
|
35
|
+
// only dispose if it's not the current engine
|
|
36
|
+
if (engine && e !== engine && !engine.isDisposed && EngineStore.Instances.length === 0) {
|
|
37
|
+
// Dump the engine and the associated resources
|
|
38
|
+
Dispose();
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
engine.getCaps().parallelShaderCompile = undefined;
|
|
42
|
+
const renderer = new EffectRenderer(engine);
|
|
43
|
+
import('./pass.fragment-atV6YKWy.esm.js').then(({ passPixelShader }) => {
|
|
44
|
+
if (!engine) {
|
|
45
|
+
reject("Engine is not defined");
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const wrapper = new EffectWrapper({
|
|
49
|
+
engine,
|
|
50
|
+
name: passPixelShader.name,
|
|
51
|
+
fragmentShader: passPixelShader.shader,
|
|
52
|
+
samplerNames: ["textureSampler"],
|
|
53
|
+
});
|
|
54
|
+
_dumpToolsEngine = {
|
|
55
|
+
canvas,
|
|
56
|
+
engine,
|
|
57
|
+
renderer,
|
|
58
|
+
wrapper,
|
|
59
|
+
};
|
|
60
|
+
resolve(_dumpToolsEngine);
|
|
61
|
+
});
|
|
62
|
+
})
|
|
63
|
+
.catch(reject);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return await _enginePromise;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Dumps the current bound framebuffer
|
|
70
|
+
* @param width defines the rendering width
|
|
71
|
+
* @param height defines the rendering height
|
|
72
|
+
* @param engine defines the hosting engine
|
|
73
|
+
* @param successCallback defines the callback triggered once the data are available
|
|
74
|
+
* @param mimeType defines the mime type of the result
|
|
75
|
+
* @param fileName defines the filename to download. If present, the result will automatically be downloaded
|
|
76
|
+
* @param quality The quality of the image if lossy mimeType is used (e.g. image/jpeg, image/webp). See {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob | HTMLCanvasElement.toBlob()}'s `quality` parameter.
|
|
77
|
+
* @returns a void promise
|
|
78
|
+
*/
|
|
79
|
+
async function DumpFramebuffer(width, height, engine, successCallback, mimeType = "image/png", fileName, quality) {
|
|
80
|
+
// Read the contents of the framebuffer
|
|
81
|
+
const bufferView = await engine.readPixels(0, 0, width, height);
|
|
82
|
+
const data = new Uint8Array(bufferView.buffer);
|
|
83
|
+
DumpData(width, height, data, successCallback, mimeType, fileName, true, undefined, quality);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Dumps an array buffer
|
|
87
|
+
* @param width defines the rendering width
|
|
88
|
+
* @param height defines the rendering height
|
|
89
|
+
* @param data the data array
|
|
90
|
+
* @param mimeType defines the mime type of the result
|
|
91
|
+
* @param fileName defines the filename to download. If present, the result will automatically be downloaded
|
|
92
|
+
* @param invertY true to invert the picture in the Y dimension
|
|
93
|
+
* @param toArrayBuffer true to convert the data to an ArrayBuffer (encoded as `mimeType`) instead of a base64 string
|
|
94
|
+
* @param quality The quality of the image if lossy mimeType is used (e.g. image/jpeg, image/webp). See {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob | HTMLCanvasElement.toBlob()}'s `quality` parameter.
|
|
95
|
+
* @returns a promise that resolve to the final data
|
|
96
|
+
*/
|
|
97
|
+
function DumpDataAsync(width, height, data, mimeType = "image/png", fileName, invertY = false, toArrayBuffer = false, quality) {
|
|
98
|
+
return new Promise((resolve) => {
|
|
99
|
+
DumpData(width, height, data, (result) => resolve(result), mimeType, fileName, invertY, toArrayBuffer, quality);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Dumps an array buffer
|
|
104
|
+
* @param width defines the rendering width
|
|
105
|
+
* @param height defines the rendering height
|
|
106
|
+
* @param data the data array
|
|
107
|
+
* @param successCallback defines the callback triggered once the data are available
|
|
108
|
+
* @param mimeType defines the mime type of the result
|
|
109
|
+
* @param fileName defines the filename to download. If present, the result will automatically be downloaded
|
|
110
|
+
* @param invertY true to invert the picture in the Y dimension
|
|
111
|
+
* @param toArrayBuffer true to convert the data to an ArrayBuffer (encoded as `mimeType`) instead of a base64 string
|
|
112
|
+
* @param quality The quality of the image if lossy mimeType is used (e.g. image/jpeg, image/webp). See {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob | HTMLCanvasElement.toBlob()}'s `quality` parameter.
|
|
113
|
+
*/
|
|
114
|
+
function DumpData(width, height, data, successCallback, mimeType = "image/png", fileName, invertY = false, toArrayBuffer = false, quality) {
|
|
115
|
+
_CreateDumpRenderer().then((renderer) => {
|
|
116
|
+
renderer.engine.setSize(width, height, true);
|
|
117
|
+
// Convert if data are float32
|
|
118
|
+
if (data instanceof Float32Array) {
|
|
119
|
+
const data2 = new Uint8Array(data.length);
|
|
120
|
+
let n = data.length;
|
|
121
|
+
while (n--) {
|
|
122
|
+
const v = data[n];
|
|
123
|
+
data2[n] = Math.round(Clamp(v) * 255);
|
|
124
|
+
}
|
|
125
|
+
data = data2;
|
|
126
|
+
}
|
|
127
|
+
// Create the image
|
|
128
|
+
const texture = renderer.engine.createRawTexture(data, width, height, Constants.TEXTUREFORMAT_RGBA, false, !invertY, Constants.TEXTURE_NEAREST_NEAREST);
|
|
129
|
+
renderer.renderer.setViewport();
|
|
130
|
+
renderer.renderer.applyEffectWrapper(renderer.wrapper);
|
|
131
|
+
renderer.wrapper.effect._bindTexture("textureSampler", texture);
|
|
132
|
+
renderer.renderer.draw();
|
|
133
|
+
if (toArrayBuffer) {
|
|
134
|
+
Tools.ToBlob(renderer.canvas, (blob) => {
|
|
135
|
+
const fileReader = new FileReader();
|
|
136
|
+
fileReader.onload = (event) => {
|
|
137
|
+
const arrayBuffer = event.target.result;
|
|
138
|
+
if (successCallback) {
|
|
139
|
+
successCallback(arrayBuffer);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
fileReader.readAsArrayBuffer(blob);
|
|
143
|
+
}, mimeType, quality);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
Tools.EncodeScreenshotCanvasData(renderer.canvas, successCallback, mimeType, fileName, quality);
|
|
147
|
+
}
|
|
148
|
+
texture.dispose();
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Dispose the dump tools associated resources
|
|
153
|
+
*/
|
|
154
|
+
function Dispose() {
|
|
155
|
+
if (_dumpToolsEngine) {
|
|
156
|
+
_dumpToolsEngine.wrapper.dispose();
|
|
157
|
+
_dumpToolsEngine.renderer.dispose();
|
|
158
|
+
_dumpToolsEngine.engine.dispose();
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
// in cases where the engine is not yet created, we need to wait for it to dispose it
|
|
162
|
+
_enginePromise?.then((dumpToolsEngine) => {
|
|
163
|
+
dumpToolsEngine.wrapper.dispose();
|
|
164
|
+
dumpToolsEngine.renderer.dispose();
|
|
165
|
+
dumpToolsEngine.engine.dispose();
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
_enginePromise = null;
|
|
169
|
+
_dumpToolsEngine = null;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Object containing a set of static utilities functions to dump data from a canvas
|
|
173
|
+
* @deprecated use functions
|
|
174
|
+
*/
|
|
175
|
+
const DumpTools = {
|
|
176
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
177
|
+
DumpData,
|
|
178
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
179
|
+
DumpDataAsync,
|
|
180
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
181
|
+
DumpFramebuffer,
|
|
182
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
183
|
+
Dispose,
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* This will be executed automatically for UMD and es5.
|
|
187
|
+
* If esm dev wants the side effects to execute they will have to run it manually
|
|
188
|
+
* Once we build native modules those need to be exported.
|
|
189
|
+
* @internal
|
|
190
|
+
*/
|
|
191
|
+
const initSideEffects = () => {
|
|
192
|
+
// References the dependencies.
|
|
193
|
+
Tools.DumpData = DumpData;
|
|
194
|
+
Tools.DumpDataAsync = DumpDataAsync;
|
|
195
|
+
Tools.DumpFramebuffer = DumpFramebuffer;
|
|
196
|
+
};
|
|
197
|
+
initSideEffects();
|
|
198
|
+
|
|
199
|
+
export { Dispose, DumpData, DumpDataAsync, DumpFramebuffer, DumpTools };
|
|
200
|
+
//# sourceMappingURL=dumpTools-Cdw9GIJk.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dumpTools-Cdw9GIJk.esm.js","sources":["../../../../../dev/core/dist/Misc/dumpTools.js"],"sourcesContent":["import { Constants } from \"../Engines/constants\";\nimport { EffectRenderer, EffectWrapper } from \"../Materials/effectRenderer\";\nimport { Tools } from \"./tools\";\nimport { Clamp } from \"../Maths/math.scalar.functions\";\nimport { EngineStore } from \"../Engines/engineStore\";\nlet _dumpToolsEngine;\nlet _enginePromise = null;\nasync function _CreateDumpRenderer() {\n if (!_enginePromise) {\n _enginePromise = new Promise((resolve, reject) => {\n let canvas;\n let engine = null;\n const options = {\n preserveDrawingBuffer: true,\n depth: false,\n stencil: false,\n alpha: true,\n premultipliedAlpha: false,\n antialias: false,\n failIfMajorPerformanceCaveat: false,\n };\n import(\"../Engines/thinEngine\")\n .then(({ ThinEngine: thinEngineClass }) => {\n try {\n canvas = new OffscreenCanvas(100, 100); // will be resized later\n engine = new thinEngineClass(canvas, false, options);\n }\n catch (e) {\n // The browser either does not support OffscreenCanvas or WebGL context in OffscreenCanvas, fallback on a regular canvas\n canvas = document.createElement(\"canvas\");\n engine = new thinEngineClass(canvas, false, options);\n }\n // remove this engine from the list of instances to avoid using it for other purposes\n EngineStore.Instances.pop();\n // However, make sure to dispose it when no other engines are left\n EngineStore.OnEnginesDisposedObservable.add((e) => {\n // guaranteed to run when no other instances are left\n // only dispose if it's not the current engine\n if (engine && e !== engine && !engine.isDisposed && EngineStore.Instances.length === 0) {\n // Dump the engine and the associated resources\n Dispose();\n }\n });\n engine.getCaps().parallelShaderCompile = undefined;\n const renderer = new EffectRenderer(engine);\n import(\"../Shaders/pass.fragment\").then(({ passPixelShader }) => {\n if (!engine) {\n reject(\"Engine is not defined\");\n return;\n }\n const wrapper = new EffectWrapper({\n engine,\n name: passPixelShader.name,\n fragmentShader: passPixelShader.shader,\n samplerNames: [\"textureSampler\"],\n });\n _dumpToolsEngine = {\n canvas,\n engine,\n renderer,\n wrapper,\n };\n resolve(_dumpToolsEngine);\n });\n })\n .catch(reject);\n });\n }\n return await _enginePromise;\n}\n/**\n * Dumps the current bound framebuffer\n * @param width defines the rendering width\n * @param height defines the rendering height\n * @param engine defines the hosting engine\n * @param successCallback defines the callback triggered once the data are available\n * @param mimeType defines the mime type of the result\n * @param fileName defines the filename to download. If present, the result will automatically be downloaded\n * @param quality The quality of the image if lossy mimeType is used (e.g. image/jpeg, image/webp). See {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob | HTMLCanvasElement.toBlob()}'s `quality` parameter.\n * @returns a void promise\n */\nexport async function DumpFramebuffer(width, height, engine, successCallback, mimeType = \"image/png\", fileName, quality) {\n // Read the contents of the framebuffer\n const bufferView = await engine.readPixels(0, 0, width, height);\n const data = new Uint8Array(bufferView.buffer);\n DumpData(width, height, data, successCallback, mimeType, fileName, true, undefined, quality);\n}\n/**\n * Dumps an array buffer\n * @param width defines the rendering width\n * @param height defines the rendering height\n * @param data the data array\n * @param mimeType defines the mime type of the result\n * @param fileName defines the filename to download. If present, the result will automatically be downloaded\n * @param invertY true to invert the picture in the Y dimension\n * @param toArrayBuffer true to convert the data to an ArrayBuffer (encoded as `mimeType`) instead of a base64 string\n * @param quality The quality of the image if lossy mimeType is used (e.g. image/jpeg, image/webp). See {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob | HTMLCanvasElement.toBlob()}'s `quality` parameter.\n * @returns a promise that resolve to the final data\n */\nexport function DumpDataAsync(width, height, data, mimeType = \"image/png\", fileName, invertY = false, toArrayBuffer = false, quality) {\n return new Promise((resolve) => {\n DumpData(width, height, data, (result) => resolve(result), mimeType, fileName, invertY, toArrayBuffer, quality);\n });\n}\n/**\n * Dumps an array buffer\n * @param width defines the rendering width\n * @param height defines the rendering height\n * @param data the data array\n * @param successCallback defines the callback triggered once the data are available\n * @param mimeType defines the mime type of the result\n * @param fileName defines the filename to download. If present, the result will automatically be downloaded\n * @param invertY true to invert the picture in the Y dimension\n * @param toArrayBuffer true to convert the data to an ArrayBuffer (encoded as `mimeType`) instead of a base64 string\n * @param quality The quality of the image if lossy mimeType is used (e.g. image/jpeg, image/webp). See {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob | HTMLCanvasElement.toBlob()}'s `quality` parameter.\n */\nexport function DumpData(width, height, data, successCallback, mimeType = \"image/png\", fileName, invertY = false, toArrayBuffer = false, quality) {\n _CreateDumpRenderer().then((renderer) => {\n renderer.engine.setSize(width, height, true);\n // Convert if data are float32\n if (data instanceof Float32Array) {\n const data2 = new Uint8Array(data.length);\n let n = data.length;\n while (n--) {\n const v = data[n];\n data2[n] = Math.round(Clamp(v) * 255);\n }\n data = data2;\n }\n // Create the image\n const texture = renderer.engine.createRawTexture(data, width, height, Constants.TEXTUREFORMAT_RGBA, false, !invertY, Constants.TEXTURE_NEAREST_NEAREST);\n renderer.renderer.setViewport();\n renderer.renderer.applyEffectWrapper(renderer.wrapper);\n renderer.wrapper.effect._bindTexture(\"textureSampler\", texture);\n renderer.renderer.draw();\n if (toArrayBuffer) {\n Tools.ToBlob(renderer.canvas, (blob) => {\n const fileReader = new FileReader();\n fileReader.onload = (event) => {\n const arrayBuffer = event.target.result;\n if (successCallback) {\n successCallback(arrayBuffer);\n }\n };\n fileReader.readAsArrayBuffer(blob);\n }, mimeType, quality);\n }\n else {\n Tools.EncodeScreenshotCanvasData(renderer.canvas, successCallback, mimeType, fileName, quality);\n }\n texture.dispose();\n });\n}\n/**\n * Dispose the dump tools associated resources\n */\nexport function Dispose() {\n if (_dumpToolsEngine) {\n _dumpToolsEngine.wrapper.dispose();\n _dumpToolsEngine.renderer.dispose();\n _dumpToolsEngine.engine.dispose();\n }\n else {\n // in cases where the engine is not yet created, we need to wait for it to dispose it\n _enginePromise?.then((dumpToolsEngine) => {\n dumpToolsEngine.wrapper.dispose();\n dumpToolsEngine.renderer.dispose();\n dumpToolsEngine.engine.dispose();\n });\n }\n _enginePromise = null;\n _dumpToolsEngine = null;\n}\n/**\n * Object containing a set of static utilities functions to dump data from a canvas\n * @deprecated use functions\n */\nexport const DumpTools = {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n DumpData,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n DumpDataAsync,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n DumpFramebuffer,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n Dispose,\n};\n/**\n * This will be executed automatically for UMD and es5.\n * If esm dev wants the side effects to execute they will have to run it manually\n * Once we build native modules those need to be exported.\n * @internal\n */\nconst initSideEffects = () => {\n // References the dependencies.\n Tools.DumpData = DumpData;\n Tools.DumpDataAsync = DumpDataAsync;\n Tools.DumpFramebuffer = DumpFramebuffer;\n};\ninitSideEffects();\n//# sourceMappingURL=dumpTools.js.map"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as e,I as t,L as r,a as _,b as i,G as E,H as s,S as a,B as n,A as T,E as h,P as l}from"./index-BV954TSg.esm.min.js";import{T as R,W as u,a as o}from"./thinEngine-0DsMlU2k.esm.min.js";import{R as A,P as f,_ as c,a as d,C as U,b as p,E as g,G as m,c as M,d as S,e as P}from"./engine.common-BD0GAxmh.esm.min.js";import"./audioEngine-DXwzZRuc.esm.min.js";import"./drawWrapper.functions-ng7lvueZ.esm.min.js";function N(t,r,_,i){let E,s=1;i===e.TEXTURETYPE_FLOAT?E=new Float32Array(r*_*4):i===e.TEXTURETYPE_HALF_FLOAT?(E=new Uint16Array(r*_*4),s=15360):E=i===e.TEXTURETYPE_UNSIGNED_INTEGER?new Uint32Array(r*_*4):new Uint8Array(r*_*4);for(let e=0;e<r;e++)for(let i=0;i<_;i++){const _=3*(i*r+e),a=4*(i*r+e);E[a+0]=t[_+0],E[a+1]=t[_+1],E[a+2]=t[_+2],E[a+3]=s}return E}function F(r){return function(_,i,E,s,a,n,T,h,l=null,R=e.TEXTURETYPE_UNSIGNED_BYTE){const u=r?this._gl.TEXTURE_3D:this._gl.TEXTURE_2D_ARRAY,o=new t(this,r?10:11);o.baseWidth=i,o.baseHeight=E,o.baseDepth=s,o.width=i,o.height=E,o.depth=s,o.format=a,o.type=R,o.generateMipMaps=n,o.samplingMode=h,r?o.is3D=!0:o.is2DArray=!0,this._doNotHandleContextLost||(o._bufferView=_),r?this.updateRawTexture3D(o,_,a,T,l,R):this.updateRawTexture2DArray(o,_,a,T,l,R),this._bindTextureDirectly(u,o,!0);const A=this._getSamplingParameters(h,n);return this._gl.texParameteri(u,this._gl.TEXTURE_MAG_FILTER,A.mag),this._gl.texParameteri(u,this._gl.TEXTURE_MIN_FILTER,A.min),n&&this._gl.generateMipmap(u),this._bindTextureDirectly(u,null),this._internalTexturesCache.push(o),o}}function I(t){return function(r,_,i,E,s=null,a=e.TEXTURETYPE_UNSIGNED_BYTE){const n=t?this._gl.TEXTURE_3D:this._gl.TEXTURE_2D_ARRAY,T=this._getWebGLTextureType(a),h=this._getInternalFormat(i),l=this._getRGBABufferInternalSizedFormat(a,i);this._bindTextureDirectly(n,r,!0),this._unpackFlipY(void 0===E||!!E),this._doNotHandleContextLost||(r._bufferView=_,r.format=i,r.invertY=E,r._compression=s),r.width%4!=0&&this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,1),s&&_?this._gl.compressedTexImage3D(n,0,this.getCaps().s3tc[s],r.width,r.height,r.depth,0,_):this._gl.texImage3D(n,0,l,r.width,r.height,r.depth,0,h,T,_),r.generateMipMaps&&this._gl.generateMipmap(n),this._bindTextureDirectly(n,null),r.isReady=!0}}R.prototype.setAlphaMode=function(t,r=!1){if(this._alphaMode!==t){switch(t){case e.ALPHA_DISABLE:this._alphaState.alphaBlend=!1;break;case e.ALPHA_PREMULTIPLIED:this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE,this._gl.ONE_MINUS_SRC_ALPHA,this._gl.ONE,this._gl.ONE),this._alphaState.alphaBlend=!0;break;case e.ALPHA_PREMULTIPLIED_PORTERDUFF:this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE,this._gl.ONE_MINUS_SRC_ALPHA,this._gl.ONE,this._gl.ONE_MINUS_SRC_ALPHA),this._alphaState.alphaBlend=!0;break;case e.ALPHA_COMBINE:this._alphaState.setAlphaBlendFunctionParameters(this._gl.SRC_ALPHA,this._gl.ONE_MINUS_SRC_ALPHA,this._gl.ONE,this._gl.ONE),this._alphaState.alphaBlend=!0;break;case e.ALPHA_ONEONE:this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE,this._gl.ONE,this._gl.ZERO,this._gl.ONE),this._alphaState.alphaBlend=!0;break;case e.ALPHA_ADD:this._alphaState.setAlphaBlendFunctionParameters(this._gl.SRC_ALPHA,this._gl.ONE,this._gl.ZERO,this._gl.ONE),this._alphaState.alphaBlend=!0;break;case e.ALPHA_SUBTRACT:this._alphaState.setAlphaBlendFunctionParameters(this._gl.ZERO,this._gl.ONE_MINUS_SRC_COLOR,this._gl.ONE,this._gl.ONE),this._alphaState.alphaBlend=!0;break;case e.ALPHA_MULTIPLY:this._alphaState.setAlphaBlendFunctionParameters(this._gl.DST_COLOR,this._gl.ZERO,this._gl.ONE,this._gl.ONE),this._alphaState.alphaBlend=!0;break;case e.ALPHA_MAXIMIZED:this._alphaState.setAlphaBlendFunctionParameters(this._gl.SRC_ALPHA,this._gl.ONE_MINUS_SRC_COLOR,this._gl.ONE,this._gl.ONE),this._alphaState.alphaBlend=!0;break;case e.ALPHA_INTERPOLATE:this._alphaState.setAlphaBlendFunctionParameters(this._gl.CONSTANT_COLOR,this._gl.ONE_MINUS_CONSTANT_COLOR,this._gl.CONSTANT_ALPHA,this._gl.ONE_MINUS_CONSTANT_ALPHA),this._alphaState.alphaBlend=!0;break;case e.ALPHA_SCREENMODE:this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE,this._gl.ONE_MINUS_SRC_COLOR,this._gl.ONE,this._gl.ONE_MINUS_SRC_ALPHA),this._alphaState.alphaBlend=!0;break;case e.ALPHA_ONEONE_ONEONE:this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE,this._gl.ONE,this._gl.ONE,this._gl.ONE),this._alphaState.alphaBlend=!0;break;case e.ALPHA_ALPHATOCOLOR:this._alphaState.setAlphaBlendFunctionParameters(this._gl.DST_ALPHA,this._gl.ONE,this._gl.ZERO,this._gl.ZERO),this._alphaState.alphaBlend=!0;break;case e.ALPHA_REVERSEONEMINUS:this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE_MINUS_DST_COLOR,this._gl.ONE_MINUS_SRC_COLOR,this._gl.ONE_MINUS_DST_ALPHA,this._gl.ONE_MINUS_SRC_ALPHA),this._alphaState.alphaBlend=!0;break;case e.ALPHA_SRC_DSTONEMINUSSRCALPHA:this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE,this._gl.ONE_MINUS_SRC_ALPHA,this._gl.ONE,this._gl.ONE_MINUS_SRC_ALPHA),this._alphaState.alphaBlend=!0;break;case e.ALPHA_ONEONE_ONEZERO:this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE,this._gl.ONE,this._gl.ONE,this._gl.ZERO),this._alphaState.alphaBlend=!0;break;case e.ALPHA_EXCLUSION:this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE_MINUS_DST_COLOR,this._gl.ONE_MINUS_SRC_COLOR,this._gl.ZERO,this._gl.ONE),this._alphaState.alphaBlend=!0;break;case e.ALPHA_LAYER_ACCUMULATE:this._alphaState.setAlphaBlendFunctionParameters(this._gl.SRC_ALPHA,this._gl.ONE_MINUS_SRC_ALPHA,this._gl.ONE,this._gl.ONE_MINUS_SRC_ALPHA),this._alphaState.alphaBlend=!0}r||(this.depthCullingState.depthMask=t===e.ALPHA_DISABLE),this._alphaMode=t}else if(!r){const r=t===e.ALPHA_DISABLE;this.depthCullingState.depthMask!==r&&(this.depthCullingState.depthMask=r)}},R.prototype.updateRawTexture=function(t,r,_,i,E=null,s=e.TEXTURETYPE_UNSIGNED_BYTE,a=!1){if(!t)return;const n=this._getRGBABufferInternalSizedFormat(s,_,a),T=this._getInternalFormat(_),h=this._getWebGLTextureType(s);this._bindTextureDirectly(this._gl.TEXTURE_2D,t,!0),this._unpackFlipY(void 0===i||!!i),this._doNotHandleContextLost||(t._bufferView=r,t.format=_,t.type=s,t.invertY=i,t._compression=E),t.width%4!=0&&this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,1),E&&r?this._gl.compressedTexImage2D(this._gl.TEXTURE_2D,0,this.getCaps().s3tc[E],t.width,t.height,0,r):this._gl.texImage2D(this._gl.TEXTURE_2D,0,n,t.width,t.height,0,T,h,r),t.generateMipMaps&&this._gl.generateMipmap(this._gl.TEXTURE_2D),this._bindTextureDirectly(this._gl.TEXTURE_2D,null),t.isReady=!0},R.prototype.createRawTexture=function(r,_,i,E,s,a,n,T=null,h=e.TEXTURETYPE_UNSIGNED_BYTE,l=0,R=!1){const u=new t(this,3);u.baseWidth=_,u.baseHeight=i,u.width=_,u.height=i,u.format=E,u.generateMipMaps=s,u.samplingMode=n,u.invertY=a,u._compression=T,u.type=h,u._useSRGBBuffer=this._getUseSRGBBuffer(R,!s),this._doNotHandleContextLost||(u._bufferView=r),this.updateRawTexture(u,r,E,a,T,h,u._useSRGBBuffer),this._bindTextureDirectly(this._gl.TEXTURE_2D,u,!0);const o=this._getSamplingParameters(n,s);return this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_MAG_FILTER,o.mag),this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_MIN_FILTER,o.min),s&&this._gl.generateMipmap(this._gl.TEXTURE_2D),this._bindTextureDirectly(this._gl.TEXTURE_2D,null),this._internalTexturesCache.push(u),u},R.prototype.createRawCubeTexture=function(i,E,s,a,n,T,h,l=null){const R=this._gl,u=new t(this,8);u.isCube=!0,u.format=s,u.type=a,this._doNotHandleContextLost||(u._bufferViewArray=i);const o=this._getWebGLTextureType(a);let A=this._getInternalFormat(s);A===R.RGB&&(A=R.RGBA),o!==R.FLOAT||this._caps.textureFloatLinearFiltering?o!==this._gl.HALF_FLOAT_OES||this._caps.textureHalfFloatLinearFiltering?o!==R.FLOAT||this._caps.textureFloatRender?o!==R.HALF_FLOAT||this._caps.colorBufferFloat||(n=!1,r.Warn("Render to half float textures is not supported. Mipmap generation forced to false.")):(n=!1,r.Warn("Render to float textures is not supported. Mipmap generation forced to false.")):(n=!1,h=e.TEXTURE_NEAREST_SAMPLINGMODE,r.Warn("Half float texture filtering is not supported. Mipmap generation and sampling mode are forced to false and TEXTURE_NEAREST_SAMPLINGMODE, respectively.")):(n=!1,h=e.TEXTURE_NEAREST_SAMPLINGMODE,r.Warn("Float texture filtering is not supported. Mipmap generation and sampling mode are forced to false and TEXTURE_NEAREST_SAMPLINGMODE, respectively."));const f=E,c=f;u.width=f,u.height=c,u.invertY=T,u._compression=l;if(!this.needPOTTextures||_(u.width)&&_(u.height)||(n=!1),i)this.updateRawCubeTexture(u,i,s,a,T,l);else{const e=this._getRGBABufferInternalSizedFormat(a),t=0;this._bindTextureDirectly(R.TEXTURE_CUBE_MAP,u,!0);for(let r=0;r<6;r++)l?R.compressedTexImage2D(R.TEXTURE_CUBE_MAP_POSITIVE_X+r,t,this.getCaps().s3tc[l],u.width,u.height,0,void 0):R.texImage2D(R.TEXTURE_CUBE_MAP_POSITIVE_X+r,t,e,u.width,u.height,0,A,o,null);this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,null)}this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,u,!0),i&&n&&this._gl.generateMipmap(this._gl.TEXTURE_CUBE_MAP);const d=this._getSamplingParameters(h,n);return R.texParameteri(R.TEXTURE_CUBE_MAP,R.TEXTURE_MAG_FILTER,d.mag),R.texParameteri(R.TEXTURE_CUBE_MAP,R.TEXTURE_MIN_FILTER,d.min),R.texParameteri(R.TEXTURE_CUBE_MAP,R.TEXTURE_WRAP_S,R.CLAMP_TO_EDGE),R.texParameteri(R.TEXTURE_CUBE_MAP,R.TEXTURE_WRAP_T,R.CLAMP_TO_EDGE),this._bindTextureDirectly(R.TEXTURE_CUBE_MAP,null),u.generateMipMaps=n,u.samplingMode=h,u.isReady=!0,u},R.prototype.updateRawCubeTexture=function(e,t,r,i,E,s=null,a=0){e._bufferViewArray=t,e.format=r,e.type=i,e.invertY=E,e._compression=s;const n=this._gl,T=this._getWebGLTextureType(i);let h=this._getInternalFormat(r);const l=this._getRGBABufferInternalSizedFormat(i);let R=!1;h===n.RGB&&(h=n.RGBA,R=!0),this._bindTextureDirectly(n.TEXTURE_CUBE_MAP,e,!0),this._unpackFlipY(void 0===E||!!E),e.width%4!=0&&n.pixelStorei(n.UNPACK_ALIGNMENT,1);for(let r=0;r<6;r++){let _=t[r];s?n.compressedTexImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+r,a,this.getCaps().s3tc[s],e.width,e.height,0,_):(R&&(_=N(_,e.width,e.height,i)),n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+r,a,l,e.width,e.height,0,h,T,_))}(!this.needPOTTextures||_(e.width)&&_(e.height))&&e.generateMipMaps&&0===a&&this._gl.generateMipmap(this._gl.TEXTURE_CUBE_MAP),this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,null),e.isReady=!0},R.prototype.createRawCubeTextureFromUrl=function(t,r,_,i,E,s,a,n,T=null,h=null,l=e.TEXTURE_TRILINEAR_SAMPLINGMODE,R=!1){const u=this._gl,o=this.createRawCubeTexture(null,_,i,E,!s,R,l,null);r?.addPendingData(o),o.url=t,o.isReady=!1,this._internalTexturesCache.push(o);const A=e=>{const t=o.width,_=a(e);if(_){if(n){const e=this._getWebGLTextureType(E);let r=this._getInternalFormat(i);const s=this._getRGBABufferInternalSizedFormat(E);let a=!1;r===u.RGB&&(r=u.RGBA,a=!0),this._bindTextureDirectly(u.TEXTURE_CUBE_MAP,o,!0),this._unpackFlipY(!1);const T=n(_);for(let _=0;_<T.length;_++){const i=t>>_;for(let t=0;t<6;t++){let n=T[_][t];a&&(n=N(n,i,i,E)),u.texImage2D(t,_,s,i,i,0,r,e,n)}}this._bindTextureDirectly(u.TEXTURE_CUBE_MAP,null)}else this.updateRawCubeTexture(o,_,i,E,R);o.isReady=!0,r?.removePendingData(o),o.onLoadedObservable.notifyObservers(o),o.onLoadedObservable.clear(),T&&T()}};return this._loadFile(t,(e=>{A(e)}),void 0,r?.offlineProvider,!0,((e,t)=>{r?.removePendingData(o),h&&e&&h(e.status+" "+e.statusText,t)})),o},R.prototype.createRawTexture2DArray=F(!1),R.prototype.createRawTexture3D=F(!0),R.prototype.updateRawTexture2DArray=I(!1),R.prototype.updateRawTexture3D=I(!0),R.prototype._readTexturePixelsSync=function(e,t,r,_=-1,E=0,s=null,a=!0,n=!1,T=0,h=0){const l=this._gl;if(!l)throw new Error("Engine does not have gl rendering context.");if(!this._dummyFramebuffer){const e=l.createFramebuffer();if(!e)throw new Error("Unable to create dummy framebuffer");this._dummyFramebuffer=e}l.bindFramebuffer(l.FRAMEBUFFER,this._dummyFramebuffer),_>-1?l.framebufferTexture2D(l.FRAMEBUFFER,l.COLOR_ATTACHMENT0,l.TEXTURE_CUBE_MAP_POSITIVE_X+_,e._hardwareTexture?.underlyingResource,E):l.framebufferTexture2D(l.FRAMEBUFFER,l.COLOR_ATTACHMENT0,l.TEXTURE_2D,e._hardwareTexture?.underlyingResource,E);let R=void 0!==e.type?this._getWebGLTextureType(e.type):l.UNSIGNED_BYTE;if(n)s||(s=i(e.type,4*t*r));else if(R===l.UNSIGNED_BYTE)s||(s=new Uint8Array(4*t*r)),R=l.UNSIGNED_BYTE;else s||(s=new Float32Array(4*t*r)),R=l.FLOAT;return a&&this.flushFramebuffer(),l.readPixels(T,h,t,r,l.RGBA,R,s),l.bindFramebuffer(l.FRAMEBUFFER,this._currentFramebuffer),s},R.prototype._readTexturePixels=function(e,t,r,_=-1,i=0,E=null,s=!0,a=!1,n=0,T=0){return Promise.resolve(this._readTexturePixelsSync(e,t,r,_,i,E,s,a,n,T))},R.prototype.updateDynamicIndexBuffer=function(e,t,r=0){let _;this._currentBoundBuffer[this._gl.ELEMENT_ARRAY_BUFFER]=null,this.bindIndexBuffer(e),_=e.is32Bits?t instanceof Uint32Array?t:new Uint32Array(t):t instanceof Uint16Array?t:new Uint16Array(t),this._gl.bufferData(this._gl.ELEMENT_ARRAY_BUFFER,_,this._gl.DYNAMIC_DRAW),this._resetIndexBufferBinding()},R.prototype.updateDynamicVertexBuffer=function(e,t,r,_){this.bindArrayBuffer(e),void 0===r&&(r=0);const i=t.byteLength||t.length;void 0===_||_>=i&&0===r?t instanceof Array?this._gl.bufferSubData(this._gl.ARRAY_BUFFER,r,new Float32Array(t)):this._gl.bufferSubData(this._gl.ARRAY_BUFFER,r,t):t instanceof Array?this._gl.bufferSubData(this._gl.ARRAY_BUFFER,0,new Float32Array(t).subarray(r,r+_)):(t=t instanceof ArrayBuffer?new Uint8Array(t,r,_):new Uint8Array(t.buffer,t.byteOffset+r,_),this._gl.bufferSubData(this._gl.ARRAY_BUFFER,0,t)),this._resetVertexBufferBinding()},R.prototype._createDepthStencilCubeTexture=function(e,_){const i=new t(this,12);if(i.isCube=!0,1===this.webGLVersion)return r.Error("Depth cube texture is not supported by WebGL 1."),i;const E={bilinearFiltering:!1,comparisonFunction:0,generateStencil:!1,..._},s=this._gl;this._bindTextureDirectly(s.TEXTURE_CUBE_MAP,i,!0),this._setupDepthStencilTexture(i,e,E.bilinearFiltering,E.comparisonFunction);for(let t=0;t<6;t++)E.generateStencil?s.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,s.DEPTH24_STENCIL8,e,e,0,s.DEPTH_STENCIL,s.UNSIGNED_INT_24_8,null):s.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,s.DEPTH_COMPONENT24,e,e,0,s.DEPTH_COMPONENT,s.UNSIGNED_INT,null);return this._bindTextureDirectly(s.TEXTURE_CUBE_MAP,null),this._internalTexturesCache.push(i),i},R.prototype._setCubeMapTextureParams=function(t,r,_){const i=this._gl;i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MIN_FILTER,r?i.LINEAR_MIPMAP_LINEAR:i.LINEAR),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),t.samplingMode=r?e.TEXTURE_TRILINEAR_SAMPLINGMODE:e.TEXTURE_LINEAR_LINEAR,r&&this.getCaps().textureMaxLevel&&void 0!==_&&_>0&&(i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MAX_LEVEL,_),t._maxLodLevel=_),this._bindTextureDirectly(i.TEXTURE_CUBE_MAP,null)},R.prototype.createCubeTexture=function(e,t,_,i,s=null,a=null,n,T=null,h=!1,l=0,R=0,u=null,o,A=!1,f=null){const c=this._gl;return this.createCubeTextureBase(e,t,_,!!i,s,a,n,T,h,l,R,u,(e=>this._bindTextureDirectly(c.TEXTURE_CUBE_MAP,e,!0)),((e,t)=>{const _=this.needPOTTextures?E(t[0].width,this._caps.maxCubemapTextureSize):t[0].width,a=_,T=[c.TEXTURE_CUBE_MAP_POSITIVE_X,c.TEXTURE_CUBE_MAP_POSITIVE_Y,c.TEXTURE_CUBE_MAP_POSITIVE_Z,c.TEXTURE_CUBE_MAP_NEGATIVE_X,c.TEXTURE_CUBE_MAP_NEGATIVE_Y,c.TEXTURE_CUBE_MAP_NEGATIVE_Z];this._bindTextureDirectly(c.TEXTURE_CUBE_MAP,e,!0),this._unpackFlipY(!1);const h=n?this._getInternalFormat(n,e._useSRGBBuffer):e._useSRGBBuffer?this._glSRGBExtensionValues.SRGB8_ALPHA8:c.RGBA;let l=n?this._getInternalFormat(n):c.RGBA;e._useSRGBBuffer&&1===this.webGLVersion&&(l=h);for(let e=0;e<T.length;e++)if(t[e].width!==_||t[e].height!==a){if(this._prepareWorkingCanvas(),!this._workingCanvas||!this._workingContext)return void r.Warn("Cannot create canvas to resize texture.");this._workingCanvas.width=_,this._workingCanvas.height=a,this._workingContext.drawImage(t[e],0,0,t[e].width,t[e].height,0,0,_,a),c.texImage2D(T[e],0,h,l,c.UNSIGNED_BYTE,this._workingCanvas)}else c.texImage2D(T[e],0,h,l,c.UNSIGNED_BYTE,t[e]);i||c.generateMipmap(c.TEXTURE_CUBE_MAP),this._setCubeMapTextureParams(e,!i),e.width=_,e.height=a,e.isReady=!0,n&&(e.format=n),e.onLoadedObservable.notifyObservers(e),e.onLoadedObservable.clear(),s&&s()}),!!A,f)},R.prototype.generateMipMapsForCubemap=function(e,t=!0){if(e.generateMipMaps){const r=this._gl;this._bindTextureDirectly(r.TEXTURE_CUBE_MAP,e,!0),r.generateMipmap(r.TEXTURE_CUBE_MAP),t&&this._bindTextureDirectly(r.TEXTURE_CUBE_MAP,null)}};class D extends A{setDepthStencilTexture(e,t=!0){if(super.setDepthStencilTexture(e,t),!e)return;const r=this._engine,_=this._context,i=e._hardwareTexture;if(i&&e._autoMSAAManagement&&this._MSAAFramebuffer){const t=r._currentFramebuffer;r._bindUnboundFramebuffer(this._MSAAFramebuffer),_.framebufferRenderbuffer(_.FRAMEBUFFER,s(e.format)?_.DEPTH_STENCIL_ATTACHMENT:_.DEPTH_ATTACHMENT,_.RENDERBUFFER,i.getMSAARenderBuffer()),r._bindUnboundFramebuffer(t)}}constructor(e,t,r,_,i){super(e,t,r,_),this._framebuffer=null,this._depthStencilBuffer=null,this._MSAAFramebuffer=null,this._colorTextureArray=null,this._depthStencilTextureArray=null,this._disposeOnlyFramebuffers=!1,this._currentLOD=0,this._context=i}_cloneRenderTargetWrapper(){let e=null;return this._colorTextureArray&&this._depthStencilTextureArray?(e=this._engine.createMultiviewRenderTargetTexture(this.width,this.height),e.texture.isReady=!0):e=super._cloneRenderTargetWrapper(),e}_swapRenderTargetWrapper(e){super._swapRenderTargetWrapper(e),e._framebuffer=this._framebuffer,e._depthStencilBuffer=this._depthStencilBuffer,e._MSAAFramebuffer=this._MSAAFramebuffer,e._colorTextureArray=this._colorTextureArray,e._depthStencilTextureArray=this._depthStencilTextureArray,this._framebuffer=this._depthStencilBuffer=this._MSAAFramebuffer=this._colorTextureArray=this._depthStencilTextureArray=null}createDepthStencilTexture(t=0,r=!0,_=!1,i=1,E=e.TEXTUREFORMAT_DEPTH32_FLOAT,s){if(this._depthStencilBuffer){const e=this._engine,t=e._currentFramebuffer,r=this._context;e._bindUnboundFramebuffer(this._framebuffer),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,null),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.RENDERBUFFER,null),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.STENCIL_ATTACHMENT,r.RENDERBUFFER,null),e._bindUnboundFramebuffer(t),r.deleteRenderbuffer(this._depthStencilBuffer),this._depthStencilBuffer=null}return super.createDepthStencilTexture(t,r,_,i,E,s)}shareDepth(e){super.shareDepth(e);const t=this._context,r=this._depthStencilBuffer,_=e._MSAAFramebuffer||e._framebuffer,i=this._engine;e._depthStencilBuffer&&e._depthStencilBuffer!==r&&t.deleteRenderbuffer(e._depthStencilBuffer),e._depthStencilBuffer=r;const E=e._generateStencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT;i._bindUnboundFramebuffer(_),t.framebufferRenderbuffer(t.FRAMEBUFFER,E,t.RENDERBUFFER,r),i._bindUnboundFramebuffer(null)}_bindTextureRenderTarget(e,t=0,r,_=0){const i=e._hardwareTexture;if(!i)return;const E=this._framebuffer,s=this._engine,a=s._currentFramebuffer;let n;if(s._bindUnboundFramebuffer(E),s.webGLVersion>1){const E=this._context;n=E["COLOR_ATTACHMENT"+t],e.is2DArray||e.is3D?(r=r??this.layerIndices?.[t]??0,E.framebufferTextureLayer(E.FRAMEBUFFER,n,i.underlyingResource,_,r)):e.isCube?(r=r??this.faceIndices?.[t]??0,E.framebufferTexture2D(E.FRAMEBUFFER,n,E.TEXTURE_CUBE_MAP_POSITIVE_X+r,i.underlyingResource,_)):E.framebufferTexture2D(E.FRAMEBUFFER,n,E.TEXTURE_2D,i.underlyingResource,_)}else{const e=this._context;n=e["COLOR_ATTACHMENT"+t+"_WEBGL"];const E=void 0!==r?e.TEXTURE_CUBE_MAP_POSITIVE_X+r:e.TEXTURE_2D;e.framebufferTexture2D(e.FRAMEBUFFER,n,E,i.underlyingResource,_)}if(e._autoMSAAManagement&&this._MSAAFramebuffer){const e=this._context;s._bindUnboundFramebuffer(this._MSAAFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,i.getMSAARenderBuffer())}s._bindUnboundFramebuffer(a)}setTexture(e,t=0,r=!0){super.setTexture(e,t,r),this._bindTextureRenderTarget(e,t)}setLayerAndFaceIndices(e,t){if(super.setLayerAndFaceIndices(e,t),!this.textures||!this.layerIndices||!this.faceIndices)return;const r=this._attachments?.length??this.textures.length;for(let e=0;e<r;e++){const t=this.textures[e];t&&(t.is2DArray||t.is3D?this._bindTextureRenderTarget(t,e,this.layerIndices[e]):t.isCube?this._bindTextureRenderTarget(t,e,this.faceIndices[e]):this._bindTextureRenderTarget(t,e))}}setLayerAndFaceIndex(e=0,t,r){if(super.setLayerAndFaceIndex(e,t,r),!this.textures||!this.layerIndices||!this.faceIndices)return;const _=this.textures[e];_.is2DArray||_.is3D?this._bindTextureRenderTarget(this.textures[e],e,this.layerIndices[e]):_.isCube&&this._bindTextureRenderTarget(this.textures[e],e,this.faceIndices[e])}resolveMSAATextures(){const e=this._engine,t=e._currentFramebuffer;e._bindUnboundFramebuffer(this._MSAAFramebuffer),super.resolveMSAATextures(),e._bindUnboundFramebuffer(t)}dispose(e=this._disposeOnlyFramebuffers){const t=this._context;e||(this._colorTextureArray&&(this._context.deleteTexture(this._colorTextureArray),this._colorTextureArray=null),this._depthStencilTextureArray&&(this._context.deleteTexture(this._depthStencilTextureArray),this._depthStencilTextureArray=null)),this._framebuffer&&(t.deleteFramebuffer(this._framebuffer),this._framebuffer=null),this._depthStencilBuffer&&(t.deleteRenderbuffer(this._depthStencilBuffer),this._depthStencilBuffer=null),this._MSAAFramebuffer&&(t.deleteFramebuffer(this._MSAAFramebuffer),this._MSAAFramebuffer=null),super.dispose(e)}}R.prototype._createHardwareRenderTargetWrapper=function(e,t,r){const _=new D(e,t,r,this,this._gl);return this._renderTargetWrapperCache.push(_),_},R.prototype.createRenderTargetTexture=function(e,t){const r=this._createHardwareRenderTargetWrapper(!1,!1,e);let _,i,E=!0,s=!1,a=!1,n=1;void 0!==t&&"object"==typeof t&&(E=t.generateDepthBuffer??!0,s=!!t.generateStencilBuffer,a=!!t.noColorAttachment,_=t.colorAttachment,n=t.samples??1,i=t.label);const T=_||(a?null:this._createInternalTexture(e,t,!0,5)),h=e.width||e,l=e.height||e,R=this._currentFramebuffer,u=this._gl,o=u.createFramebuffer();if(this._bindUnboundFramebuffer(o),r._depthStencilBuffer=this._setupFramebufferDepthAttachments(s,E,h,l),!T||T.is2DArray||T.is3D||u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,T._hardwareTexture.underlyingResource,0),this._bindUnboundFramebuffer(R),r.label=i??"RenderTargetWrapper",r._framebuffer=o,r._generateDepthBuffer=E,r._generateStencilBuffer=s,r.setTextures(T),_){if(r._samples=_.samples,_.samples>1){const e=_._hardwareTexture.getMSAARenderBuffer(0);r._MSAAFramebuffer=u.createFramebuffer(),this._bindUnboundFramebuffer(r._MSAAFramebuffer),u.framebufferRenderbuffer(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.RENDERBUFFER,e),this._bindUnboundFramebuffer(null)}}else this.updateRenderTargetTextureSampleCount(r,n);return r},R.prototype._createDepthStencilTexture=function(_,i,E){const s=this._gl,a=_.layers||0,n=_.depth||0;let T=s.TEXTURE_2D;0!==a?T=s.TEXTURE_2D_ARRAY:0!==n&&(T=s.TEXTURE_3D);const h=new t(this,12);if(h.label=i.label,!this._caps.depthTextureExtension)return r.Error("Depth texture is not supported by your browser or hardware."),h;const l={bilinearFiltering:!1,comparisonFunction:0,generateStencil:!1,...i};if(this._bindTextureDirectly(T,h,!0),this._setupDepthStencilTexture(h,_,0!==l.comparisonFunction&&l.bilinearFiltering,l.comparisonFunction,l.samples),void 0!==l.depthTextureFormat){if(l.depthTextureFormat!==e.TEXTUREFORMAT_DEPTH16&&l.depthTextureFormat!==e.TEXTUREFORMAT_DEPTH24&&l.depthTextureFormat!==e.TEXTUREFORMAT_DEPTH24UNORM_STENCIL8&&l.depthTextureFormat!==e.TEXTUREFORMAT_DEPTH24_STENCIL8&&l.depthTextureFormat!==e.TEXTUREFORMAT_DEPTH32_FLOAT&&l.depthTextureFormat!==e.TEXTUREFORMAT_DEPTH32FLOAT_STENCIL8)return r.Error(`Depth texture ${l.depthTextureFormat} format is not supported.`),h;h.format=l.depthTextureFormat}else h.format=l.generateStencil?e.TEXTUREFORMAT_DEPTH24_STENCIL8:e.TEXTUREFORMAT_DEPTH24;const R=h.format===e.TEXTUREFORMAT_DEPTH24UNORM_STENCIL8||h.format===e.TEXTUREFORMAT_DEPTH24_STENCIL8||h.format===e.TEXTUREFORMAT_DEPTH32FLOAT_STENCIL8,u=this._getWebGLTextureTypeFromDepthTextureFormat(h.format),o=R?s.DEPTH_STENCIL:s.DEPTH_COMPONENT,A=this._getInternalFormatFromDepthTextureFormat(h.format,!0,R);return h.is2DArray?s.texImage3D(T,0,A,h.width,h.height,a,0,o,u,null):h.is3D?s.texImage3D(T,0,A,h.width,h.height,n,0,o,u,null):s.texImage2D(T,0,A,h.width,h.height,0,o,u,null),this._bindTextureDirectly(T,null),this._internalTexturesCache.push(h),E._depthStencilBuffer&&(s.deleteRenderbuffer(E._depthStencilBuffer),E._depthStencilBuffer=null),this._bindUnboundFramebuffer(E._MSAAFramebuffer??E._framebuffer),E._generateStencilBuffer=R,E._depthStencilTextureWithStencil=R,E._depthStencilBuffer=this._setupFramebufferDepthAttachments(E._generateStencilBuffer,E._generateDepthBuffer,E.width,E.height,E.samples,h.format),this._bindUnboundFramebuffer(null),h},R.prototype.updateRenderTargetTextureSampleCount=function(e,t){if(this.webGLVersion<2||!e)return 1;if(e.samples===t)return t;const r=this._gl;t=Math.min(t,this.getCaps().maxMSAASamples),e._depthStencilBuffer&&(r.deleteRenderbuffer(e._depthStencilBuffer),e._depthStencilBuffer=null),e._MSAAFramebuffer&&(r.deleteFramebuffer(e._MSAAFramebuffer),e._MSAAFramebuffer=null);const _=e.texture?._hardwareTexture;if(_?.releaseMSAARenderBuffers(),e.texture&&t>1&&"function"==typeof r.renderbufferStorageMultisample){const i=r.createFramebuffer();if(!i)throw new Error("Unable to create multi sampled framebuffer");e._MSAAFramebuffer=i,this._bindUnboundFramebuffer(e._MSAAFramebuffer);const E=this._createRenderBuffer(e.texture.width,e.texture.height,t,-1,this._getRGBABufferInternalSizedFormat(e.texture.type,e.texture.format,e.texture._useSRGBBuffer),r.COLOR_ATTACHMENT0,!1);if(!E)throw new Error("Unable to create multi sampled framebuffer");_?.addMSAARenderBuffer(E)}this._bindUnboundFramebuffer(e._MSAAFramebuffer??e._framebuffer),e.texture&&(e.texture.samples=t),e._samples=t;const i=e._depthStencilTexture?e._depthStencilTexture.format:void 0;return e._depthStencilBuffer=this._setupFramebufferDepthAttachments(e._generateStencilBuffer,e._generateDepthBuffer,e.width,e.height,t,i),this._bindUnboundFramebuffer(null),t},R.prototype._setupDepthStencilTexture=function(t,r,_,i,E=1){const s=r.width??r,a=r.height??r,n=r.layers||0,T=r.depth||0;t.baseWidth=s,t.baseHeight=a,t.width=s,t.height=a,t.is2DArray=n>0,t.depth=n||T,t.isReady=!0,t.samples=E,t.generateMipMaps=!1,t.samplingMode=_?e.TEXTURE_BILINEAR_SAMPLINGMODE:e.TEXTURE_NEAREST_SAMPLINGMODE,t.type=e.TEXTURETYPE_UNSIGNED_BYTE,t._comparisonFunction=i;const h=this._gl,l=this._getTextureTarget(t),R=this._getSamplingParameters(t.samplingMode,!1);h.texParameteri(l,h.TEXTURE_MAG_FILTER,R.mag),h.texParameteri(l,h.TEXTURE_MIN_FILTER,R.min),h.texParameteri(l,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(l,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE),this.webGLVersion>1&&(0===i?(h.texParameteri(l,h.TEXTURE_COMPARE_FUNC,e.LEQUAL),h.texParameteri(l,h.TEXTURE_COMPARE_MODE,h.NONE)):(h.texParameteri(l,h.TEXTURE_COMPARE_FUNC,i),h.texParameteri(l,h.TEXTURE_COMPARE_MODE,h.COMPARE_REF_TO_TEXTURE)))},R.prototype.setDepthStencilTexture=function(e,t,r,_){void 0!==e&&(t&&(this._boundUniforms[e]=t),r&&r.depthStencilTexture?this._setTexture(e,r,!1,!0,_):this._setTexture(e,null,void 0,void 0,_))},R.prototype.createRenderTargetCubeTexture=function(_,i){const E=this._createHardwareRenderTargetWrapper(!1,!0,_),s={generateMipMaps:!0,generateDepthBuffer:!0,generateStencilBuffer:!1,type:e.TEXTURETYPE_UNSIGNED_BYTE,samplingMode:e.TEXTURE_TRILINEAR_SAMPLINGMODE,format:e.TEXTUREFORMAT_RGBA,...i};s.generateStencilBuffer=s.generateDepthBuffer&&s.generateStencilBuffer,(s.type!==e.TEXTURETYPE_FLOAT||this._caps.textureFloatLinearFiltering)&&(s.type!==e.TEXTURETYPE_HALF_FLOAT||this._caps.textureHalfFloatLinearFiltering)||(s.samplingMode=e.TEXTURE_NEAREST_SAMPLINGMODE);const a=this._gl,n=new t(this,5);this._bindTextureDirectly(a.TEXTURE_CUBE_MAP,n,!0);const T=this._getSamplingParameters(s.samplingMode,s.generateMipMaps);s.type!==e.TEXTURETYPE_FLOAT||this._caps.textureFloat||(s.type=e.TEXTURETYPE_UNSIGNED_BYTE,r.Warn("Float textures are not supported. Cube render target forced to TEXTURETYPE_UNESIGNED_BYTE type")),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_MAG_FILTER,T.mag),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_MIN_FILTER,T.min),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);for(let e=0;e<6;e++)a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,this._getRGBABufferInternalSizedFormat(s.type,s.format),_,_,0,this._getInternalFormat(s.format),this._getWebGLTextureType(s.type),null);const h=a.createFramebuffer();return this._bindUnboundFramebuffer(h),E._depthStencilBuffer=this._setupFramebufferDepthAttachments(s.generateStencilBuffer,s.generateDepthBuffer,_,_),s.generateMipMaps&&a.generateMipmap(a.TEXTURE_CUBE_MAP),this._bindTextureDirectly(a.TEXTURE_CUBE_MAP,null),this._bindUnboundFramebuffer(null),E._framebuffer=h,E._generateDepthBuffer=s.generateDepthBuffer,E._generateStencilBuffer=s.generateStencilBuffer,n.width=_,n.height=_,n.isReady=!0,n.isCube=!0,n.samples=1,n.generateMipMaps=s.generateMipMaps,n.samplingMode=s.samplingMode,n.type=s.type,n.format=s.format,this._internalTexturesCache.push(n),E.setTextures(n),E},R.prototype.createPrefilteredCubeTexture=function(_,i,E,s,T=null,h=null,l,R=null,u=!0){return this.createCubeTexture(_,i,null,!1,(async _=>{if(!_)return void(T&&T(null));const h=_.texture;if(u?_.info.sphericalPolynomial&&(h._sphericalPolynomial=_.info.sphericalPolynomial):h._sphericalPolynomial=new a,h._source=9,this.getCaps().textureLOD)return void(T&&T(h));const l=this._gl,R=_.width;if(!R)return;const{DDSTools:o}=await import("./dds-Bd8lzypO.esm.min.js"),A=[];for(let a=0;a<3;a++){const T=1-a/2,u=s,f=Math.log2(R)*E+s,c=u+(f-u)*T,d=Math.round(Math.min(Math.max(c,0),f)),U=new t(this,2);if(U.type=h.type,U.format=h.format,U.width=Math.pow(2,Math.max(Math.log2(R)-d,0)),U.height=U.width,U.isCube=!0,U._cachedWrapU=e.TEXTURE_CLAMP_ADDRESSMODE,U._cachedWrapV=e.TEXTURE_CLAMP_ADDRESSMODE,this._bindTextureDirectly(l.TEXTURE_CUBE_MAP,U,!0),U.samplingMode=e.TEXTURE_LINEAR_LINEAR,l.texParameteri(l.TEXTURE_CUBE_MAP,l.TEXTURE_MAG_FILTER,l.LINEAR),l.texParameteri(l.TEXTURE_CUBE_MAP,l.TEXTURE_MIN_FILTER,l.LINEAR),l.texParameteri(l.TEXTURE_CUBE_MAP,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_CUBE_MAP,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE),_.isDDS){const e=_.info,t=_.data;this._unpackFlipY(e.isCompressed),o.UploadDDSLevels(this,U,t,e,!0,6,d)}else r.Warn("DDS is the only prefiltered cube map supported so far.");this._bindTextureDirectly(l.TEXTURE_CUBE_MAP,null);const p=new n(i);p._isCube=!0,p._texture=U,U.isReady=!0,A.push(p)}h._lodTextureHigh=A[2],h._lodTextureMid=A[1],h._lodTextureLow=A[0],T&&T(h)}),h,l,R,u,E,s)},R.prototype.createUniformBuffer=function(e,t){const r=this._gl.createBuffer();if(!r)throw new Error("Unable to create uniform buffer");const _=new u(r);return this.bindUniformBuffer(_),e instanceof Float32Array?this._gl.bufferData(this._gl.UNIFORM_BUFFER,e,this._gl.STATIC_DRAW):this._gl.bufferData(this._gl.UNIFORM_BUFFER,new Float32Array(e),this._gl.STATIC_DRAW),this.bindUniformBuffer(null),_.references=1,_},R.prototype.createDynamicUniformBuffer=function(e,t){const r=this._gl.createBuffer();if(!r)throw new Error("Unable to create dynamic uniform buffer");const _=new u(r);return this.bindUniformBuffer(_),e instanceof Float32Array?this._gl.bufferData(this._gl.UNIFORM_BUFFER,e,this._gl.DYNAMIC_DRAW):this._gl.bufferData(this._gl.UNIFORM_BUFFER,new Float32Array(e),this._gl.DYNAMIC_DRAW),this.bindUniformBuffer(null),_.references=1,_},R.prototype.updateUniformBuffer=function(e,t,r,_){this.bindUniformBuffer(e),void 0===r&&(r=0),void 0===_?t instanceof Float32Array?this._gl.bufferSubData(this._gl.UNIFORM_BUFFER,r,t):this._gl.bufferSubData(this._gl.UNIFORM_BUFFER,r,new Float32Array(t)):t instanceof Float32Array?this._gl.bufferSubData(this._gl.UNIFORM_BUFFER,0,t.subarray(r,r+_)):this._gl.bufferSubData(this._gl.UNIFORM_BUFFER,0,new Float32Array(t).subarray(r,r+_)),this.bindUniformBuffer(null)},R.prototype.bindUniformBuffer=function(e){this._gl.bindBuffer(this._gl.UNIFORM_BUFFER,e?e.underlyingResource:null)},R.prototype.bindUniformBufferBase=function(e,t,r){this._gl.bindBufferBase(this._gl.UNIFORM_BUFFER,t,e?e.underlyingResource:null)},R.prototype.bindUniformBlock=function(e,t,r){const _=e.program,i=this._gl.getUniformBlockIndex(_,t);4294967295!==i&&this._gl.uniformBlockBinding(_,i,r)};class O extends R{static get NpmPackage(){return T.NpmPackage}static get Version(){return T.Version}static get Instances(){return h.Instances}static get LastCreatedEngine(){return h.LastCreatedEngine}static get LastCreatedScene(){return h.LastCreatedScene}static DefaultLoadingScreenFactory(e){return T.DefaultLoadingScreenFactory(e)}get _supportsHardwareTextureRescaling(){return!!O._RescalePostProcessFactory}_measureFps(){this._performanceMonitor.sampleFrame(),this._fps=this._performanceMonitor.averageFPS,this._deltaTime=this._performanceMonitor.instantaneousFrameTime||0}get performanceMonitor(){return this._performanceMonitor}constructor(e,t,r,_=!1){super(e,t,r,_),this.customAnimationFrameRequester=null,this._performanceMonitor=new f,this._drawCalls=new l,e&&(this._features.supportRenderPasses=!0,r=this._creationOptions)}_initGLContext(){super._initGLContext(),this._rescalePostProcess=null}_sharedInit(e){super._sharedInit(e),c(this,e,this._creationOptions)}resizeImageBitmap(e,t,r){return d(this,e,t,r)}_createImageBitmapFromSource(e,t){return U(this,e,t)}switchFullscreen(e){this.isFullscreen?this.exitFullscreen():this.enterFullscreen(e)}enterFullscreen(e){this.isFullscreen||(this._pointerLockRequested=e,this._renderingCanvas&&p(this._renderingCanvas))}exitFullscreen(){this.isFullscreen&&g()}setDitheringState(e){e?this._gl.enable(this._gl.DITHER):this._gl.disable(this._gl.DITHER)}setRasterizerState(e){e?this._gl.disable(this._gl.RASTERIZER_DISCARD):this._gl.enable(this._gl.RASTERIZER_DISCARD)}setDirectViewport(e,t,r,_){const i=this._cachedViewport;return this._cachedViewport=null,this._viewport(e,t,r,_),i}scissorClear(e,t,r,_,i){this.enableScissor(e,t,r,_),this.clear(i,!0,!0,!0),this.disableScissor()}enableScissor(e,t,r,_){const i=this._gl;i.enable(i.SCISSOR_TEST),i.scissor(e,t,r,_)}disableScissor(){const e=this._gl;e.disable(e.SCISSOR_TEST)}_loadFileAsync(e,t,r){return new Promise(((_,i)=>{this._loadFile(e,(e=>{_(e)}),void 0,t,r,((e,t)=>{i(t)}))}))}getVertexShaderSource(e){const t=this._gl.getAttachedShaders(e);return t?this._gl.getShaderSource(t[0]):null}getFragmentShaderSource(e){const t=this._gl.getAttachedShaders(e);return t?this._gl.getShaderSource(t[1]):null}set framebufferDimensionsObject(e){this._framebufferDimensionsObject=e,this._framebufferDimensionsObject&&this.onResizeObservable.notifyObservers(this)}_rebuildBuffers(){for(const e of this.scenes)e.resetCachedMaterial(),e._rebuildGeometries();for(const e of this._virtualScenes)e.resetCachedMaterial(),e._rebuildGeometries();super._rebuildBuffers()}getFontOffset(e){return m(e)}_cancelFrame(){if(this.customAnimationFrameRequester){if(0!==this._frameHandler){this._frameHandler=0;const{cancelAnimationFrame:e}=this.customAnimationFrameRequester;e&&e(this.customAnimationFrameRequester.requestID)}}else super._cancelFrame()}_renderLoop(){if(this._frameHandler=0,!this._contextWasLost){let e=!0;(this.isDisposed||!this.renderEvenInBackground&&this._windowIsBackground)&&(e=!1),e&&(this.beginFrame(),this._renderViews()||this._renderFrame(),this.endFrame())}this._activeRenderLoops.length>0&&0===this._frameHandler&&(this.customAnimationFrameRequester?(this.customAnimationFrameRequester.requestID=this._queueNewFrame(this.customAnimationFrameRequester.renderFunction||this._boundRenderFunction,this.customAnimationFrameRequester),this._frameHandler=this.customAnimationFrameRequester.requestID):this._frameHandler=this._queueNewFrame(this._boundRenderFunction,this.getHostWindow()))}enterPointerlock(){this._renderingCanvas&&M(this._renderingCanvas)}exitPointerlock(){S()}beginFrame(){this._measureFps(),super.beginFrame()}_deletePipelineContext(e){const t=e;t&&t.program&&t.transformFeedback&&(this.deleteTransformFeedback(t.transformFeedback),t.transformFeedback=null),super._deletePipelineContext(e)}createShaderProgram(e,t,r,_,i,E=null){i=i||this._gl,this.onBeforeShaderCompilationObservable.notifyObservers(this);const s=super.createShaderProgram(e,t,r,_,i,E);return this.onAfterShaderCompilationObservable.notifyObservers(this),s}_createShaderProgram(e,t,r,_,i=null){const E=_.createProgram();if(e.program=E,!E)throw new Error("Unable to create program");if(_.attachShader(E,t),_.attachShader(E,r),this.webGLVersion>1&&i){const t=this.createTransformFeedback();this.bindTransformFeedback(t),this.setTranformFeedbackVaryings(E,i),e.transformFeedback=t}return _.linkProgram(E),this.webGLVersion>1&&i&&this.bindTransformFeedback(null),e.context=_,e.vertexShader=t,e.fragmentShader=r,e.isParallelCompiled||this._finalizePipelineContext(e),E}_releaseTexture(e){super._releaseTexture(e)}_releaseRenderTargetWrapper(e){super._releaseRenderTargetWrapper(e),this.scenes.forEach((t=>{t.postProcesses.forEach((t=>{t._outputTexture===e&&(t._outputTexture=null)})),t.cameras.forEach((t=>{t._postProcesses.forEach((t=>{t&&t._outputTexture===e&&(t._outputTexture=null)}))}))}))}_rescaleTexture(t,r,_,i,E){this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_MAG_FILTER,this._gl.LINEAR),this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_MIN_FILTER,this._gl.LINEAR),this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_WRAP_S,this._gl.CLAMP_TO_EDGE),this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_WRAP_T,this._gl.CLAMP_TO_EDGE);const s=this.createRenderTargetTexture({width:r.width,height:r.height},{generateMipMaps:!1,type:e.TEXTURETYPE_UNSIGNED_INT,samplingMode:e.TEXTURE_BILINEAR_SAMPLINGMODE,generateDepthBuffer:!1,generateStencilBuffer:!1});if(!this._rescalePostProcess&&O._RescalePostProcessFactory&&(this._rescalePostProcess=O._RescalePostProcessFactory(this)),this._rescalePostProcess){this._rescalePostProcess.externalTextureSamplerBinding=!0;const e=()=>{this._rescalePostProcess.onApply=function(e){e._bindTexture("textureSampler",t)};let e=_;e||(e=this.scenes[this.scenes.length-1]),e.postProcessManager.directRender([this._rescalePostProcess],s,!0),this._bindTextureDirectly(this._gl.TEXTURE_2D,r,!0),this._gl.copyTexImage2D(this._gl.TEXTURE_2D,0,i,0,0,r.width,r.height,0),this.unBindFramebuffer(s),s.dispose(),E&&E()},a=this._rescalePostProcess.getEffect();a?a.executeWhenCompiled(e):this._rescalePostProcess.onEffectCreatedObservable.addOnce((t=>{t.executeWhenCompiled(e)}))}}wrapWebGLTexture(r,_=!1,i=e.TEXTURE_TRILINEAR_SAMPLINGMODE,E=0,s=0){const a=new o(r,this._gl),n=new t(this,0,!0);return n._hardwareTexture=a,n.baseWidth=E,n.baseHeight=s,n.width=E,n.height=s,n.isReady=!0,n.useMipMaps=_,this.updateTextureSamplingMode(i,n),n}_uploadImageToTexture(e,t,r=0,_=0){const i=this._gl,E=this._getWebGLTextureType(e.type),s=this._getInternalFormat(e.format),a=this._getRGBABufferInternalSizedFormat(e.type,s),n=e.isCube?i.TEXTURE_CUBE_MAP:i.TEXTURE_2D;this._bindTextureDirectly(n,e,!0),this._unpackFlipY(e.invertY);let T=i.TEXTURE_2D;e.isCube&&(T=i.TEXTURE_CUBE_MAP_POSITIVE_X+r),i.texImage2D(T,_,a,s,E,t),this._bindTextureDirectly(n,null,!0)}updateTextureComparisonFunction(t,_){if(1===this.webGLVersion)return void r.Error("WebGL 1 does not support texture comparison.");const i=this._gl;t.isCube?(this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,t,!0),0===_?(i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_COMPARE_FUNC,e.LEQUAL),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_COMPARE_MODE,i.NONE)):(i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_COMPARE_FUNC,_),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_COMPARE_MODE,i.COMPARE_REF_TO_TEXTURE)),this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,null)):(this._bindTextureDirectly(this._gl.TEXTURE_2D,t,!0),0===_?(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_COMPARE_FUNC,e.LEQUAL),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_COMPARE_MODE,i.NONE)):(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_COMPARE_FUNC,_),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_COMPARE_MODE,i.COMPARE_REF_TO_TEXTURE)),this._bindTextureDirectly(this._gl.TEXTURE_2D,null)),t._comparisonFunction=_}createInstancesBuffer(e){const t=this._gl.createBuffer();if(!t)throw new Error("Unable to create instance buffer");const r=new u(t);return r.capacity=e,this.bindArrayBuffer(r),this._gl.bufferData(this._gl.ARRAY_BUFFER,e,this._gl.DYNAMIC_DRAW),r.references=1,r}deleteInstancesBuffer(e){this._gl.deleteBuffer(e)}_clientWaitAsync(e,t=0,r=10){const _=this._gl;return new Promise(((i,E)=>{const s=()=>{const a=_.clientWaitSync(e,t,0);a!=_.WAIT_FAILED?a!=_.TIMEOUT_EXPIRED?i():setTimeout(s,r):E()};s()}))}_readPixelsAsync(e,t,r,_,i,E,s){if(this._webGLVersion<2)throw new Error("_readPixelsAsync only work on WebGL2+");const a=this._gl,n=a.createBuffer();a.bindBuffer(a.PIXEL_PACK_BUFFER,n),a.bufferData(a.PIXEL_PACK_BUFFER,s.byteLength,a.STREAM_READ),a.readPixels(e,t,r,_,i,E,0),a.bindBuffer(a.PIXEL_PACK_BUFFER,null);const T=a.fenceSync(a.SYNC_GPU_COMMANDS_COMPLETE,0);return T?(a.flush(),this._clientWaitAsync(T,0,10).then((()=>(a.deleteSync(T),a.bindBuffer(a.PIXEL_PACK_BUFFER,n),a.getBufferSubData(a.PIXEL_PACK_BUFFER,0,s),a.bindBuffer(a.PIXEL_PACK_BUFFER,null),a.deleteBuffer(n),s)))):null}dispose(){this.hideLoadingUI(),this._rescalePostProcess&&this._rescalePostProcess.dispose(),P(this,this._renderingCanvas),super.dispose()}}O.ALPHA_DISABLE=e.ALPHA_DISABLE,O.ALPHA_ADD=e.ALPHA_ADD,O.ALPHA_COMBINE=e.ALPHA_COMBINE,O.ALPHA_SUBTRACT=e.ALPHA_SUBTRACT,O.ALPHA_MULTIPLY=e.ALPHA_MULTIPLY,O.ALPHA_MAXIMIZED=e.ALPHA_MAXIMIZED,O.ALPHA_ONEONE=e.ALPHA_ONEONE,O.ALPHA_PREMULTIPLIED=e.ALPHA_PREMULTIPLIED,O.ALPHA_PREMULTIPLIED_PORTERDUFF=e.ALPHA_PREMULTIPLIED_PORTERDUFF,O.ALPHA_INTERPOLATE=e.ALPHA_INTERPOLATE,O.ALPHA_SCREENMODE=e.ALPHA_SCREENMODE,O.DELAYLOADSTATE_NONE=e.DELAYLOADSTATE_NONE,O.DELAYLOADSTATE_LOADED=e.DELAYLOADSTATE_LOADED,O.DELAYLOADSTATE_LOADING=e.DELAYLOADSTATE_LOADING,O.DELAYLOADSTATE_NOTLOADED=e.DELAYLOADSTATE_NOTLOADED,O.NEVER=e.NEVER,O.ALWAYS=e.ALWAYS,O.LESS=e.LESS,O.EQUAL=e.EQUAL,O.LEQUAL=e.LEQUAL,O.GREATER=e.GREATER,O.GEQUAL=e.GEQUAL,O.NOTEQUAL=e.NOTEQUAL,O.KEEP=e.KEEP,O.REPLACE=e.REPLACE,O.INCR=e.INCR,O.DECR=e.DECR,O.INVERT=e.INVERT,O.INCR_WRAP=e.INCR_WRAP,O.DECR_WRAP=e.DECR_WRAP,O.TEXTURE_CLAMP_ADDRESSMODE=e.TEXTURE_CLAMP_ADDRESSMODE,O.TEXTURE_WRAP_ADDRESSMODE=e.TEXTURE_WRAP_ADDRESSMODE,O.TEXTURE_MIRROR_ADDRESSMODE=e.TEXTURE_MIRROR_ADDRESSMODE,O.TEXTUREFORMAT_ALPHA=e.TEXTUREFORMAT_ALPHA,O.TEXTUREFORMAT_LUMINANCE=e.TEXTUREFORMAT_LUMINANCE,O.TEXTUREFORMAT_LUMINANCE_ALPHA=e.TEXTUREFORMAT_LUMINANCE_ALPHA,O.TEXTUREFORMAT_RGB=e.TEXTUREFORMAT_RGB,O.TEXTUREFORMAT_RGBA=e.TEXTUREFORMAT_RGBA,O.TEXTUREFORMAT_RED=e.TEXTUREFORMAT_RED,O.TEXTUREFORMAT_R=e.TEXTUREFORMAT_R,O.TEXTUREFORMAT_R16_UNORM=e.TEXTUREFORMAT_R16_UNORM,O.TEXTUREFORMAT_RG16_UNORM=e.TEXTUREFORMAT_RG16_UNORM,O.TEXTUREFORMAT_RGB16_UNORM=e.TEXTUREFORMAT_RGB16_UNORM,O.TEXTUREFORMAT_RGBA16_UNORM=e.TEXTUREFORMAT_RGBA16_UNORM,O.TEXTUREFORMAT_R16_SNORM=e.TEXTUREFORMAT_R16_SNORM,O.TEXTUREFORMAT_RG16_SNORM=e.TEXTUREFORMAT_RG16_SNORM,O.TEXTUREFORMAT_RGB16_SNORM=e.TEXTUREFORMAT_RGB16_SNORM,O.TEXTUREFORMAT_RGBA16_SNORM=e.TEXTUREFORMAT_RGBA16_SNORM,O.TEXTUREFORMAT_RG=e.TEXTUREFORMAT_RG,O.TEXTUREFORMAT_RED_INTEGER=e.TEXTUREFORMAT_RED_INTEGER,O.TEXTUREFORMAT_R_INTEGER=e.TEXTUREFORMAT_R_INTEGER,O.TEXTUREFORMAT_RG_INTEGER=e.TEXTUREFORMAT_RG_INTEGER,O.TEXTUREFORMAT_RGB_INTEGER=e.TEXTUREFORMAT_RGB_INTEGER,O.TEXTUREFORMAT_RGBA_INTEGER=e.TEXTUREFORMAT_RGBA_INTEGER,O.TEXTURETYPE_UNSIGNED_BYTE=e.TEXTURETYPE_UNSIGNED_BYTE,O.TEXTURETYPE_UNSIGNED_INT=e.TEXTURETYPE_UNSIGNED_INT,O.TEXTURETYPE_FLOAT=e.TEXTURETYPE_FLOAT,O.TEXTURETYPE_HALF_FLOAT=e.TEXTURETYPE_HALF_FLOAT,O.TEXTURETYPE_BYTE=e.TEXTURETYPE_BYTE,O.TEXTURETYPE_SHORT=e.TEXTURETYPE_SHORT,O.TEXTURETYPE_UNSIGNED_SHORT=e.TEXTURETYPE_UNSIGNED_SHORT,O.TEXTURETYPE_INT=e.TEXTURETYPE_INT,O.TEXTURETYPE_UNSIGNED_INTEGER=e.TEXTURETYPE_UNSIGNED_INTEGER,O.TEXTURETYPE_UNSIGNED_SHORT_4_4_4_4=e.TEXTURETYPE_UNSIGNED_SHORT_4_4_4_4,O.TEXTURETYPE_UNSIGNED_SHORT_5_5_5_1=e.TEXTURETYPE_UNSIGNED_SHORT_5_5_5_1,O.TEXTURETYPE_UNSIGNED_SHORT_5_6_5=e.TEXTURETYPE_UNSIGNED_SHORT_5_6_5,O.TEXTURETYPE_UNSIGNED_INT_2_10_10_10_REV=e.TEXTURETYPE_UNSIGNED_INT_2_10_10_10_REV,O.TEXTURETYPE_UNSIGNED_INT_24_8=e.TEXTURETYPE_UNSIGNED_INT_24_8,O.TEXTURETYPE_UNSIGNED_INT_10F_11F_11F_REV=e.TEXTURETYPE_UNSIGNED_INT_10F_11F_11F_REV,O.TEXTURETYPE_UNSIGNED_INT_5_9_9_9_REV=e.TEXTURETYPE_UNSIGNED_INT_5_9_9_9_REV,O.TEXTURETYPE_FLOAT_32_UNSIGNED_INT_24_8_REV=e.TEXTURETYPE_FLOAT_32_UNSIGNED_INT_24_8_REV,O.TEXTURE_NEAREST_SAMPLINGMODE=e.TEXTURE_NEAREST_SAMPLINGMODE,O.TEXTURE_BILINEAR_SAMPLINGMODE=e.TEXTURE_BILINEAR_SAMPLINGMODE,O.TEXTURE_TRILINEAR_SAMPLINGMODE=e.TEXTURE_TRILINEAR_SAMPLINGMODE,O.TEXTURE_NEAREST_NEAREST_MIPLINEAR=e.TEXTURE_NEAREST_NEAREST_MIPLINEAR,O.TEXTURE_LINEAR_LINEAR_MIPNEAREST=e.TEXTURE_LINEAR_LINEAR_MIPNEAREST,O.TEXTURE_LINEAR_LINEAR_MIPLINEAR=e.TEXTURE_LINEAR_LINEAR_MIPLINEAR,O.TEXTURE_NEAREST_NEAREST_MIPNEAREST=e.TEXTURE_NEAREST_NEAREST_MIPNEAREST,O.TEXTURE_NEAREST_LINEAR_MIPNEAREST=e.TEXTURE_NEAREST_LINEAR_MIPNEAREST,O.TEXTURE_NEAREST_LINEAR_MIPLINEAR=e.TEXTURE_NEAREST_LINEAR_MIPLINEAR,O.TEXTURE_NEAREST_LINEAR=e.TEXTURE_NEAREST_LINEAR,O.TEXTURE_NEAREST_NEAREST=e.TEXTURE_NEAREST_NEAREST,O.TEXTURE_LINEAR_NEAREST_MIPNEAREST=e.TEXTURE_LINEAR_NEAREST_MIPNEAREST,O.TEXTURE_LINEAR_NEAREST_MIPLINEAR=e.TEXTURE_LINEAR_NEAREST_MIPLINEAR,O.TEXTURE_LINEAR_LINEAR=e.TEXTURE_LINEAR_LINEAR,O.TEXTURE_LINEAR_NEAREST=e.TEXTURE_LINEAR_NEAREST,O.TEXTURE_EXPLICIT_MODE=e.TEXTURE_EXPLICIT_MODE,O.TEXTURE_SPHERICAL_MODE=e.TEXTURE_SPHERICAL_MODE,O.TEXTURE_PLANAR_MODE=e.TEXTURE_PLANAR_MODE,O.TEXTURE_CUBIC_MODE=e.TEXTURE_CUBIC_MODE,O.TEXTURE_PROJECTION_MODE=e.TEXTURE_PROJECTION_MODE,O.TEXTURE_SKYBOX_MODE=e.TEXTURE_SKYBOX_MODE,O.TEXTURE_INVCUBIC_MODE=e.TEXTURE_INVCUBIC_MODE,O.TEXTURE_EQUIRECTANGULAR_MODE=e.TEXTURE_EQUIRECTANGULAR_MODE,O.TEXTURE_FIXED_EQUIRECTANGULAR_MODE=e.TEXTURE_FIXED_EQUIRECTANGULAR_MODE,O.TEXTURE_FIXED_EQUIRECTANGULAR_MIRRORED_MODE=e.TEXTURE_FIXED_EQUIRECTANGULAR_MIRRORED_MODE,O.SCALEMODE_FLOOR=e.SCALEMODE_FLOOR,O.SCALEMODE_NEAREST=e.SCALEMODE_NEAREST,O.SCALEMODE_CEILING=e.SCALEMODE_CEILING;export{O as Engine};
|
|
2
|
+
//# sourceMappingURL=engine-Bqcy7XH3.esm.min.js.map
|