@babylonjs/viewer 7.41.0 → 7.41.1-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-BS2USlck.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_ies-BS2USlck.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_ies-C-joQ5O4.esm.js +84 -0
- package/dist/chunks/EXT_lights_ies-C-joQ5O4.esm.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-C3wbbb5Z.esm.js +171 -0
- package/dist/chunks/EXT_lights_image_based-C3wbbb5Z.esm.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-DDdRDnM2.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_image_based-DDdRDnM2.esm.min.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-AXAnRQN7.esm.js +86 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-AXAnRQN7.esm.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BcjPo6uC.esm.min.js +2 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BcjPo6uC.esm.min.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-DlUkQB2P.esm.js +134 -0
- package/dist/chunks/EXT_meshopt_compression-DlUkQB2P.esm.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-yJ4OpORd.esm.min.js +2 -0
- package/dist/chunks/EXT_meshopt_compression-yJ4OpORd.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-BQWbvJfK.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_avif-BQWbvJfK.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-C0pGpnGv.esm.js +44 -0
- package/dist/chunks/EXT_texture_avif-C0pGpnGv.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-Dd7Uqtmh.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_webp-Dd7Uqtmh.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-DehlrnW-.esm.js +43 -0
- package/dist/chunks/EXT_texture_webp-DehlrnW-.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-C5NMuDj4.esm.js +64 -0
- package/dist/chunks/ExtrasAsMetadata-C5NMuDj4.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-Cp3LHdoG.esm.min.js +2 -0
- package/dist/chunks/ExtrasAsMetadata-Cp3LHdoG.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-DEBOwDXh.esm.min.js +2 -0
- package/dist/chunks/KHR_animation_pointer-DEBOwDXh.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-Dx1OeG2b.esm.js +352 -0
- package/dist/chunks/KHR_animation_pointer-Dx1OeG2b.esm.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-Ch0QOlBL.esm.min.js +2 -0
- package/dist/chunks/KHR_draco_mesh_compression-Ch0QOlBL.esm.min.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-D59SFLyo.esm.js +610 -0
- package/dist/chunks/KHR_draco_mesh_compression-D59SFLyo.esm.js.map +1 -0
- package/dist/chunks/KHR_interactivity-Blj_9jts.esm.min.js +2 -0
- package/dist/chunks/KHR_interactivity-Blj_9jts.esm.min.js.map +1 -0
- package/dist/chunks/KHR_interactivity-CR0LYUa7.esm.js +4033 -0
- package/dist/chunks/KHR_interactivity-CR0LYUa7.esm.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual--w0a62AP.esm.js +581 -0
- package/dist/chunks/KHR_lights_punctual--w0a62AP.esm.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-BojffBbG.esm.min.js +2 -0
- package/dist/chunks/KHR_lights_punctual-BojffBbG.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-BPtHWkOQ.esm.js +65 -0
- package/dist/chunks/KHR_materials_anisotropy-BPtHWkOQ.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-DU5_bnCL.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_anisotropy-DU5_bnCL.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-BBuRlPhc.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_clearcoat-BBuRlPhc.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-Eg0xbuWN.esm.js +96 -0
- package/dist/chunks/KHR_materials_clearcoat-Eg0xbuWN.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-Bkzk60Y5.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-Bkzk60Y5.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-C3DaLgRY.esm.js +97 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-C3DaLgRY.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-DL_XFhxj.esm.js +62 -0
- package/dist/chunks/KHR_materials_dispersion-DL_XFhxj.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-DbMQPBgM.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_dispersion-DbMQPBgM.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-BuHyjtBD.esm.js +55 -0
- package/dist/chunks/KHR_materials_emissive_strength-BuHyjtBD.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-Djlr_ul3.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_emissive_strength-Djlr_ul3.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-BIe6qBOo.esm.js +64 -0
- package/dist/chunks/KHR_materials_ior-BIe6qBOo.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-DOfaAmNY.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_ior-DOfaAmNY.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-BgElZgUu.esm.js +72 -0
- package/dist/chunks/KHR_materials_iridescence-BgElZgUu.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-lUeo07SZ.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_iridescence-lUeo07SZ.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-9ShQyhJ6.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-9ShQyhJ6.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-DE5LjLg6.esm.js +81 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-DE5LjLg6.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-BfZe6ZFu.esm.js +85 -0
- package/dist/chunks/KHR_materials_sheen-BfZe6ZFu.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-OWjuK2V4.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_sheen-OWjuK2V4.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-dowPxbW3.esm.js +75 -0
- package/dist/chunks/KHR_materials_specular-dowPxbW3.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-nWeBZu0R.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_specular-nWeBZu0R.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-BPNQkK0O.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_transmission-BPNQkK0O.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-CHr_yLLX.esm.js +307 -0
- package/dist/chunks/KHR_materials_transmission-CHr_yLLX.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-BYXpcsdj.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_unlit-BYXpcsdj.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-Cr7YsDHT.esm.js +74 -0
- package/dist/chunks/KHR_materials_unlit-Cr7YsDHT.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-BCVX3sJa.esm.js +262 -0
- package/dist/chunks/KHR_materials_variants-BCVX3sJa.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-BXzl6KpJ.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_variants-BXzl6KpJ.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-BD9KEaJz.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_volume-BD9KEaJz.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-DrqGUGW6.esm.js +87 -0
- package/dist/chunks/KHR_materials_volume-DrqGUGW6.esm.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-Dg22auJA.esm.min.js +2 -0
- package/dist/chunks/KHR_mesh_quantization-Dg22auJA.esm.min.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-hvxpvTbe.esm.js +26 -0
- package/dist/chunks/KHR_mesh_quantization-hvxpvTbe.esm.js.map +1 -0
- package/dist/chunks/KHR_node_hoverability-BDiqFmBB.esm.js +39 -0
- package/dist/chunks/KHR_node_hoverability-BDiqFmBB.esm.js.map +1 -0
- package/dist/chunks/KHR_node_hoverability-CumkOtZM.esm.min.js +2 -0
- package/dist/chunks/KHR_node_hoverability-CumkOtZM.esm.min.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-BKEa-Yfj.esm.min.js +2 -0
- package/dist/chunks/KHR_node_visibility-BKEa-Yfj.esm.min.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-K0fsD4Vv.esm.js +46 -0
- package/dist/chunks/KHR_node_visibility-K0fsD4Vv.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-8YVY1pKo.esm.js +43 -0
- package/dist/chunks/KHR_texture_basisu-8YVY1pKo.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-BM__NeSW.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_basisu-BM__NeSW.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_transform--qxpdvRw.esm.js +63 -0
- package/dist/chunks/KHR_texture_transform--qxpdvRw.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-C0MO-oJp.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_transform-C0MO-oJp.esm.min.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-D9FpHvJo.esm.js +51 -0
- package/dist/chunks/KHR_xmp_json_ld-D9FpHvJo.esm.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-DeXPWWQE.esm.min.js +2 -0
- package/dist/chunks/KHR_xmp_json_ld-DeXPWWQE.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-BbICSwFH.esm.min.js +2 -0
- package/dist/chunks/MSFT_audio_emitter-BbICSwFH.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-Dd5lbfUc.esm.js +2201 -0
- package/dist/chunks/MSFT_audio_emitter-Dd5lbfUc.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-B0zrRF3s.esm.js +337 -0
- package/dist/chunks/MSFT_lod-B0zrRF3s.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-Bd4znUfD.esm.min.js +2 -0
- package/dist/chunks/MSFT_lod-Bd4znUfD.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-CdIpMgsb.esm.min.js +2 -0
- package/dist/chunks/MSFT_minecraftMesh-CdIpMgsb.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-WFc8m_Ka.esm.js +46 -0
- package/dist/chunks/MSFT_minecraftMesh-WFc8m_Ka.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-CTbtGna8.esm.js +47 -0
- package/dist/chunks/MSFT_sRGBFactors-CTbtGna8.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-yTSoBQJx.esm.min.js +2 -0
- package/dist/chunks/MSFT_sRGBFactors-yTSoBQJx.esm.min.js.map +1 -0
- package/dist/chunks/animationGroup-8TJDgymS.esm.js +2482 -0
- package/dist/chunks/animationGroup-8TJDgymS.esm.js.map +1 -0
- package/dist/chunks/animationGroup-toXtd3a1.esm.min.js +2 -0
- package/dist/chunks/animationGroup-toXtd3a1.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-7pMDUaac.esm.min.js +2 -0
- package/dist/chunks/assetContainer-7pMDUaac.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-DYzO0AbX.esm.js +1720 -0
- package/dist/chunks/assetContainer-DYzO0AbX.esm.js.map +1 -0
- package/dist/chunks/audioEngine-Kz4HSEXd.esm.min.js +2 -0
- package/dist/chunks/audioEngine-Kz4HSEXd.esm.min.js.map +1 -0
- package/dist/chunks/audioEngine-peiGqjr6.esm.js +305 -0
- package/dist/chunks/audioEngine-peiGqjr6.esm.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-BZvcL01J.esm.min.js +2 -0
- package/dist/chunks/bakedVertexAnimation-BZvcL01J.esm.min.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-CPflSjER.esm.js +114 -0
- package/dist/chunks/bakedVertexAnimation-CPflSjER.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-CR0XhSAg.esm.js +600 -0
- package/dist/chunks/basisTextureLoader-CR0XhSAg.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-DVJdcB62.esm.min.js +2 -0
- package/dist/chunks/basisTextureLoader-DVJdcB62.esm.min.js.map +1 -0
- package/dist/chunks/dds-6EdM5O6M.esm.js +540 -0
- package/dist/chunks/dds-6EdM5O6M.esm.js.map +1 -0
- package/dist/chunks/dds-DVX_K9B3.esm.min.js +2 -0
- package/dist/chunks/dds-DVX_K9B3.esm.min.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-BAK7Ib2Z.esm.min.js +2 -0
- package/dist/chunks/ddsTextureLoader-BAK7Ib2Z.esm.min.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-_nktVxwZ.esm.js +88 -0
- package/dist/chunks/ddsTextureLoader-_nktVxwZ.esm.js.map +1 -0
- package/dist/chunks/decalFragment-C_Cews3-.esm.js +18 -0
- package/dist/chunks/decalFragment-C_Cews3-.esm.js.map +1 -0
- package/dist/chunks/decalFragment-Dmj88EX9.esm.min.js +2 -0
- package/dist/chunks/decalFragment-Dmj88EX9.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-Bv_nR7po.esm.min.js +2 -0
- package/dist/chunks/default.fragment-Bv_nR7po.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-CkZQyJVM.esm.min.js +2 -0
- package/dist/chunks/default.fragment-CkZQyJVM.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-CyFHDykY.esm.js +446 -0
- package/dist/chunks/default.fragment-CyFHDykY.esm.js.map +1 -0
- package/dist/chunks/default.fragment-ej-2z5tS.esm.js +515 -0
- package/dist/chunks/default.fragment-ej-2z5tS.esm.js.map +1 -0
- package/dist/chunks/default.vertex-16mVOFgT.esm.js +211 -0
- package/dist/chunks/default.vertex-16mVOFgT.esm.js.map +1 -0
- package/dist/chunks/default.vertex-D--q2At3.esm.min.js +2 -0
- package/dist/chunks/default.vertex-D--q2At3.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-DDlgZTrR.esm.js +190 -0
- package/dist/chunks/default.vertex-DDlgZTrR.esm.js.map +1 -0
- package/dist/chunks/default.vertex-_jqs3KiZ.esm.min.js +2 -0
- package/dist/chunks/default.vertex-_jqs3KiZ.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-8YG0iNg8.esm.js +15 -0
- package/dist/chunks/defaultUboDeclaration-8YG0iNg8.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-BoBSRTbi.esm.js +13 -0
- package/dist/chunks/defaultUboDeclaration-BoBSRTbi.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-Dt_5vo1d.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-Dt_5vo1d.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-R6gGjkAM.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-R6gGjkAM.esm.min.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-Bhux0wvM.esm.js +200 -0
- package/dist/chunks/dumpTools-Bhux0wvM.esm.js.map +1 -0
- package/dist/chunks/dumpTools-CHCb2UkY.esm.min.js +2 -0
- package/dist/chunks/dumpTools-CHCb2UkY.esm.min.js.map +1 -0
- package/dist/chunks/engine-DF_zE4qj.esm.js +2213 -0
- package/dist/chunks/engine-DF_zE4qj.esm.js.map +1 -0
- package/dist/chunks/engine-DVmdDcyP.esm.min.js +2 -0
- package/dist/chunks/engine-DVmdDcyP.esm.min.js.map +1 -0
- package/dist/chunks/engine.common-CvOmoKru.esm.js +1162 -0
- package/dist/chunks/engine.common-CvOmoKru.esm.js.map +1 -0
- package/dist/chunks/engine.common-DpTzktQJ.esm.min.js +2 -0
- package/dist/chunks/engine.common-DpTzktQJ.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-4YxGm-Px.esm.js +64 -0
- package/dist/chunks/envTextureLoader-4YxGm-Px.esm.js.map +1 -0
- package/dist/chunks/envTextureLoader-DMQui088.esm.min.js +2 -0
- package/dist/chunks/envTextureLoader-DMQui088.esm.min.js.map +1 -0
- package/dist/chunks/environmentTextureTools-BPGrTBPI.esm.min.js +2 -0
- package/dist/chunks/environmentTextureTools-BPGrTBPI.esm.min.js.map +1 -0
- package/dist/chunks/environmentTextureTools-DvkpsqkN.esm.js +382 -0
- package/dist/chunks/environmentTextureTools-DvkpsqkN.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-BRkB54sO.esm.js +1683 -0
- package/dist/chunks/exrTextureLoader-BRkB54sO.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-BtN7_zst.esm.min.js +2 -0
- package/dist/chunks/exrTextureLoader-BtN7_zst.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-BrGGFaiu.esm.js +101 -0
- package/dist/chunks/fogFragment-BrGGFaiu.esm.js.map +1 -0
- package/dist/chunks/fogFragment-ByOwwQur.esm.min.js +2 -0
- package/dist/chunks/fogFragment-ByOwwQur.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-Chod24nu.esm.min.js +2 -0
- package/dist/chunks/fogFragment-Chod24nu.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-gZfybCpt.esm.js +102 -0
- package/dist/chunks/fogFragment-gZfybCpt.esm.js.map +1 -0
- package/dist/chunks/fresnelFunction-BdEia8ob.esm.min.js +2 -0
- package/dist/chunks/fresnelFunction-BdEia8ob.esm.min.js.map +1 -0
- package/dist/chunks/fresnelFunction-DBlxfmri.esm.js +12 -0
- package/dist/chunks/fresnelFunction-DBlxfmri.esm.js.map +1 -0
- package/dist/chunks/glTFLoader-D4C1IGb3.esm.min.js +2 -0
- package/dist/chunks/glTFLoader-D4C1IGb3.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoader-fUFiWvYb.esm.js +7693 -0
- package/dist/chunks/glTFLoader-fUFiWvYb.esm.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-BB_Vw079.esm.min.js +2 -0
- package/dist/chunks/glTFLoaderAnimation-BB_Vw079.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-CttmY50U.esm.js +77 -0
- package/dist/chunks/glTFLoaderAnimation-CttmY50U.esm.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-B0Rp1hEo.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-B0Rp1hEo.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-Cca_z552.esm.js +34 -0
- package/dist/chunks/harmonicsFunctions-Cca_z552.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-D4ID83NC.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-D4ID83NC.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-HJ5dbl0w.esm.js +35 -0
- package/dist/chunks/harmonicsFunctions-HJ5dbl0w.esm.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-C3kqy6YV.esm.js +253 -0
- package/dist/chunks/hdrTextureLoader-C3kqy6YV.esm.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-Dhlluz4z.esm.min.js +2 -0
- package/dist/chunks/hdrTextureLoader-Dhlluz4z.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-BJotVqUd.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-BJotVqUd.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-C66wRWtu.esm.js +110 -0
- package/dist/chunks/helperFunctions-C66wRWtu.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-DwEZ9rqh.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-DwEZ9rqh.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-gnki_9Kj.esm.js +83 -0
- package/dist/chunks/helperFunctions-gnki_9Kj.esm.js.map +1 -0
- package/dist/chunks/iesTextureLoader-QDs2Cwy5.esm.js +189 -0
- package/dist/chunks/iesTextureLoader-QDs2Cwy5.esm.js.map +1 -0
- package/dist/chunks/iesTextureLoader-pwA6Q4HK.esm.min.js +2 -0
- package/dist/chunks/iesTextureLoader-pwA6Q4HK.esm.min.js.map +1 -0
- package/dist/chunks/index-C6hXZyZb.esm.js +74889 -0
- package/dist/chunks/index-C6hXZyZb.esm.js.map +1 -0
- package/dist/chunks/index-rZVkfTE6.esm.min.js +57 -0
- package/dist/chunks/index-rZVkfTE6.esm.min.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-jVu-Sj-0.esm.js +814 -0
- package/dist/chunks/ktxTextureLoader-jVu-Sj-0.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-zG9azrZF.esm.min.js +2 -0
- package/dist/chunks/ktxTextureLoader-zG9azrZF.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-0cA1pTvQ.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-0cA1pTvQ.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-CYxYhXIS.esm.js +11 -0
- package/dist/chunks/logDepthDeclaration-CYxYhXIS.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-D4KGxdX-.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-D4KGxdX-.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-DJlt2-H5.esm.js +35 -0
- package/dist/chunks/logDepthDeclaration-DJlt2-H5.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-BS2JEtXA.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-BS2JEtXA.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-DKPfA10X.esm.js +81 -0
- package/dist/chunks/logDepthVertex-DKPfA10X.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-ojTShW5I.esm.js +77 -0
- package/dist/chunks/logDepthVertex-ojTShW5I.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-v-0pHNc-.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-v-0pHNc-.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-BAzmbS0W.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-BAzmbS0W.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-Cnux1jkK.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-Cnux1jkK.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-CwS0hUUZ.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-CwS0hUUZ.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-DCawby1A.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-DCawby1A.esm.js.map +1 -0
- package/dist/chunks/mesh.vertexData.functions-B_pMCAzZ.esm.js +119 -0
- package/dist/chunks/mesh.vertexData.functions-B_pMCAzZ.esm.js.map +1 -0
- package/dist/chunks/mesh.vertexData.functions-Bo7e6Of9.esm.min.js +2 -0
- package/dist/chunks/mesh.vertexData.functions-Bo7e6Of9.esm.min.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-QvH0RgeZ.esm.js +26 -0
- package/dist/chunks/meshUboDeclaration-QvH0RgeZ.esm.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-g2s_cYI1.esm.min.js +2 -0
- package/dist/chunks/meshUboDeclaration-g2s_cYI1.esm.min.js.map +1 -0
- package/dist/chunks/objFileLoader-BOutXdVR.esm.min.js +2 -0
- package/dist/chunks/objFileLoader-BOutXdVR.esm.min.js.map +1 -0
- package/dist/chunks/objFileLoader-BPwrX8RK.esm.js +1338 -0
- package/dist/chunks/objFileLoader-BPwrX8RK.esm.js.map +1 -0
- package/dist/chunks/oitFragment-CmcWUhsZ.esm.js +1240 -0
- package/dist/chunks/oitFragment-CmcWUhsZ.esm.js.map +1 -0
- package/dist/chunks/oitFragment-D8XBQ6Wa.esm.js +1078 -0
- package/dist/chunks/oitFragment-D8XBQ6Wa.esm.js.map +1 -0
- package/dist/chunks/oitFragment-DgAlmoHs.esm.min.js +2 -0
- package/dist/chunks/oitFragment-DgAlmoHs.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-DpJ5xGhy.esm.min.js +2 -0
- package/dist/chunks/oitFragment-DpJ5xGhy.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment--XRaXRhU.esm.js +15 -0
- package/dist/chunks/pass.fragment--XRaXRhU.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-5Q3qXxDe.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-5Q3qXxDe.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-BBLiyU_i.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-BBLiyU_i.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-DI4ZYZJe.esm.js +15 -0
- package/dist/chunks/pass.fragment-DI4ZYZJe.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-C7xQS4ZJ.esm.js +3269 -0
- package/dist/chunks/pbr.fragment-C7xQS4ZJ.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-Ddxaik8T.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-Ddxaik8T.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-fky04gH_.esm.js +3222 -0
- package/dist/chunks/pbr.fragment-fky04gH_.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-ya1zai4w.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-ya1zai4w.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-BPEYHoRM.esm.js +223 -0
- package/dist/chunks/pbr.vertex-BPEYHoRM.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-BXcMYADF.esm.js +348 -0
- package/dist/chunks/pbr.vertex-BXcMYADF.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-BjA08auU.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-BjA08auU.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-Cx2V3lNf.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-Cx2V3lNf.esm.min.js.map +1 -0
- package/dist/chunks/postprocess.vertex-BHpQrNSx.esm.min.js +2 -0
- package/dist/chunks/postprocess.vertex-BHpQrNSx.esm.min.js.map +1 -0
- package/dist/chunks/postprocess.vertex-DnDbk0tq.esm.js +20 -0
- package/dist/chunks/postprocess.vertex-DnDbk0tq.esm.js.map +1 -0
- package/dist/chunks/rawTexture-CWiRIto8.esm.js +191 -0
- package/dist/chunks/rawTexture-CWiRIto8.esm.js.map +1 -0
- package/dist/chunks/rawTexture-DX8V9PEj.esm.min.js +2 -0
- package/dist/chunks/rawTexture-DX8V9PEj.esm.min.js.map +1 -0
- package/dist/chunks/ray-ix7SqYNQ.esm.min.js +2 -0
- package/dist/chunks/ray-ix7SqYNQ.esm.min.js.map +1 -0
- package/dist/chunks/ray-nTZBkOil.esm.js +946 -0
- package/dist/chunks/ray-nTZBkOil.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-Be3ofvlt.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-Be3ofvlt.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-C05QJpT2.esm.js +13 -0
- package/dist/chunks/rgbdDecode.fragment-C05QJpT2.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-D3SYBclQ.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-D3SYBclQ.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-DBG6KfKF.esm.js +13 -0
- package/dist/chunks/rgbdDecode.fragment-DBG6KfKF.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-BlhtohrO.esm.js +13 -0
- package/dist/chunks/rgbdEncode.fragment-BlhtohrO.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-BmJKYw6A.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-BmJKYw6A.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-dr2kGjSO.esm.js +13 -0
- package/dist/chunks/rgbdEncode.fragment-dr2kGjSO.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-hXPzg1p5.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-hXPzg1p5.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-Bs42LtsP.esm.min.js +2 -0
- package/dist/chunks/splatFileLoader-Bs42LtsP.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-Dp33YOem.esm.js +3379 -0
- package/dist/chunks/splatFileLoader-Dp33YOem.esm.js.map +1 -0
- package/dist/chunks/spotLight-C0NmKeem.esm.js +701 -0
- package/dist/chunks/spotLight-C0NmKeem.esm.js.map +1 -0
- package/dist/chunks/spotLight-CcuCNdES.esm.min.js +2 -0
- package/dist/chunks/spotLight-CcuCNdES.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-C1E5n_4w.esm.min.js +2 -0
- package/dist/chunks/standardMaterial-C1E5n_4w.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-v_D8QA4q.esm.js +1807 -0
- package/dist/chunks/standardMaterial-v_D8QA4q.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader-DC2IRQDj.esm.min.js +2 -0
- package/dist/chunks/stlFileLoader-DC2IRQDj.esm.min.js.map +1 -0
- package/dist/chunks/stlFileLoader-LRHEIFfU.esm.js +238 -0
- package/dist/chunks/stlFileLoader-LRHEIFfU.esm.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-2ekJC0En.esm.js +349 -0
- package/dist/chunks/tgaTextureLoader-2ekJC0En.esm.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-Clj6zUK-.esm.min.js +2 -0
- package/dist/chunks/tgaTextureLoader-Clj6zUK-.esm.min.js.map +1 -0
- package/dist/chunks/thinEngine-DksimP2U.esm.js +3848 -0
- package/dist/chunks/thinEngine-DksimP2U.esm.js.map +1 -0
- package/dist/chunks/thinEngine-tsALaFYH.esm.min.js +2 -0
- package/dist/chunks/thinEngine-tsALaFYH.esm.min.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-B8AW0Oa2.esm.js +314 -0
- package/dist/chunks/thinInstanceMesh-B8AW0Oa2.esm.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-kCGEJ0-e.esm.min.js +2 -0
- package/dist/chunks/thinInstanceMesh-kCGEJ0-e.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-Bjijk3lU.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-Bjijk3lU.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-D9917nJN.esm.js +428 -0
- package/dist/chunks/vertexColorMixing-D9917nJN.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-DgthWrKf.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-DgthWrKf.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-U1SA6UK3.esm.js +538 -0
- package/dist/chunks/vertexColorMixing-U1SA6UK3.esm.js.map +1 -0
- package/dist/chunks/webgpuEngine-BOGR1D8F.esm.min.js +2 -0
- package/dist/chunks/webgpuEngine-BOGR1D8F.esm.min.js.map +1 -0
- package/dist/chunks/webgpuEngine-BrzOpZ-2.esm.js +11533 -0
- package/dist/chunks/webgpuEngine-BrzOpZ-2.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 +591 -0
- package/lib/index.js +2165 -0
- package/lib/index.js.map +1 -0
- package/package.json +19 -28
- package/readme.md +28 -28
- 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,581 @@
|
|
|
1
|
+
import { aX as Node, v as Vector3, aY as Light, a5 as Matrix, C as Constants, an as __decorate, ar as serialize, R as RegisterClass, s as Color3, aQ as unregisterGLTFExtension, aR as registerGLTFExtension } from './index-C6hXZyZb.esm.js';
|
|
2
|
+
import { S as ShadowLight, a as SpotLight } from './spotLight-C0NmKeem.esm.js';
|
|
3
|
+
import { A as ArrayItem, G as GLTFLoader } from './glTFLoader-fUFiWvYb.esm.js';
|
|
4
|
+
import './rawTexture-CWiRIto8.esm.js';
|
|
5
|
+
import './assetContainer-DYzO0AbX.esm.js';
|
|
6
|
+
import './glTFLoaderAnimation-CttmY50U.esm.js';
|
|
7
|
+
|
|
8
|
+
Node.AddNodeConstructor("Light_Type_1", (name, scene) => {
|
|
9
|
+
return () => new DirectionalLight(name, Vector3.Zero(), scene);
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* A directional light is defined by a direction (what a surprise!).
|
|
13
|
+
* The light is emitted from everywhere in the specified direction, and has an infinite range.
|
|
14
|
+
* An example of a directional light is when a distance planet is lit by the apparently parallel lines of light from its sun. Light in a downward direction will light the top of an object.
|
|
15
|
+
* Documentation: https://doc.babylonjs.com/features/featuresDeepDive/lights/lights_introduction
|
|
16
|
+
*/
|
|
17
|
+
class DirectionalLight extends ShadowLight {
|
|
18
|
+
/**
|
|
19
|
+
* Fix frustum size for the shadow generation. This is disabled if the value is 0.
|
|
20
|
+
*/
|
|
21
|
+
get shadowFrustumSize() {
|
|
22
|
+
return this._shadowFrustumSize;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Specifies a fix frustum size for the shadow generation.
|
|
26
|
+
*/
|
|
27
|
+
set shadowFrustumSize(value) {
|
|
28
|
+
this._shadowFrustumSize = value;
|
|
29
|
+
this.forceProjectionMatrixCompute();
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Gets the shadow projection scale against the optimal computed one.
|
|
33
|
+
* 0.1 by default which means that the projection window is increase by 10% from the optimal size.
|
|
34
|
+
* This does not impact in fixed frustum size (shadowFrustumSize being set)
|
|
35
|
+
*/
|
|
36
|
+
get shadowOrthoScale() {
|
|
37
|
+
return this._shadowOrthoScale;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Sets the shadow projection scale against the optimal computed one.
|
|
41
|
+
* 0.1 by default which means that the projection window is increase by 10% from the optimal size.
|
|
42
|
+
* This does not impact in fixed frustum size (shadowFrustumSize being set)
|
|
43
|
+
*/
|
|
44
|
+
set shadowOrthoScale(value) {
|
|
45
|
+
this._shadowOrthoScale = value;
|
|
46
|
+
this.forceProjectionMatrixCompute();
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Gets or sets the orthoLeft property used to build the light frustum
|
|
50
|
+
*/
|
|
51
|
+
get orthoLeft() {
|
|
52
|
+
return this._orthoLeft;
|
|
53
|
+
}
|
|
54
|
+
set orthoLeft(left) {
|
|
55
|
+
this._orthoLeft = left;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Gets or sets the orthoRight property used to build the light frustum
|
|
59
|
+
*/
|
|
60
|
+
get orthoRight() {
|
|
61
|
+
return this._orthoRight;
|
|
62
|
+
}
|
|
63
|
+
set orthoRight(right) {
|
|
64
|
+
this._orthoRight = right;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Gets or sets the orthoTop property used to build the light frustum
|
|
68
|
+
*/
|
|
69
|
+
get orthoTop() {
|
|
70
|
+
return this._orthoTop;
|
|
71
|
+
}
|
|
72
|
+
set orthoTop(top) {
|
|
73
|
+
this._orthoTop = top;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Gets or sets the orthoBottom property used to build the light frustum
|
|
77
|
+
*/
|
|
78
|
+
get orthoBottom() {
|
|
79
|
+
return this._orthoBottom;
|
|
80
|
+
}
|
|
81
|
+
set orthoBottom(bottom) {
|
|
82
|
+
this._orthoBottom = bottom;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Creates a DirectionalLight object in the scene, oriented towards the passed direction (Vector3).
|
|
86
|
+
* The directional light is emitted from everywhere in the given direction.
|
|
87
|
+
* It can cast shadows.
|
|
88
|
+
* Documentation : https://doc.babylonjs.com/features/featuresDeepDive/lights/lights_introduction
|
|
89
|
+
* @param name The friendly name of the light
|
|
90
|
+
* @param direction The direction of the light
|
|
91
|
+
* @param scene The scene the light belongs to
|
|
92
|
+
*/
|
|
93
|
+
constructor(name, direction, scene) {
|
|
94
|
+
super(name, scene);
|
|
95
|
+
this._shadowFrustumSize = 0;
|
|
96
|
+
this._shadowOrthoScale = 0.1;
|
|
97
|
+
/**
|
|
98
|
+
* Automatically compute the projection matrix to best fit (including all the casters)
|
|
99
|
+
* on each frame.
|
|
100
|
+
*/
|
|
101
|
+
this.autoUpdateExtends = true;
|
|
102
|
+
/**
|
|
103
|
+
* Automatically compute the shadowMinZ and shadowMaxZ for the projection matrix to best fit (including all the casters)
|
|
104
|
+
* on each frame. autoUpdateExtends must be set to true for this to work
|
|
105
|
+
*/
|
|
106
|
+
this.autoCalcShadowZBounds = false;
|
|
107
|
+
// Cache
|
|
108
|
+
this._orthoLeft = Number.MAX_VALUE;
|
|
109
|
+
this._orthoRight = Number.MIN_VALUE;
|
|
110
|
+
this._orthoTop = Number.MIN_VALUE;
|
|
111
|
+
this._orthoBottom = Number.MAX_VALUE;
|
|
112
|
+
this.position = direction.scale(-1.0);
|
|
113
|
+
this.direction = direction;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Returns the string "DirectionalLight".
|
|
117
|
+
* @returns The class name
|
|
118
|
+
*/
|
|
119
|
+
getClassName() {
|
|
120
|
+
return "DirectionalLight";
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Returns the integer 1.
|
|
124
|
+
* @returns The light Type id as a constant defines in Light.LIGHTTYPEID_x
|
|
125
|
+
*/
|
|
126
|
+
getTypeID() {
|
|
127
|
+
return Light.LIGHTTYPEID_DIRECTIONALLIGHT;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Sets the passed matrix "matrix" as projection matrix for the shadows cast by the light according to the passed view matrix.
|
|
131
|
+
* Returns the DirectionalLight Shadow projection matrix.
|
|
132
|
+
* @param matrix
|
|
133
|
+
* @param viewMatrix
|
|
134
|
+
* @param renderList
|
|
135
|
+
*/
|
|
136
|
+
_setDefaultShadowProjectionMatrix(matrix, viewMatrix, renderList) {
|
|
137
|
+
if (this.shadowFrustumSize > 0) {
|
|
138
|
+
this._setDefaultFixedFrustumShadowProjectionMatrix(matrix);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
this._setDefaultAutoExtendShadowProjectionMatrix(matrix, viewMatrix, renderList);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Sets the passed matrix "matrix" as fixed frustum projection matrix for the shadows cast by the light according to the passed view matrix.
|
|
146
|
+
* Returns the DirectionalLight Shadow projection matrix.
|
|
147
|
+
* @param matrix
|
|
148
|
+
*/
|
|
149
|
+
_setDefaultFixedFrustumShadowProjectionMatrix(matrix) {
|
|
150
|
+
const activeCamera = this.getScene().activeCamera;
|
|
151
|
+
if (!activeCamera) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
Matrix.OrthoLHToRef(this.shadowFrustumSize, this.shadowFrustumSize, this.shadowMinZ !== undefined ? this.shadowMinZ : activeCamera.minZ, this.shadowMaxZ !== undefined ? this.shadowMaxZ : activeCamera.maxZ, matrix, this.getScene().getEngine().isNDCHalfZRange);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Sets the passed matrix "matrix" as auto extend projection matrix for the shadows cast by the light according to the passed view matrix.
|
|
158
|
+
* Returns the DirectionalLight Shadow projection matrix.
|
|
159
|
+
* @param matrix
|
|
160
|
+
* @param viewMatrix
|
|
161
|
+
* @param renderList
|
|
162
|
+
*/
|
|
163
|
+
_setDefaultAutoExtendShadowProjectionMatrix(matrix, viewMatrix, renderList) {
|
|
164
|
+
const activeCamera = this.getScene().activeCamera;
|
|
165
|
+
// Check extends
|
|
166
|
+
if (this.autoUpdateExtends || this._orthoLeft === Number.MAX_VALUE) {
|
|
167
|
+
const tempVector3 = Vector3.Zero();
|
|
168
|
+
this._orthoLeft = Number.MAX_VALUE;
|
|
169
|
+
this._orthoRight = -Number.MAX_VALUE;
|
|
170
|
+
this._orthoTop = -Number.MAX_VALUE;
|
|
171
|
+
this._orthoBottom = Number.MAX_VALUE;
|
|
172
|
+
let shadowMinZ = Number.MAX_VALUE;
|
|
173
|
+
let shadowMaxZ = -Number.MAX_VALUE;
|
|
174
|
+
for (let meshIndex = 0; meshIndex < renderList.length; meshIndex++) {
|
|
175
|
+
const mesh = renderList[meshIndex];
|
|
176
|
+
if (!mesh) {
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
const boundingInfo = mesh.getBoundingInfo();
|
|
180
|
+
const boundingBox = boundingInfo.boundingBox;
|
|
181
|
+
for (let index = 0; index < boundingBox.vectorsWorld.length; index++) {
|
|
182
|
+
Vector3.TransformCoordinatesToRef(boundingBox.vectorsWorld[index], viewMatrix, tempVector3);
|
|
183
|
+
if (tempVector3.x < this._orthoLeft) {
|
|
184
|
+
this._orthoLeft = tempVector3.x;
|
|
185
|
+
}
|
|
186
|
+
if (tempVector3.y < this._orthoBottom) {
|
|
187
|
+
this._orthoBottom = tempVector3.y;
|
|
188
|
+
}
|
|
189
|
+
if (tempVector3.x > this._orthoRight) {
|
|
190
|
+
this._orthoRight = tempVector3.x;
|
|
191
|
+
}
|
|
192
|
+
if (tempVector3.y > this._orthoTop) {
|
|
193
|
+
this._orthoTop = tempVector3.y;
|
|
194
|
+
}
|
|
195
|
+
if (this.autoCalcShadowZBounds) {
|
|
196
|
+
if (tempVector3.z < shadowMinZ) {
|
|
197
|
+
shadowMinZ = tempVector3.z;
|
|
198
|
+
}
|
|
199
|
+
if (tempVector3.z > shadowMaxZ) {
|
|
200
|
+
shadowMaxZ = tempVector3.z;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
if (this.autoCalcShadowZBounds) {
|
|
206
|
+
this._shadowMinZ = shadowMinZ;
|
|
207
|
+
this._shadowMaxZ = shadowMaxZ;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
const xOffset = this._orthoRight - this._orthoLeft;
|
|
211
|
+
const yOffset = this._orthoTop - this._orthoBottom;
|
|
212
|
+
const minZ = this.shadowMinZ !== undefined ? this.shadowMinZ : activeCamera?.minZ || Constants.ShadowMinZ;
|
|
213
|
+
const maxZ = this.shadowMaxZ !== undefined ? this.shadowMaxZ : activeCamera?.maxZ || Constants.ShadowMaxZ;
|
|
214
|
+
const useReverseDepthBuffer = this.getScene().getEngine().useReverseDepthBuffer;
|
|
215
|
+
Matrix.OrthoOffCenterLHToRef(this._orthoLeft - xOffset * this.shadowOrthoScale, this._orthoRight + xOffset * this.shadowOrthoScale, this._orthoBottom - yOffset * this.shadowOrthoScale, this._orthoTop + yOffset * this.shadowOrthoScale, useReverseDepthBuffer ? maxZ : minZ, useReverseDepthBuffer ? minZ : maxZ, matrix, this.getScene().getEngine().isNDCHalfZRange);
|
|
216
|
+
}
|
|
217
|
+
_buildUniformLayout() {
|
|
218
|
+
this._uniformBuffer.addUniform("vLightData", 4);
|
|
219
|
+
this._uniformBuffer.addUniform("vLightDiffuse", 4);
|
|
220
|
+
this._uniformBuffer.addUniform("vLightSpecular", 4);
|
|
221
|
+
this._uniformBuffer.addUniform("shadowsInfo", 3);
|
|
222
|
+
this._uniformBuffer.addUniform("depthValues", 2);
|
|
223
|
+
this._uniformBuffer.create();
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Sets the passed Effect object with the DirectionalLight transformed position (or position if not parented) and the passed name.
|
|
227
|
+
* @param effect The effect to update
|
|
228
|
+
* @param lightIndex The index of the light in the effect to update
|
|
229
|
+
* @returns The directional light
|
|
230
|
+
*/
|
|
231
|
+
transferToEffect(effect, lightIndex) {
|
|
232
|
+
if (this.computeTransformedInformation()) {
|
|
233
|
+
this._uniformBuffer.updateFloat4("vLightData", this.transformedDirection.x, this.transformedDirection.y, this.transformedDirection.z, 1, lightIndex);
|
|
234
|
+
return this;
|
|
235
|
+
}
|
|
236
|
+
this._uniformBuffer.updateFloat4("vLightData", this.direction.x, this.direction.y, this.direction.z, 1, lightIndex);
|
|
237
|
+
return this;
|
|
238
|
+
}
|
|
239
|
+
transferToNodeMaterialEffect(effect, lightDataUniformName) {
|
|
240
|
+
if (this.computeTransformedInformation()) {
|
|
241
|
+
effect.setFloat3(lightDataUniformName, this.transformedDirection.x, this.transformedDirection.y, this.transformedDirection.z);
|
|
242
|
+
return this;
|
|
243
|
+
}
|
|
244
|
+
effect.setFloat3(lightDataUniformName, this.direction.x, this.direction.y, this.direction.z);
|
|
245
|
+
return this;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Gets the minZ used for shadow according to both the scene and the light.
|
|
249
|
+
*
|
|
250
|
+
* Values are fixed on directional lights as it relies on an ortho projection hence the need to convert being
|
|
251
|
+
* -1 and 1 to 0 and 1 doing (depth + min) / (min + max) -> (depth + 1) / (1 + 1) -> (depth * 0.5) + 0.5.
|
|
252
|
+
* (when not using reverse depth buffer / NDC half Z range)
|
|
253
|
+
* @param _activeCamera The camera we are returning the min for (not used)
|
|
254
|
+
* @returns the depth min z
|
|
255
|
+
*/
|
|
256
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
257
|
+
getDepthMinZ(_activeCamera) {
|
|
258
|
+
const engine = this._scene.getEngine();
|
|
259
|
+
return !engine.useReverseDepthBuffer && engine.isNDCHalfZRange ? 0 : 1;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Gets the maxZ used for shadow according to both the scene and the light.
|
|
263
|
+
*
|
|
264
|
+
* Values are fixed on directional lights as it relies on an ortho projection hence the need to convert being
|
|
265
|
+
* -1 and 1 to 0 and 1 doing (depth + min) / (min + max) -> (depth + 1) / (1 + 1) -> (depth * 0.5) + 0.5.
|
|
266
|
+
* (when not using reverse depth buffer / NDC half Z range)
|
|
267
|
+
* @param _activeCamera The camera we are returning the max for
|
|
268
|
+
* @returns the depth max z
|
|
269
|
+
*/
|
|
270
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
271
|
+
getDepthMaxZ(_activeCamera) {
|
|
272
|
+
const engine = this._scene.getEngine();
|
|
273
|
+
return engine.useReverseDepthBuffer && engine.isNDCHalfZRange ? 0 : 1;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Prepares the list of defines specific to the light type.
|
|
277
|
+
* @param defines the list of defines
|
|
278
|
+
* @param lightIndex defines the index of the light for the effect
|
|
279
|
+
*/
|
|
280
|
+
prepareLightSpecificDefines(defines, lightIndex) {
|
|
281
|
+
defines["DIRLIGHT" + lightIndex] = true;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
__decorate([
|
|
285
|
+
serialize()
|
|
286
|
+
], DirectionalLight.prototype, "shadowFrustumSize", null);
|
|
287
|
+
__decorate([
|
|
288
|
+
serialize()
|
|
289
|
+
], DirectionalLight.prototype, "shadowOrthoScale", null);
|
|
290
|
+
__decorate([
|
|
291
|
+
serialize()
|
|
292
|
+
], DirectionalLight.prototype, "autoUpdateExtends", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
serialize()
|
|
295
|
+
], DirectionalLight.prototype, "autoCalcShadowZBounds", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
serialize("orthoLeft")
|
|
298
|
+
], DirectionalLight.prototype, "_orthoLeft", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
serialize("orthoRight")
|
|
301
|
+
], DirectionalLight.prototype, "_orthoRight", void 0);
|
|
302
|
+
__decorate([
|
|
303
|
+
serialize("orthoTop")
|
|
304
|
+
], DirectionalLight.prototype, "_orthoTop", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
serialize("orthoBottom")
|
|
307
|
+
], DirectionalLight.prototype, "_orthoBottom", void 0);
|
|
308
|
+
// Register Class Name
|
|
309
|
+
RegisterClass("BABYLON.DirectionalLight", DirectionalLight);
|
|
310
|
+
|
|
311
|
+
Node.AddNodeConstructor("Light_Type_0", (name, scene) => {
|
|
312
|
+
return () => new PointLight(name, Vector3.Zero(), scene);
|
|
313
|
+
});
|
|
314
|
+
/**
|
|
315
|
+
* A point light is a light defined by an unique point in world space.
|
|
316
|
+
* The light is emitted in every direction from this point.
|
|
317
|
+
* A good example of a point light is a standard light bulb.
|
|
318
|
+
* Documentation: https://doc.babylonjs.com/features/featuresDeepDive/lights/lights_introduction
|
|
319
|
+
*/
|
|
320
|
+
class PointLight extends ShadowLight {
|
|
321
|
+
/**
|
|
322
|
+
* Getter: In case of direction provided, the shadow will not use a cube texture but simulate a spot shadow as a fallback
|
|
323
|
+
* This specifies what angle the shadow will use to be created.
|
|
324
|
+
*
|
|
325
|
+
* It default to 90 degrees to work nicely with the cube texture generation for point lights shadow maps.
|
|
326
|
+
*/
|
|
327
|
+
get shadowAngle() {
|
|
328
|
+
return this._shadowAngle;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Setter: In case of direction provided, the shadow will not use a cube texture but simulate a spot shadow as a fallback
|
|
332
|
+
* This specifies what angle the shadow will use to be created.
|
|
333
|
+
*
|
|
334
|
+
* It default to 90 degrees to work nicely with the cube texture generation for point lights shadow maps.
|
|
335
|
+
*/
|
|
336
|
+
set shadowAngle(value) {
|
|
337
|
+
this._shadowAngle = value;
|
|
338
|
+
this.forceProjectionMatrixCompute();
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Gets the direction if it has been set.
|
|
342
|
+
* In case of direction provided, the shadow will not use a cube texture but simulate a spot shadow as a fallback
|
|
343
|
+
*/
|
|
344
|
+
get direction() {
|
|
345
|
+
return this._direction;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* In case of direction provided, the shadow will not use a cube texture but simulate a spot shadow as a fallback
|
|
349
|
+
*/
|
|
350
|
+
set direction(value) {
|
|
351
|
+
const previousNeedCube = this.needCube();
|
|
352
|
+
this._direction = value;
|
|
353
|
+
if (this.needCube() !== previousNeedCube && this._shadowGenerators) {
|
|
354
|
+
const iterator = this._shadowGenerators.values();
|
|
355
|
+
for (let key = iterator.next(); key.done !== true; key = iterator.next()) {
|
|
356
|
+
const shadowGenerator = key.value;
|
|
357
|
+
shadowGenerator.recreateShadowMap();
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Creates a PointLight object from the passed name and position (Vector3) and adds it in the scene.
|
|
363
|
+
* A PointLight emits the light in every direction.
|
|
364
|
+
* It can cast shadows.
|
|
365
|
+
* If the scene camera is already defined and you want to set your PointLight at the camera position, just set it :
|
|
366
|
+
* ```javascript
|
|
367
|
+
* var pointLight = new PointLight("pl", camera.position, scene);
|
|
368
|
+
* ```
|
|
369
|
+
* Documentation : https://doc.babylonjs.com/features/featuresDeepDive/lights/lights_introduction
|
|
370
|
+
* @param name The light friendly name
|
|
371
|
+
* @param position The position of the point light in the scene
|
|
372
|
+
* @param scene The scene the lights belongs to
|
|
373
|
+
*/
|
|
374
|
+
constructor(name, position, scene) {
|
|
375
|
+
super(name, scene);
|
|
376
|
+
this._shadowAngle = Math.PI / 2;
|
|
377
|
+
this.position = position;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Returns the string "PointLight"
|
|
381
|
+
* @returns the class name
|
|
382
|
+
*/
|
|
383
|
+
getClassName() {
|
|
384
|
+
return "PointLight";
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Returns the integer 0.
|
|
388
|
+
* @returns The light Type id as a constant defines in Light.LIGHTTYPEID_x
|
|
389
|
+
*/
|
|
390
|
+
getTypeID() {
|
|
391
|
+
return Light.LIGHTTYPEID_POINTLIGHT;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Specifies whether or not the shadowmap should be a cube texture.
|
|
395
|
+
* @returns true if the shadowmap needs to be a cube texture.
|
|
396
|
+
*/
|
|
397
|
+
needCube() {
|
|
398
|
+
return !this.direction;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Returns a new Vector3 aligned with the PointLight cube system according to the passed cube face index (integer).
|
|
402
|
+
* @param faceIndex The index of the face we are computed the direction to generate shadow
|
|
403
|
+
* @returns The set direction in 2d mode otherwise the direction to the cubemap face if needCube() is true
|
|
404
|
+
*/
|
|
405
|
+
getShadowDirection(faceIndex) {
|
|
406
|
+
if (this.direction) {
|
|
407
|
+
return super.getShadowDirection(faceIndex);
|
|
408
|
+
}
|
|
409
|
+
else {
|
|
410
|
+
switch (faceIndex) {
|
|
411
|
+
case 0:
|
|
412
|
+
return new Vector3(1.0, 0.0, 0.0);
|
|
413
|
+
case 1:
|
|
414
|
+
return new Vector3(-1.0, 0.0, 0.0);
|
|
415
|
+
case 2:
|
|
416
|
+
return new Vector3(0.0, -1.0, 0.0);
|
|
417
|
+
case 3:
|
|
418
|
+
return new Vector3(0.0, 1.0, 0.0);
|
|
419
|
+
case 4:
|
|
420
|
+
return new Vector3(0.0, 0.0, 1.0);
|
|
421
|
+
case 5:
|
|
422
|
+
return new Vector3(0.0, 0.0, -1.0);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return Vector3.Zero();
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Sets the passed matrix "matrix" as a left-handed perspective projection matrix with the following settings :
|
|
429
|
+
* - fov = PI / 2
|
|
430
|
+
* - aspect ratio : 1.0
|
|
431
|
+
* - z-near and far equal to the active camera minZ and maxZ.
|
|
432
|
+
* Returns the PointLight.
|
|
433
|
+
* @param matrix
|
|
434
|
+
* @param viewMatrix
|
|
435
|
+
* @param renderList
|
|
436
|
+
*/
|
|
437
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
438
|
+
_setDefaultShadowProjectionMatrix(matrix, viewMatrix, renderList) {
|
|
439
|
+
const activeCamera = this.getScene().activeCamera;
|
|
440
|
+
if (!activeCamera) {
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
const minZ = this.shadowMinZ !== undefined ? this.shadowMinZ : activeCamera.minZ;
|
|
444
|
+
const maxZ = this.shadowMaxZ !== undefined ? this.shadowMaxZ : activeCamera.maxZ;
|
|
445
|
+
const useReverseDepthBuffer = this.getScene().getEngine().useReverseDepthBuffer;
|
|
446
|
+
Matrix.PerspectiveFovLHToRef(this.shadowAngle, 1.0, useReverseDepthBuffer ? maxZ : minZ, useReverseDepthBuffer ? minZ : maxZ, matrix, true, this._scene.getEngine().isNDCHalfZRange, undefined, useReverseDepthBuffer);
|
|
447
|
+
}
|
|
448
|
+
_buildUniformLayout() {
|
|
449
|
+
this._uniformBuffer.addUniform("vLightData", 4);
|
|
450
|
+
this._uniformBuffer.addUniform("vLightDiffuse", 4);
|
|
451
|
+
this._uniformBuffer.addUniform("vLightSpecular", 4);
|
|
452
|
+
this._uniformBuffer.addUniform("vLightFalloff", 4);
|
|
453
|
+
this._uniformBuffer.addUniform("shadowsInfo", 3);
|
|
454
|
+
this._uniformBuffer.addUniform("depthValues", 2);
|
|
455
|
+
this._uniformBuffer.create();
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Sets the passed Effect "effect" with the PointLight transformed position (or position, if none) and passed name (string).
|
|
459
|
+
* @param effect The effect to update
|
|
460
|
+
* @param lightIndex The index of the light in the effect to update
|
|
461
|
+
* @returns The point light
|
|
462
|
+
*/
|
|
463
|
+
transferToEffect(effect, lightIndex) {
|
|
464
|
+
if (this.computeTransformedInformation()) {
|
|
465
|
+
this._uniformBuffer.updateFloat4("vLightData", this.transformedPosition.x, this.transformedPosition.y, this.transformedPosition.z, 0.0, lightIndex);
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
this._uniformBuffer.updateFloat4("vLightData", this.position.x, this.position.y, this.position.z, 0, lightIndex);
|
|
469
|
+
}
|
|
470
|
+
this._uniformBuffer.updateFloat4("vLightFalloff", this.range, this._inverseSquaredRange, 0, 0, lightIndex);
|
|
471
|
+
return this;
|
|
472
|
+
}
|
|
473
|
+
transferToNodeMaterialEffect(effect, lightDataUniformName) {
|
|
474
|
+
if (this.computeTransformedInformation()) {
|
|
475
|
+
effect.setFloat3(lightDataUniformName, this.transformedPosition.x, this.transformedPosition.y, this.transformedPosition.z);
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
effect.setFloat3(lightDataUniformName, this.position.x, this.position.y, this.position.z);
|
|
479
|
+
}
|
|
480
|
+
return this;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Prepares the list of defines specific to the light type.
|
|
484
|
+
* @param defines the list of defines
|
|
485
|
+
* @param lightIndex defines the index of the light for the effect
|
|
486
|
+
*/
|
|
487
|
+
prepareLightSpecificDefines(defines, lightIndex) {
|
|
488
|
+
defines["POINTLIGHT" + lightIndex] = true;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
__decorate([
|
|
492
|
+
serialize()
|
|
493
|
+
], PointLight.prototype, "shadowAngle", null);
|
|
494
|
+
// Register Class Name
|
|
495
|
+
RegisterClass("BABYLON.PointLight", PointLight);
|
|
496
|
+
|
|
497
|
+
const NAME = "KHR_lights_punctual";
|
|
498
|
+
/**
|
|
499
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_lights_punctual/README.md)
|
|
500
|
+
*/
|
|
501
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
502
|
+
class KHR_lights {
|
|
503
|
+
/**
|
|
504
|
+
* @internal
|
|
505
|
+
*/
|
|
506
|
+
constructor(loader) {
|
|
507
|
+
/**
|
|
508
|
+
* The name of this extension.
|
|
509
|
+
*/
|
|
510
|
+
this.name = NAME;
|
|
511
|
+
this._loader = loader;
|
|
512
|
+
this.enabled = this._loader.isExtensionUsed(NAME);
|
|
513
|
+
}
|
|
514
|
+
/** @internal */
|
|
515
|
+
dispose() {
|
|
516
|
+
this._loader = null;
|
|
517
|
+
delete this._lights;
|
|
518
|
+
}
|
|
519
|
+
/** @internal */
|
|
520
|
+
onLoading() {
|
|
521
|
+
const extensions = this._loader.gltf.extensions;
|
|
522
|
+
if (extensions && extensions[this.name]) {
|
|
523
|
+
const extension = extensions[this.name];
|
|
524
|
+
this._lights = extension.lights;
|
|
525
|
+
ArrayItem.Assign(this._lights);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* @internal
|
|
530
|
+
*/
|
|
531
|
+
loadNodeAsync(context, node, assign) {
|
|
532
|
+
return GLTFLoader.LoadExtensionAsync(context, node, this.name, (extensionContext, extension) => {
|
|
533
|
+
this._loader._allMaterialsDirtyRequired = true;
|
|
534
|
+
return this._loader.loadNodeAsync(context, node, (babylonMesh) => {
|
|
535
|
+
let babylonLight;
|
|
536
|
+
const light = ArrayItem.Get(extensionContext, this._lights, extension.light);
|
|
537
|
+
const name = light.name || babylonMesh.name;
|
|
538
|
+
this._loader.babylonScene._blockEntityCollection = !!this._loader._assetContainer;
|
|
539
|
+
switch (light.type) {
|
|
540
|
+
case "directional" /* KHRLightsPunctual_LightType.DIRECTIONAL */: {
|
|
541
|
+
const babylonDirectionalLight = new DirectionalLight(name, Vector3.Backward(), this._loader.babylonScene);
|
|
542
|
+
babylonDirectionalLight.position.setAll(0);
|
|
543
|
+
babylonLight = babylonDirectionalLight;
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
case "point" /* KHRLightsPunctual_LightType.POINT */: {
|
|
547
|
+
babylonLight = new PointLight(name, Vector3.Zero(), this._loader.babylonScene);
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
case "spot" /* KHRLightsPunctual_LightType.SPOT */: {
|
|
551
|
+
const babylonSpotLight = new SpotLight(name, Vector3.Zero(), Vector3.Backward(), 0, 1, this._loader.babylonScene);
|
|
552
|
+
babylonSpotLight.angle = ((light.spot && light.spot.outerConeAngle) || Math.PI / 4) * 2;
|
|
553
|
+
babylonSpotLight.innerAngle = ((light.spot && light.spot.innerConeAngle) || 0) * 2;
|
|
554
|
+
babylonLight = babylonSpotLight;
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
557
|
+
default: {
|
|
558
|
+
this._loader.babylonScene._blockEntityCollection = false;
|
|
559
|
+
throw new Error(`${extensionContext}: Invalid light type (${light.type})`);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
babylonLight._parentContainer = this._loader._assetContainer;
|
|
563
|
+
this._loader.babylonScene._blockEntityCollection = false;
|
|
564
|
+
light._babylonLight = babylonLight;
|
|
565
|
+
babylonLight.falloffType = Light.FALLOFF_GLTF;
|
|
566
|
+
babylonLight.diffuse = light.color ? Color3.FromArray(light.color) : Color3.White();
|
|
567
|
+
babylonLight.intensity = light.intensity == undefined ? 1 : light.intensity;
|
|
568
|
+
babylonLight.range = light.range == undefined ? Number.MAX_VALUE : light.range;
|
|
569
|
+
babylonLight.parent = babylonMesh;
|
|
570
|
+
this._loader._babylonLights.push(babylonLight);
|
|
571
|
+
GLTFLoader.AddPointerMetadata(babylonLight, extensionContext);
|
|
572
|
+
assign(babylonMesh);
|
|
573
|
+
});
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
unregisterGLTFExtension(NAME);
|
|
578
|
+
registerGLTFExtension(NAME, true, (loader) => new KHR_lights(loader));
|
|
579
|
+
|
|
580
|
+
export { KHR_lights };
|
|
581
|
+
//# sourceMappingURL=KHR_lights_punctual--w0a62AP.esm.js.map
|