@babylonjs/viewer 7.40.0 → 7.40.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-gxFyrTPG.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_ies-gxFyrTPG.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_ies-pE68tmBj.esm.js +84 -0
- package/dist/chunks/EXT_lights_ies-pE68tmBj.esm.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-B8Oal0Ur.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_image_based-B8Oal0Ur.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-CmP_ZGlF.esm.js +171 -0
- package/dist/chunks/EXT_lights_image_based-CmP_ZGlF.esm.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-DSFpOud_.esm.min.js +2 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-DSFpOud_.esm.min.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-DksAVeyV.esm.js +86 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-DksAVeyV.esm.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-CNUItnkN.esm.min.js +2 -0
- package/dist/chunks/EXT_meshopt_compression-CNUItnkN.esm.min.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-CeM-AELC.esm.js +134 -0
- package/dist/chunks/EXT_meshopt_compression-CeM-AELC.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-BWOJV_Yf.esm.js +44 -0
- package/dist/chunks/EXT_texture_avif-BWOJV_Yf.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-CSTfqZHT.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_avif-CSTfqZHT.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-4Pxv5jC9.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_webp-4Pxv5jC9.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-C9og1YZL.esm.js +43 -0
- package/dist/chunks/EXT_texture_webp-C9og1YZL.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-BmFy6ZgN.esm.js +64 -0
- package/dist/chunks/ExtrasAsMetadata-BmFy6ZgN.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-BwYwFtj7.esm.min.js +2 -0
- package/dist/chunks/ExtrasAsMetadata-BwYwFtj7.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-BM2iOlKg.esm.js +352 -0
- package/dist/chunks/KHR_animation_pointer-BM2iOlKg.esm.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-C7FvhqL3.esm.min.js +2 -0
- package/dist/chunks/KHR_animation_pointer-C7FvhqL3.esm.min.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-BocaEHGh.esm.js +617 -0
- package/dist/chunks/KHR_draco_mesh_compression-BocaEHGh.esm.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-CjRCmIUz.esm.min.js +2 -0
- package/dist/chunks/KHR_draco_mesh_compression-CjRCmIUz.esm.min.js.map +1 -0
- package/dist/chunks/KHR_interactivity-C_ndoQHo.esm.min.js +2 -0
- package/dist/chunks/KHR_interactivity-C_ndoQHo.esm.min.js.map +1 -0
- package/dist/chunks/KHR_interactivity-ClHXW_8S.esm.js +4033 -0
- package/dist/chunks/KHR_interactivity-ClHXW_8S.esm.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-D0u7ZFj4.esm.js +581 -0
- package/dist/chunks/KHR_lights_punctual-D0u7ZFj4.esm.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-Z509RdIo.esm.min.js +2 -0
- package/dist/chunks/KHR_lights_punctual-Z509RdIo.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-Dz4vBqG3.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_anisotropy-Dz4vBqG3.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-VuLS4v3P.esm.js +65 -0
- package/dist/chunks/KHR_materials_anisotropy-VuLS4v3P.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-DM7vCrC3.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_clearcoat-DM7vCrC3.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-Dt0nQ5Ky.esm.js +96 -0
- package/dist/chunks/KHR_materials_clearcoat-Dt0nQ5Ky.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-1Pa4ScwD.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-1Pa4ScwD.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-DIUHVeOQ.esm.js +97 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-DIUHVeOQ.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-CMpGZsUw.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_dispersion-CMpGZsUw.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-CeSj8nUI.esm.js +62 -0
- package/dist/chunks/KHR_materials_dispersion-CeSj8nUI.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-CQQX31qK.esm.js +55 -0
- package/dist/chunks/KHR_materials_emissive_strength-CQQX31qK.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-DH4A4kIp.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_emissive_strength-DH4A4kIp.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-BTU1gw-j.esm.js +64 -0
- package/dist/chunks/KHR_materials_ior-BTU1gw-j.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-DyzPdK6b.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_ior-DyzPdK6b.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-8ZgbULX5.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_iridescence-8ZgbULX5.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-D2HCEadq.esm.js +72 -0
- package/dist/chunks/KHR_materials_iridescence-D2HCEadq.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-C4K79VpA.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-C4K79VpA.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-DtJVJ-gl.esm.js +81 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-DtJVJ-gl.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-CT4KjW_v.esm.js +85 -0
- package/dist/chunks/KHR_materials_sheen-CT4KjW_v.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-DQt5abo-.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_sheen-DQt5abo-.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-CCvL1awH.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_specular-CCvL1awH.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-CgLKBQCa.esm.js +75 -0
- package/dist/chunks/KHR_materials_specular-CgLKBQCa.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-B64oDwox.esm.js +307 -0
- package/dist/chunks/KHR_materials_transmission-B64oDwox.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-C6yPYKde.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_transmission-C6yPYKde.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-BGPDq328.esm.js +74 -0
- package/dist/chunks/KHR_materials_unlit-BGPDq328.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-Sz3qCEGr.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_unlit-Sz3qCEGr.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-Cqw7xft3.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_variants-Cqw7xft3.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-D7rYTNoB.esm.js +262 -0
- package/dist/chunks/KHR_materials_variants-D7rYTNoB.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-BBsNt0LM.esm.js +87 -0
- package/dist/chunks/KHR_materials_volume-BBsNt0LM.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-DfWO7kG_.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_volume-DfWO7kG_.esm.min.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-BiDGkiGh.esm.min.js +2 -0
- package/dist/chunks/KHR_mesh_quantization-BiDGkiGh.esm.min.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-fE1qitjF.esm.js +26 -0
- package/dist/chunks/KHR_mesh_quantization-fE1qitjF.esm.js.map +1 -0
- package/dist/chunks/KHR_node_hoverability-DaOK-Y48.esm.min.js +2 -0
- package/dist/chunks/KHR_node_hoverability-DaOK-Y48.esm.min.js.map +1 -0
- package/dist/chunks/KHR_node_hoverability-glogCdHq.esm.js +39 -0
- package/dist/chunks/KHR_node_hoverability-glogCdHq.esm.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-BCVXn2la.esm.min.js +2 -0
- package/dist/chunks/KHR_node_visibility-BCVXn2la.esm.min.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-CCfVtnan.esm.js +46 -0
- package/dist/chunks/KHR_node_visibility-CCfVtnan.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-_cpZJuOo.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_basisu-_cpZJuOo.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-nhRrTq0b.esm.js +43 -0
- package/dist/chunks/KHR_texture_basisu-nhRrTq0b.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-AgI_J0Ru.esm.js +63 -0
- package/dist/chunks/KHR_texture_transform-AgI_J0Ru.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-CgcA7bhJ.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_transform-CgcA7bhJ.esm.min.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-C37VZwlU.esm.min.js +2 -0
- package/dist/chunks/KHR_xmp_json_ld-C37VZwlU.esm.min.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-Cm4z6qFH.esm.js +51 -0
- package/dist/chunks/KHR_xmp_json_ld-Cm4z6qFH.esm.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-4EFTMS8D.esm.js +2207 -0
- package/dist/chunks/MSFT_audio_emitter-4EFTMS8D.esm.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-Czn1DAbD.esm.min.js +2 -0
- package/dist/chunks/MSFT_audio_emitter-Czn1DAbD.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_lod-Bn4FnO5A.esm.js +337 -0
- package/dist/chunks/MSFT_lod-Bn4FnO5A.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-DDB-SKXR.esm.min.js +2 -0
- package/dist/chunks/MSFT_lod-DDB-SKXR.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-APRwcxWb.esm.min.js +2 -0
- package/dist/chunks/MSFT_minecraftMesh-APRwcxWb.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-DPvby_FZ.esm.js +46 -0
- package/dist/chunks/MSFT_minecraftMesh-DPvby_FZ.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-D33sXFGi.esm.js +47 -0
- package/dist/chunks/MSFT_sRGBFactors-D33sXFGi.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-OsUqZSue.esm.min.js +2 -0
- package/dist/chunks/MSFT_sRGBFactors-OsUqZSue.esm.min.js.map +1 -0
- package/dist/chunks/animationGroup-BR3zskS8.esm.js +2482 -0
- package/dist/chunks/animationGroup-BR3zskS8.esm.js.map +1 -0
- package/dist/chunks/animationGroup-ChIp5GuO.esm.min.js +2 -0
- package/dist/chunks/animationGroup-ChIp5GuO.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-DLSDgjTx.esm.min.js +2 -0
- package/dist/chunks/assetContainer-DLSDgjTx.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-cm8rvay3.esm.js +1720 -0
- package/dist/chunks/assetContainer-cm8rvay3.esm.js.map +1 -0
- package/dist/chunks/audioEngine-Cx5dB73O.esm.js +305 -0
- package/dist/chunks/audioEngine-Cx5dB73O.esm.js.map +1 -0
- package/dist/chunks/audioEngine-hKZ2m0jY.esm.min.js +2 -0
- package/dist/chunks/audioEngine-hKZ2m0jY.esm.min.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-BCUFE4CP.esm.min.js +2 -0
- package/dist/chunks/bakedVertexAnimation-BCUFE4CP.esm.min.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-ByPKjjzz.esm.js +114 -0
- package/dist/chunks/bakedVertexAnimation-ByPKjjzz.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-BIqCbGFg.esm.min.js +2 -0
- package/dist/chunks/basisTextureLoader-BIqCbGFg.esm.min.js.map +1 -0
- package/dist/chunks/basisTextureLoader-CT8X4ynA.esm.js +600 -0
- package/dist/chunks/basisTextureLoader-CT8X4ynA.esm.js.map +1 -0
- package/dist/chunks/dds-BDOPTCsA.esm.min.js +2 -0
- package/dist/chunks/dds-BDOPTCsA.esm.min.js.map +1 -0
- package/dist/chunks/dds-BYrGO6eI.esm.js +540 -0
- package/dist/chunks/dds-BYrGO6eI.esm.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-BbrffKmM.esm.min.js +2 -0
- package/dist/chunks/ddsTextureLoader-BbrffKmM.esm.min.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-C36kkIBH.esm.js +88 -0
- package/dist/chunks/ddsTextureLoader-C36kkIBH.esm.js.map +1 -0
- package/dist/chunks/decalFragment-07cq9QvS.esm.min.js +2 -0
- package/dist/chunks/decalFragment-07cq9QvS.esm.min.js.map +1 -0
- package/dist/chunks/decalFragment-B16Nfnl3.esm.js +18 -0
- package/dist/chunks/decalFragment-B16Nfnl3.esm.js.map +1 -0
- package/dist/chunks/default.fragment-BkjbMxBE.esm.min.js +2 -0
- package/dist/chunks/default.fragment-BkjbMxBE.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-C-8jVS2k.esm.min.js +2 -0
- package/dist/chunks/default.fragment-C-8jVS2k.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-C3Pectqi.esm.js +515 -0
- package/dist/chunks/default.fragment-C3Pectqi.esm.js.map +1 -0
- package/dist/chunks/default.fragment-D3LhG5le.esm.js +446 -0
- package/dist/chunks/default.fragment-D3LhG5le.esm.js.map +1 -0
- package/dist/chunks/default.vertex-CPx_2Z0S.esm.js +181 -0
- package/dist/chunks/default.vertex-CPx_2Z0S.esm.js.map +1 -0
- package/dist/chunks/default.vertex-CVMUuXku.esm.js +202 -0
- package/dist/chunks/default.vertex-CVMUuXku.esm.js.map +1 -0
- package/dist/chunks/default.vertex-CbVQZVXB.esm.min.js +2 -0
- package/dist/chunks/default.vertex-CbVQZVXB.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-S3Wv9p0Q.esm.min.js +2 -0
- package/dist/chunks/default.vertex-S3Wv9p0Q.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-BdxOUPT0.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-BdxOUPT0.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-CUaZKOKG.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-CUaZKOKG.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-DdcmVbYg.esm.js +15 -0
- package/dist/chunks/defaultUboDeclaration-DdcmVbYg.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-rLhenj1H.esm.js +13 -0
- package/dist/chunks/defaultUboDeclaration-rLhenj1H.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-CPmY0U7D.esm.js +200 -0
- package/dist/chunks/dumpTools-CPmY0U7D.esm.js.map +1 -0
- package/dist/chunks/dumpTools-DVDwJ2sz.esm.min.js +2 -0
- package/dist/chunks/dumpTools-DVDwJ2sz.esm.min.js.map +1 -0
- package/dist/chunks/engine-BqSrdURz.esm.min.js +2 -0
- package/dist/chunks/engine-BqSrdURz.esm.min.js.map +1 -0
- package/dist/chunks/engine-D_GgT2Nf.esm.js +2216 -0
- package/dist/chunks/engine-D_GgT2Nf.esm.js.map +1 -0
- package/dist/chunks/engine.common-CN1Lug5p.esm.js +1162 -0
- package/dist/chunks/engine.common-CN1Lug5p.esm.js.map +1 -0
- package/dist/chunks/engine.common-DgiXKhLy.esm.min.js +2 -0
- package/dist/chunks/engine.common-DgiXKhLy.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-BORNR9vu.esm.min.js +2 -0
- package/dist/chunks/envTextureLoader-BORNR9vu.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-DHwsXTfw.esm.js +64 -0
- package/dist/chunks/envTextureLoader-DHwsXTfw.esm.js.map +1 -0
- package/dist/chunks/environmentTextureTools-B2vnsFq-.esm.js +382 -0
- package/dist/chunks/environmentTextureTools-B2vnsFq-.esm.js.map +1 -0
- package/dist/chunks/environmentTextureTools-BYQHZH-c.esm.min.js +2 -0
- package/dist/chunks/environmentTextureTools-BYQHZH-c.esm.min.js.map +1 -0
- package/dist/chunks/exrTextureLoader-B8FQohBr.esm.js +1683 -0
- package/dist/chunks/exrTextureLoader-B8FQohBr.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-D8xP0GLQ.esm.min.js +2 -0
- package/dist/chunks/exrTextureLoader-D8xP0GLQ.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-5YT33bDn.esm.js +102 -0
- package/dist/chunks/fogFragment-5YT33bDn.esm.js.map +1 -0
- package/dist/chunks/fogFragment-BOBZ2KwN.esm.min.js +2 -0
- package/dist/chunks/fogFragment-BOBZ2KwN.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-CLENZGuB.esm.js +101 -0
- package/dist/chunks/fogFragment-CLENZGuB.esm.js.map +1 -0
- package/dist/chunks/fogFragment-D9dudohA.esm.min.js +2 -0
- package/dist/chunks/fogFragment-D9dudohA.esm.min.js.map +1 -0
- package/dist/chunks/fresnelFunction-BkO99b6C.esm.js +12 -0
- package/dist/chunks/fresnelFunction-BkO99b6C.esm.js.map +1 -0
- package/dist/chunks/fresnelFunction-CqiLsMCu.esm.min.js +2 -0
- package/dist/chunks/fresnelFunction-CqiLsMCu.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoader-CkL-dxBD.esm.min.js +2 -0
- package/dist/chunks/glTFLoader-CkL-dxBD.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoader-IEHRfiUn.esm.js +7586 -0
- package/dist/chunks/glTFLoader-IEHRfiUn.esm.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-CV32Nmqb.esm.js +77 -0
- package/dist/chunks/glTFLoaderAnimation-CV32Nmqb.esm.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-Cq2ziV9o.esm.min.js +2 -0
- package/dist/chunks/glTFLoaderAnimation-Cq2ziV9o.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-B5QCEZvF.esm.js +34 -0
- package/dist/chunks/harmonicsFunctions-B5QCEZvF.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-BxLCgoIQ.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-BxLCgoIQ.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-Daxnf8NE.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-Daxnf8NE.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-UzG0C-sm.esm.js +35 -0
- package/dist/chunks/harmonicsFunctions-UzG0C-sm.esm.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-BpVjKGyb.esm.min.js +2 -0
- package/dist/chunks/hdrTextureLoader-BpVjKGyb.esm.min.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-DgW8CxRF.esm.js +253 -0
- package/dist/chunks/hdrTextureLoader-DgW8CxRF.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-BFgvMG5S.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-BFgvMG5S.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-BatAhE6u.esm.js +108 -0
- package/dist/chunks/helperFunctions-BatAhE6u.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-qECwmiwu.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-qECwmiwu.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-vbA-oTJx.esm.js +80 -0
- package/dist/chunks/helperFunctions-vbA-oTJx.esm.js.map +1 -0
- package/dist/chunks/iesTextureLoader-Ccd5pvbh.esm.min.js +2 -0
- package/dist/chunks/iesTextureLoader-Ccd5pvbh.esm.min.js.map +1 -0
- package/dist/chunks/iesTextureLoader-nMYnOfhm.esm.js +189 -0
- package/dist/chunks/iesTextureLoader-nMYnOfhm.esm.js.map +1 -0
- package/dist/chunks/index-BHIM4QBr.esm.min.js +57 -0
- package/dist/chunks/index-BHIM4QBr.esm.min.js.map +1 -0
- package/dist/chunks/index-CtkZLm9J.esm.js +74717 -0
- package/dist/chunks/index-CtkZLm9J.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-CkkvHzY3.esm.js +814 -0
- package/dist/chunks/ktxTextureLoader-CkkvHzY3.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-CwGlHia2.esm.min.js +2 -0
- package/dist/chunks/ktxTextureLoader-CwGlHia2.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-BiUSPlzz.esm.js +35 -0
- package/dist/chunks/logDepthDeclaration-BiUSPlzz.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-Bq2fzMbS.esm.js +11 -0
- package/dist/chunks/logDepthDeclaration-Bq2fzMbS.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-C8DJP16D.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-C8DJP16D.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-DJpvEdPG.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-DJpvEdPG.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-C00_obGd.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-C00_obGd.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-CYIGBMYd.esm.js +77 -0
- package/dist/chunks/logDepthVertex-CYIGBMYd.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-CxT8FVOf.esm.js +81 -0
- package/dist/chunks/logDepthVertex-CxT8FVOf.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-SyM_Fu5K.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-SyM_Fu5K.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-BaIG4IFB.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-BaIG4IFB.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-CQzOmEIM.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-CQzOmEIM.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-D100Qvmm.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-D100Qvmm.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-OSD7irdC.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-OSD7irdC.esm.js.map +1 -0
- package/dist/chunks/meshUboDeclaration--wzKOTOT.esm.min.js +2 -0
- package/dist/chunks/meshUboDeclaration--wzKOTOT.esm.min.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-DIi9ZPDc.esm.js +26 -0
- package/dist/chunks/meshUboDeclaration-DIi9ZPDc.esm.js.map +1 -0
- package/dist/chunks/objFileLoader-Cda8pwUd.esm.js +1338 -0
- package/dist/chunks/objFileLoader-Cda8pwUd.esm.js.map +1 -0
- package/dist/chunks/objFileLoader-kzI-pZ8o.esm.min.js +2 -0
- package/dist/chunks/objFileLoader-kzI-pZ8o.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-4cP4dKVP.esm.min.js +2 -0
- package/dist/chunks/oitFragment-4cP4dKVP.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-Bz1w36ia.esm.js +1078 -0
- package/dist/chunks/oitFragment-Bz1w36ia.esm.js.map +1 -0
- package/dist/chunks/oitFragment-DUkW-kmb.esm.min.js +2 -0
- package/dist/chunks/oitFragment-DUkW-kmb.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-DiuTTpNa.esm.js +1240 -0
- package/dist/chunks/oitFragment-DiuTTpNa.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-B8l5NRgR.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-B8l5NRgR.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-BF4UEoT8.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-BF4UEoT8.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-CD3_26yo.esm.js +15 -0
- package/dist/chunks/pass.fragment-CD3_26yo.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-DfeELUEn.esm.js +15 -0
- package/dist/chunks/pass.fragment-DfeELUEn.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-BDylAp64.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-BDylAp64.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-C1qko419.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-C1qko419.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-EBVxSAEQ.esm.js +3232 -0
- package/dist/chunks/pbr.fragment-EBVxSAEQ.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-lt62m8b7.esm.js +3273 -0
- package/dist/chunks/pbr.fragment-lt62m8b7.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-CGRL_eY2.esm.js +339 -0
- package/dist/chunks/pbr.vertex-CGRL_eY2.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-CHv4zeYj.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-CHv4zeYj.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-Dk4h9ywZ.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-Dk4h9ywZ.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-DopP5mYu.esm.js +214 -0
- package/dist/chunks/pbr.vertex-DopP5mYu.esm.js.map +1 -0
- package/dist/chunks/postprocess.vertex-Bt30-Flh.esm.min.js +2 -0
- package/dist/chunks/postprocess.vertex-Bt30-Flh.esm.min.js.map +1 -0
- package/dist/chunks/postprocess.vertex-pLUOpXIY.esm.js +20 -0
- package/dist/chunks/postprocess.vertex-pLUOpXIY.esm.js.map +1 -0
- package/dist/chunks/rawTexture-78KJgWfq.esm.js +191 -0
- package/dist/chunks/rawTexture-78KJgWfq.esm.js.map +1 -0
- package/dist/chunks/rawTexture-CCCnj14W.esm.min.js +2 -0
- package/dist/chunks/rawTexture-CCCnj14W.esm.min.js.map +1 -0
- package/dist/chunks/ray-CfhmGTmj.esm.js +946 -0
- package/dist/chunks/ray-CfhmGTmj.esm.js.map +1 -0
- package/dist/chunks/ray-Du89cGmz.esm.min.js +2 -0
- package/dist/chunks/ray-Du89cGmz.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-BHAQKD_5.esm.js +13 -0
- package/dist/chunks/rgbdDecode.fragment-BHAQKD_5.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-CV6q4aIi.esm.js +13 -0
- package/dist/chunks/rgbdDecode.fragment-CV6q4aIi.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-DEu4F_6T.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-DEu4F_6T.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-DiJfgZKv.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-DiJfgZKv.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-CR30N0Mr.esm.js +13 -0
- package/dist/chunks/rgbdEncode.fragment-CR30N0Mr.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-CUE3DGC8.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-CUE3DGC8.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-DdFs5QJM.esm.js +13 -0
- package/dist/chunks/rgbdEncode.fragment-DdFs5QJM.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-omm81hdD.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-omm81hdD.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-BnaOhITn.esm.js +3379 -0
- package/dist/chunks/splatFileLoader-BnaOhITn.esm.js.map +1 -0
- package/dist/chunks/splatFileLoader-CuMIDOsR.esm.min.js +2 -0
- package/dist/chunks/splatFileLoader-CuMIDOsR.esm.min.js.map +1 -0
- package/dist/chunks/spotLight-Ca0-j1Op.esm.js +701 -0
- package/dist/chunks/spotLight-Ca0-j1Op.esm.js.map +1 -0
- package/dist/chunks/spotLight-DXuSbTaJ.esm.min.js +2 -0
- package/dist/chunks/spotLight-DXuSbTaJ.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-DKyaZtcm.esm.js +1805 -0
- package/dist/chunks/standardMaterial-DKyaZtcm.esm.js.map +1 -0
- package/dist/chunks/standardMaterial-h3ccobBt.esm.min.js +2 -0
- package/dist/chunks/standardMaterial-h3ccobBt.esm.min.js.map +1 -0
- package/dist/chunks/stlFileLoader-CDv97liE.esm.js +238 -0
- package/dist/chunks/stlFileLoader-CDv97liE.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader-e2ImyWaM.esm.min.js +2 -0
- package/dist/chunks/stlFileLoader-e2ImyWaM.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-DJaEph-Q.esm.js +349 -0
- package/dist/chunks/tgaTextureLoader-DJaEph-Q.esm.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-slv-QvZW.esm.min.js +2 -0
- package/dist/chunks/tgaTextureLoader-slv-QvZW.esm.min.js.map +1 -0
- package/dist/chunks/thinEngine-Ue9ZAvRK.esm.js +3848 -0
- package/dist/chunks/thinEngine-Ue9ZAvRK.esm.js.map +1 -0
- package/dist/chunks/thinEngine-pihAbdON.esm.min.js +2 -0
- package/dist/chunks/thinEngine-pihAbdON.esm.min.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-BgfKoejL.esm.min.js +2 -0
- package/dist/chunks/thinInstanceMesh-BgfKoejL.esm.min.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-V41szD4h.esm.js +314 -0
- package/dist/chunks/thinInstanceMesh-V41szD4h.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-CZsK7mYP.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-CZsK7mYP.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-DKVusFas.esm.js +522 -0
- package/dist/chunks/vertexColorMixing-DKVusFas.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-DeZKI8QK.esm.js +412 -0
- package/dist/chunks/vertexColorMixing-DeZKI8QK.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-axGN1U7X.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-axGN1U7X.esm.min.js.map +1 -0
- package/dist/chunks/webgpuEngine-COis70hT.esm.js +11533 -0
- package/dist/chunks/webgpuEngine-COis70hT.esm.js.map +1 -0
- package/dist/chunks/webgpuEngine-Cx_GlShD.esm.min.js +2 -0
- package/dist/chunks/webgpuEngine-Cx_GlShD.esm.min.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 +559 -0
- package/lib/index.js +2083 -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,446 @@
|
|
|
1
|
+
import { i as ShaderStore } from './index-CtkZLm9J.esm.js';
|
|
2
|
+
import './defaultUboDeclaration-rLhenj1H.esm.js';
|
|
3
|
+
import './oitFragment-Bz1w36ia.esm.js';
|
|
4
|
+
import './mainUVVaryingDeclaration-OSD7irdC.esm.js';
|
|
5
|
+
import './helperFunctions-vbA-oTJx.esm.js';
|
|
6
|
+
import './fresnelFunction-BkO99b6C.esm.js';
|
|
7
|
+
import './fogFragment-CLENZGuB.esm.js';
|
|
8
|
+
import './logDepthDeclaration-Bq2fzMbS.esm.js';
|
|
9
|
+
import './decalFragment-B16Nfnl3.esm.js';
|
|
10
|
+
import './meshUboDeclaration-DIi9ZPDc.esm.js';
|
|
11
|
+
|
|
12
|
+
// Do not edit.
|
|
13
|
+
const name$1 = "lightsFragmentFunctions";
|
|
14
|
+
const shader$1 = `struct lightingInfo
|
|
15
|
+
{diffuse: vec3f,
|
|
16
|
+
#ifdef SPECULARTERM
|
|
17
|
+
specular: vec3f,
|
|
18
|
+
#endif
|
|
19
|
+
#ifdef NDOTL
|
|
20
|
+
ndl: f32,
|
|
21
|
+
#endif
|
|
22
|
+
};fn computeLighting(viewDirectionW: vec3f,vNormal: vec3f,lightData: vec4f,diffuseColor: vec3f,specularColor: vec3f,range: f32,glossiness: f32)->lightingInfo {var result: lightingInfo;var lightVectorW: vec3f;var attenuation: f32=1.0;if (lightData.w==0.)
|
|
23
|
+
{var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var attenuation: f32=max(0.,1.0-length(direction)/range);lightVectorW=normalize(direction);}
|
|
24
|
+
else
|
|
25
|
+
{lightVectorW=normalize(-lightData.xyz);}
|
|
26
|
+
var ndl: f32=max(0.,dot(vNormal,lightVectorW));
|
|
27
|
+
#ifdef NDOTL
|
|
28
|
+
result.ndl=ndl;
|
|
29
|
+
#endif
|
|
30
|
+
result.diffuse=ndl*diffuseColor*attenuation;
|
|
31
|
+
#ifdef SPECULARTERM
|
|
32
|
+
var angleW: vec3f=normalize(viewDirectionW+lightVectorW);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor*attenuation;
|
|
33
|
+
#endif
|
|
34
|
+
return result;}
|
|
35
|
+
fn getAttenuation(cosAngle: f32,exponent: f32)->f32 {return max(0.,pow(cosAngle,exponent));}
|
|
36
|
+
fn getIESAttenuation(cosAngle: f32,iesLightTexture: texture_2d<f32>,iesLightTextureSampler: sampler)->f32 {var angle=acos(cosAngle)/PI;return textureSampleLevel(iesLightTexture,iesLightTextureSampler,vec2f(angle,0),0.).r;}
|
|
37
|
+
fn computeBasicSpotLighting(viewDirectionW: vec3f,lightVectorW: vec3f,vNormal: vec3f,attenuation: f32,diffuseColor: vec3f,specularColor: vec3f,glossiness: f32)->lightingInfo {var result: lightingInfo;var ndl: f32=max(0.,dot(vNormal,lightVectorW));
|
|
38
|
+
#ifdef NDOTL
|
|
39
|
+
result.ndl=ndl;
|
|
40
|
+
#endif
|
|
41
|
+
result.diffuse=ndl*diffuseColor*attenuation;
|
|
42
|
+
#ifdef SPECULARTERM
|
|
43
|
+
var angleW: vec3f=normalize(viewDirectionW+lightVectorW);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor*attenuation;
|
|
44
|
+
#endif
|
|
45
|
+
return result;}
|
|
46
|
+
fn computeIESSpotLighting(viewDirectionW: vec3f,vNormal: vec3f,lightData: vec4f,lightDirection: vec4f,diffuseColor: vec3f,specularColor: vec3f,range: f32,glossiness: f32,iesLightTexture: texture_2d<f32>,iesLightTextureSampler: sampler)->lightingInfo {var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var lightVectorW: vec3f=normalize(direction);var attenuation: f32=max(0.,1.0-length(direction)/range);var dotProduct=dot(lightDirection.xyz,-lightVectorW);var cosAngle: f32=max(0.,dotProduct);if (cosAngle>=lightDirection.w)
|
|
47
|
+
{attenuation*=getIESAttenuation(dotProduct,iesLightTexture,iesLightTextureSampler);return computeBasicSpotLighting(viewDirectionW,lightVectorW,vNormal,attenuation,diffuseColor,specularColor,glossiness);}
|
|
48
|
+
var result: lightingInfo;result.diffuse=vec3f(0.);
|
|
49
|
+
#ifdef SPECULARTERM
|
|
50
|
+
result.specular=vec3f(0.);
|
|
51
|
+
#endif
|
|
52
|
+
#ifdef NDOTL
|
|
53
|
+
result.ndl=0.;
|
|
54
|
+
#endif
|
|
55
|
+
return result;}
|
|
56
|
+
fn computeSpotLighting(viewDirectionW: vec3f,vNormal: vec3f ,lightData: vec4f,lightDirection: vec4f,diffuseColor: vec3f,specularColor: vec3f,range: f32,glossiness: f32)->lightingInfo {var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var lightVectorW: vec3f=normalize(direction);var attenuation: f32=max(0.,1.0-length(direction)/range);var cosAngle: f32=max(0.,dot(lightDirection.xyz,-lightVectorW));if (cosAngle>=lightDirection.w)
|
|
57
|
+
{attenuation*=getAttenuation(cosAngle,lightData.w);return computeBasicSpotLighting(viewDirectionW,lightVectorW,vNormal,attenuation,diffuseColor,specularColor,glossiness);}
|
|
58
|
+
var result: lightingInfo;result.diffuse=vec3f(0.);
|
|
59
|
+
#ifdef SPECULARTERM
|
|
60
|
+
result.specular=vec3f(0.);
|
|
61
|
+
#endif
|
|
62
|
+
#ifdef NDOTL
|
|
63
|
+
result.ndl=0.;
|
|
64
|
+
#endif
|
|
65
|
+
return result;}
|
|
66
|
+
fn computeHemisphericLighting(viewDirectionW: vec3f,vNormal: vec3f,lightData: vec4f,diffuseColor: vec3f,specularColor: vec3f,groundColor: vec3f,glossiness: f32)->lightingInfo {var result: lightingInfo;var ndl: f32=dot(vNormal,lightData.xyz)*0.5+0.5;
|
|
67
|
+
#ifdef NDOTL
|
|
68
|
+
result.ndl=ndl;
|
|
69
|
+
#endif
|
|
70
|
+
result.diffuse=mix(groundColor,diffuseColor,ndl);
|
|
71
|
+
#ifdef SPECULARTERM
|
|
72
|
+
var angleW: vec3f=normalize(viewDirectionW+lightData.xyz);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor;
|
|
73
|
+
#endif
|
|
74
|
+
return result;}
|
|
75
|
+
fn computeProjectionTextureDiffuseLighting(projectionLightTexture: texture_2d<f32>,projectionLightSampler: sampler,textureProjectionMatrix: mat4x4f,posW: vec3f)->vec3f {var strq: vec4f=textureProjectionMatrix*vec4f(posW,1.0);strq/=strq.w;var textureColor: vec3f=textureSample(projectionLightTexture,projectionLightSampler,strq.xy).rgb;return textureColor;}`;
|
|
76
|
+
// Sideeffect
|
|
77
|
+
ShaderStore.IncludesShadersStoreWGSL[name$1] = shader$1;
|
|
78
|
+
|
|
79
|
+
// Do not edit.
|
|
80
|
+
const name = "defaultPixelShader";
|
|
81
|
+
const shader = `#include<defaultUboDeclaration>
|
|
82
|
+
#include<prePassDeclaration>[SCENE_MRT_COUNT]
|
|
83
|
+
#include<oitDeclaration>
|
|
84
|
+
#define CUSTOM_FRAGMENT_BEGIN
|
|
85
|
+
varying vPositionW: vec3f;
|
|
86
|
+
#ifdef NORMAL
|
|
87
|
+
varying vNormalW: vec3f;
|
|
88
|
+
#endif
|
|
89
|
+
#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
90
|
+
varying vColor: vec4f;
|
|
91
|
+
#endif
|
|
92
|
+
#include<mainUVVaryingDeclaration>[1..7]
|
|
93
|
+
#include<helperFunctions>
|
|
94
|
+
#include<lightUboDeclaration>[0..maxSimultaneousLights]
|
|
95
|
+
#include<lightsFragmentFunctions>
|
|
96
|
+
#include<shadowsFragmentFunctions>
|
|
97
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse,_SAMPLERNAME_,diffuse)
|
|
98
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_SAMPLERNAME_,ambient)
|
|
99
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_SAMPLERNAME_,opacity)
|
|
100
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_SAMPLERNAME_,emissive)
|
|
101
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_SAMPLERNAME_,lightmap)
|
|
102
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_SAMPLERNAME_,decal)
|
|
103
|
+
#ifdef REFRACTION
|
|
104
|
+
#ifdef REFRACTIONMAP_3D
|
|
105
|
+
var refractionCubeSamplerSampler: sampler;var refractionCubeSampler: texture_cube<f32>;
|
|
106
|
+
#else
|
|
107
|
+
var refraction2DSamplerSampler: sampler;var refraction2DSampler: texture_2d<f32>;
|
|
108
|
+
#endif
|
|
109
|
+
#endif
|
|
110
|
+
#if defined(SPECULARTERM)
|
|
111
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular,_SAMPLERNAME_,specular)
|
|
112
|
+
#endif
|
|
113
|
+
#include<fresnelFunction>
|
|
114
|
+
#ifdef REFLECTION
|
|
115
|
+
#ifdef REFLECTIONMAP_3D
|
|
116
|
+
var reflectionCubeSamplerSampler: sampler;var reflectionCubeSampler: texture_cube<f32>;
|
|
117
|
+
#else
|
|
118
|
+
var reflection2DSamplerSampler: sampler;var reflection2DSampler: texture_2d<f32>;
|
|
119
|
+
#endif
|
|
120
|
+
#ifdef REFLECTIONMAP_SKYBOX
|
|
121
|
+
varying vPositionUVW: vec3f;
|
|
122
|
+
#else
|
|
123
|
+
#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
|
|
124
|
+
varying vDirectionW: vec3f;
|
|
125
|
+
#endif
|
|
126
|
+
#endif
|
|
127
|
+
#include<reflectionFunction>
|
|
128
|
+
#endif
|
|
129
|
+
#include<imageProcessingDeclaration>
|
|
130
|
+
#include<imageProcessingFunctions>
|
|
131
|
+
#include<bumpFragmentMainFunctions>
|
|
132
|
+
#include<bumpFragmentFunctions>
|
|
133
|
+
#include<clipPlaneFragmentDeclaration>
|
|
134
|
+
#include<logDepthDeclaration>
|
|
135
|
+
#include<fogFragmentDeclaration>
|
|
136
|
+
#define CUSTOM_FRAGMENT_DEFINITIONS
|
|
137
|
+
@fragment
|
|
138
|
+
fn main(input: FragmentInputs)->FragmentOutputs {
|
|
139
|
+
#define CUSTOM_FRAGMENT_MAIN_BEGIN
|
|
140
|
+
#include<clipPlaneFragment>
|
|
141
|
+
var viewDirectionW: vec3f=normalize(scene.vEyePosition.xyz-fragmentInputs.vPositionW);var baseColor: vec4f= vec4f(1.,1.,1.,1.);var diffuseColor: vec3f=uniforms.vDiffuseColor.rgb;var alpha: f32=uniforms.vDiffuseColor.a;
|
|
142
|
+
#ifdef NORMAL
|
|
143
|
+
var normalW: vec3f=normalize(fragmentInputs.vNormalW);
|
|
144
|
+
#else
|
|
145
|
+
var normalW: vec3f=normalize(-cross(dpdx(fragmentInputs.vPositionW),dpdy(fragmentInputs.vPositionW)));
|
|
146
|
+
#endif
|
|
147
|
+
#include<bumpFragment>
|
|
148
|
+
#ifdef TWOSIDEDLIGHTING
|
|
149
|
+
normalW=select(-normalW,normalW,fragmentInputs.frontFacing);
|
|
150
|
+
#endif
|
|
151
|
+
#ifdef DIFFUSE
|
|
152
|
+
baseColor=textureSample(diffuseSampler,diffuseSamplerSampler,fragmentInputs.vDiffuseUV+uvOffset);
|
|
153
|
+
#if defined(ALPHATEST) && !defined(ALPHATEST_AFTERALLALPHACOMPUTATIONS)
|
|
154
|
+
if (baseColor.a<uniforms.alphaCutOff) {discard;}
|
|
155
|
+
#endif
|
|
156
|
+
#ifdef ALPHAFROMDIFFUSE
|
|
157
|
+
alpha*=baseColor.a;
|
|
158
|
+
#endif
|
|
159
|
+
#define CUSTOM_FRAGMENT_UPDATE_ALPHA
|
|
160
|
+
baseColor=vec4f(baseColor.rgb*uniforms.vDiffuseInfos.y,baseColor.a);
|
|
161
|
+
#endif
|
|
162
|
+
#if defined(DECAL) && !defined(DECAL_AFTER_DETAIL)
|
|
163
|
+
var decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);
|
|
164
|
+
#include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)
|
|
165
|
+
#endif
|
|
166
|
+
#include<depthPrePass>
|
|
167
|
+
#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
168
|
+
baseColor=vec4f(baseColor.rgb*fragmentInputs.vColor.rgb,baseColor.a);
|
|
169
|
+
#endif
|
|
170
|
+
#ifdef DETAIL
|
|
171
|
+
baseColor=vec4f(baseColor.rgb*2.0*mix(0.5,detailColor.r,uniforms.vDetailInfos.y),baseColor.a);
|
|
172
|
+
#endif
|
|
173
|
+
#if defined(DECAL) && defined(DECAL_AFTER_DETAIL)
|
|
174
|
+
var decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);
|
|
175
|
+
#include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)
|
|
176
|
+
#endif
|
|
177
|
+
#define CUSTOM_FRAGMENT_UPDATE_DIFFUSE
|
|
178
|
+
var baseAmbientColor: vec3f= vec3f(1.,1.,1.);
|
|
179
|
+
#ifdef AMBIENT
|
|
180
|
+
baseAmbientColor=textureSample(ambientSampler,ambientSamplerSampler,fragmentInputs.vAmbientUV+uvOffset).rgb*uniforms.vAmbientInfos.y;
|
|
181
|
+
#endif
|
|
182
|
+
#define CUSTOM_FRAGMENT_BEFORE_LIGHTS
|
|
183
|
+
var glossiness: f32=uniforms.vSpecularColor.a;var specularColor: vec3f=uniforms.vSpecularColor.rgb;
|
|
184
|
+
#ifdef SPECULARTERM
|
|
185
|
+
#ifdef SPECULAR
|
|
186
|
+
var specularMapColor: vec4f=textureSample(specularSampler,specularSamplerSampler,fragmentInputs.vSpecularUV+uvOffset);specularColor=specularMapColor.rgb;
|
|
187
|
+
#ifdef GLOSSINESS
|
|
188
|
+
glossiness=glossiness*specularMapColor.a;
|
|
189
|
+
#endif
|
|
190
|
+
#endif
|
|
191
|
+
#endif
|
|
192
|
+
var diffuseBase: vec3f= vec3f(0.,0.,0.);var info: lightingInfo;
|
|
193
|
+
#ifdef SPECULARTERM
|
|
194
|
+
var specularBase: vec3f= vec3f(0.,0.,0.);
|
|
195
|
+
#endif
|
|
196
|
+
var shadow: f32=1.;var aggShadow: f32=0.;var numLights: f32=0.;
|
|
197
|
+
#ifdef LIGHTMAP
|
|
198
|
+
var lightmapColor: vec4f=textureSample(lightmapSampler,lightmapSamplerSampler,fragmentInputs.vLightmapUV+uvOffset);
|
|
199
|
+
#ifdef RGBDLIGHTMAP
|
|
200
|
+
lightmapColor=vec4f(fromRGBD(lightmapColor),lightmapColor.a);
|
|
201
|
+
#endif
|
|
202
|
+
lightmapColor=vec4f(lightmapColor.rgb*uniforms.vLightmapInfos.y,lightmapColor.a);
|
|
203
|
+
#endif
|
|
204
|
+
#include<lightFragment>[0..maxSimultaneousLights]
|
|
205
|
+
aggShadow=aggShadow/numLights;var refractionColor: vec4f= vec4f(0.,0.,0.,1.);
|
|
206
|
+
#ifdef REFRACTION
|
|
207
|
+
var refractionVector: vec3f=normalize(refract(-viewDirectionW,normalW,uniforms.vRefractionInfos.y));
|
|
208
|
+
#ifdef REFRACTIONMAP_3D
|
|
209
|
+
#ifdef USE_LOCAL_REFRACTIONMAP_CUBIC
|
|
210
|
+
refractionVector=parallaxCorrectNormal(fragmentInputs.vPositionW,refractionVector,uniforms.vRefractionSize,uniforms.vRefractionPosition);
|
|
211
|
+
#endif
|
|
212
|
+
refractionVector.y=refractionVector.y*uniforms.vRefractionInfos.w;var refractionLookup: vec4f=textureSample(refractionCubeSampler,refractionCubeSamplerSampler,refractionVector);if (dot(refractionVector,viewDirectionW)<1.0) {refractionColor=refractionLookup;}
|
|
213
|
+
#else
|
|
214
|
+
var vRefractionUVW: vec3f= (uniforms.refractionMatrix*(scene.view* vec4f(fragmentInputs.vPositionW+refractionVector*uniforms.vRefractionInfos.z,1.0))).xyz;var refractionCoords: vec2f=vRefractionUVW.xy/vRefractionUVW.z;refractionCoords.y=1.0-refractionCoords.y;refractionColor=textureSample(refraction2DSampler,refraction2DSamplerSampler,refractionCoords);
|
|
215
|
+
#endif
|
|
216
|
+
#ifdef RGBDREFRACTION
|
|
217
|
+
refractionColor=vec4f(fromRGBD(refractionColor),refractionColor.a);
|
|
218
|
+
#endif
|
|
219
|
+
#ifdef IS_REFRACTION_LINEAR
|
|
220
|
+
refractionColor=vec4f(toGammaSpaceVec3(refractionColor.rgb),refractionColor.a);
|
|
221
|
+
#endif
|
|
222
|
+
refractionColor=vec4f(refractionColor.rgb*uniforms.vRefractionInfos.x,refractionColor.a);
|
|
223
|
+
#endif
|
|
224
|
+
var reflectionColor: vec4f= vec4f(0.,0.,0.,1.);
|
|
225
|
+
#ifdef REFLECTION
|
|
226
|
+
var vReflectionUVW: vec3f=computeReflectionCoords( vec4f(fragmentInputs.vPositionW,1.0),normalW);
|
|
227
|
+
#ifdef REFLECTIONMAP_OPPOSITEZ
|
|
228
|
+
vReflectionUVW=vec3f(vReflectionUVW.x,vReflectionUVW.y,vReflectionUVW.z*-1.0);
|
|
229
|
+
#endif
|
|
230
|
+
#ifdef REFLECTIONMAP_3D
|
|
231
|
+
#ifdef ROUGHNESS
|
|
232
|
+
var bias: f32=uniforms.vReflectionInfos.y;
|
|
233
|
+
#ifdef SPECULARTERM
|
|
234
|
+
#ifdef SPECULAR
|
|
235
|
+
#ifdef GLOSSINESS
|
|
236
|
+
bias*=(1.0-specularMapColor.a);
|
|
237
|
+
#endif
|
|
238
|
+
#endif
|
|
239
|
+
#endif
|
|
240
|
+
reflectionColor=textureSampleLevel(reflectionCubeSampler,reflectionCubeSamplerSampler,vReflectionUVW,bias);
|
|
241
|
+
#else
|
|
242
|
+
reflectionColor=textureSample(reflectionCubeSampler,reflectionCubeSamplerSampler,vReflectionUVW);
|
|
243
|
+
#endif
|
|
244
|
+
#else
|
|
245
|
+
var coords: vec2f=vReflectionUVW.xy;
|
|
246
|
+
#ifdef REFLECTIONMAP_PROJECTION
|
|
247
|
+
coords/=vReflectionUVW.z;
|
|
248
|
+
#endif
|
|
249
|
+
coords.y=1.0-coords.y;reflectionColor=textureSample(reflection2DSampler,reflection2DSamplerSampler,coords);
|
|
250
|
+
#endif
|
|
251
|
+
#ifdef RGBDREFLECTION
|
|
252
|
+
reflectionColor=vec4f(fromRGBD(reflectionColor),reflectionColor.a);
|
|
253
|
+
#endif
|
|
254
|
+
#ifdef IS_REFLECTION_LINEAR
|
|
255
|
+
reflectionColor=vec4f(toGammaSpaceVec3(reflectionColor.rgb),reflectionColor.a);
|
|
256
|
+
#endif
|
|
257
|
+
reflectionColor=vec4f(reflectionColor.rgb*uniforms.vReflectionInfos.x,reflectionColor.a);
|
|
258
|
+
#ifdef REFLECTIONFRESNEL
|
|
259
|
+
var reflectionFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.reflectionRightColor.a,uniforms.reflectionLeftColor.a);
|
|
260
|
+
#ifdef REFLECTIONFRESNELFROMSPECULAR
|
|
261
|
+
#ifdef SPECULARTERM
|
|
262
|
+
reflectionColor=vec4f(reflectionColor.rgb*specularColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);
|
|
263
|
+
#else
|
|
264
|
+
reflectionColor=vec4f(reflectionColor.rgb*uniforms.reflectionLeftColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);
|
|
265
|
+
#endif
|
|
266
|
+
#else
|
|
267
|
+
reflectionColor=vec4f(reflectionColor.rgb*uniforms.reflectionLeftColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);
|
|
268
|
+
#endif
|
|
269
|
+
#endif
|
|
270
|
+
#endif
|
|
271
|
+
#ifdef REFRACTIONFRESNEL
|
|
272
|
+
var refractionFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.refractionRightColor.a,uniforms.refractionLeftColor.a);refractionColor=vec4f(refractionColor.rgb*uniforms.refractionLeftColor.rgb*(1.0-refractionFresnelTerm)+refractionFresnelTerm*uniforms.refractionRightColor.rgb,refractionColor.a);
|
|
273
|
+
#endif
|
|
274
|
+
#ifdef OPACITY
|
|
275
|
+
var opacityMap: vec4f=textureSample(opacitySampler,opacitySamplerSampler,fragmentInputs.vOpacityUV+uvOffset);
|
|
276
|
+
#ifdef OPACITYRGB
|
|
277
|
+
opacityMap=vec4f(opacityMap.rgb* vec3f(0.3,0.59,0.11),opacityMap.a);alpha*=(opacityMap.x+opacityMap.y+opacityMap.z)* uniforms.vOpacityInfos.y;
|
|
278
|
+
#else
|
|
279
|
+
alpha*=opacityMap.a*uniforms.vOpacityInfos.y;
|
|
280
|
+
#endif
|
|
281
|
+
#endif
|
|
282
|
+
#if defined(VERTEXALPHA) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
283
|
+
alpha*=fragmentInputs.vColor.a;
|
|
284
|
+
#endif
|
|
285
|
+
#ifdef OPACITYFRESNEL
|
|
286
|
+
var opacityFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.opacityParts.z,uniforms.opacityParts.w);alpha+=uniforms.opacityParts.x*(1.0-opacityFresnelTerm)+opacityFresnelTerm*uniforms.opacityParts.y;
|
|
287
|
+
#endif
|
|
288
|
+
#ifdef ALPHATEST
|
|
289
|
+
#ifdef ALPHATEST_AFTERALLALPHACOMPUTATIONS
|
|
290
|
+
if (alpha<uniforms.alphaCutOff) {discard;}
|
|
291
|
+
#endif
|
|
292
|
+
#ifndef ALPHABLEND
|
|
293
|
+
alpha=1.0;
|
|
294
|
+
#endif
|
|
295
|
+
#endif
|
|
296
|
+
var emissiveColor: vec3f=uniforms.vEmissiveColor;
|
|
297
|
+
#ifdef EMISSIVE
|
|
298
|
+
emissiveColor+=textureSample(emissiveSampler,emissiveSamplerSampler,fragmentInputs.vEmissiveUV+uvOffset).rgb*uniforms.vEmissiveInfos.y;
|
|
299
|
+
#endif
|
|
300
|
+
#ifdef EMISSIVEFRESNEL
|
|
301
|
+
var emissiveFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.emissiveRightColor.a,uniforms.emissiveLeftColor.a);emissiveColor*=uniforms.emissiveLeftColor.rgb*(1.0-emissiveFresnelTerm)+emissiveFresnelTerm*uniforms.emissiveRightColor.rgb;
|
|
302
|
+
#endif
|
|
303
|
+
#ifdef DIFFUSEFRESNEL
|
|
304
|
+
var diffuseFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.diffuseRightColor.a,uniforms.diffuseLeftColor.a);diffuseBase*=uniforms.diffuseLeftColor.rgb*(1.0-diffuseFresnelTerm)+diffuseFresnelTerm*uniforms.diffuseRightColor.rgb;
|
|
305
|
+
#endif
|
|
306
|
+
#ifdef EMISSIVEASILLUMINATION
|
|
307
|
+
var finalDiffuse: vec3f=clamp(diffuseBase*diffuseColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;
|
|
308
|
+
#else
|
|
309
|
+
#ifdef LINKEMISSIVEWITHDIFFUSE
|
|
310
|
+
var finalDiffuse: vec3f=clamp((diffuseBase+emissiveColor)*diffuseColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;
|
|
311
|
+
#else
|
|
312
|
+
var finalDiffuse: vec3f=clamp(diffuseBase*diffuseColor+emissiveColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;
|
|
313
|
+
#endif
|
|
314
|
+
#endif
|
|
315
|
+
#ifdef SPECULARTERM
|
|
316
|
+
var finalSpecular: vec3f=specularBase*specularColor;
|
|
317
|
+
#ifdef SPECULAROVERALPHA
|
|
318
|
+
alpha=clamp(alpha+dot(finalSpecular, vec3f(0.3,0.59,0.11)),0.0,1.0);
|
|
319
|
+
#endif
|
|
320
|
+
#else
|
|
321
|
+
var finalSpecular: vec3f= vec3f(0.0);
|
|
322
|
+
#endif
|
|
323
|
+
#ifdef REFLECTIONOVERALPHA
|
|
324
|
+
alpha=clamp(alpha+dot(reflectionColor.rgb, vec3f(0.3,0.59,0.11)),0.0,1.0);
|
|
325
|
+
#endif
|
|
326
|
+
#ifdef EMISSIVEASILLUMINATION
|
|
327
|
+
var color: vec4f= vec4f(clamp(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+emissiveColor+refractionColor.rgb,0.0,1.0),alpha);
|
|
328
|
+
#else
|
|
329
|
+
var color: vec4f= vec4f(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+refractionColor.rgb,alpha);
|
|
330
|
+
#endif
|
|
331
|
+
#ifdef LIGHTMAP
|
|
332
|
+
#ifndef LIGHTMAPEXCLUDED
|
|
333
|
+
#ifdef USELIGHTMAPASSHADOWMAP
|
|
334
|
+
color=vec4f(color.rgb*lightmapColor.rgb,color.a);
|
|
335
|
+
#else
|
|
336
|
+
color=vec4f(color.rgb+lightmapColor.rgb,color.a);
|
|
337
|
+
#endif
|
|
338
|
+
#endif
|
|
339
|
+
#endif
|
|
340
|
+
#define CUSTOM_FRAGMENT_BEFORE_FOG
|
|
341
|
+
color=vec4f(max(color.rgb,vec3f(0.)),color.a);
|
|
342
|
+
#include<logDepthFragment>
|
|
343
|
+
#include<fogFragment>
|
|
344
|
+
#ifdef IMAGEPROCESSINGPOSTPROCESS
|
|
345
|
+
color=vec4f(toLinearSpaceVec3(color.rgb),color.a);
|
|
346
|
+
#else
|
|
347
|
+
#ifdef IMAGEPROCESSING
|
|
348
|
+
color=vec4f(toLinearSpaceVec3(color.rgb),color.a);color=applyImageProcessing(color);
|
|
349
|
+
#endif
|
|
350
|
+
#endif
|
|
351
|
+
color=vec4f(color.rgb,color.a*mesh.visibility);
|
|
352
|
+
#ifdef PREMULTIPLYALPHA
|
|
353
|
+
color=vec4f(color.rgb*color.a, color.a);
|
|
354
|
+
#endif
|
|
355
|
+
#define CUSTOM_FRAGMENT_BEFORE_FRAGCOLOR
|
|
356
|
+
#ifdef PREPASS
|
|
357
|
+
var writeGeometryInfo: f32=select(0.0,1.0,color.a>0.4);var fragData: array<vec4<f32>,SCENE_MRT_COUNT>;
|
|
358
|
+
#ifdef PREPASS_COLOR
|
|
359
|
+
fragData[PREPASS_COLOR_INDEX]=color;
|
|
360
|
+
#endif
|
|
361
|
+
#ifdef PREPASS_POSITION
|
|
362
|
+
fragData[PREPASS_POSITION_INDEX]=vec4f(fragmentInputs.vPositionW,writeGeometryInfo);
|
|
363
|
+
#endif
|
|
364
|
+
#ifdef PREPASS_LOCAL_POSITION
|
|
365
|
+
fragData[PREPASS_LOCAL_POSITION_INDEX]=vec4f(fragmentInputs.vPosition,writeGeometryInfo);
|
|
366
|
+
#endif
|
|
367
|
+
#ifdef PREPASS_VELOCITY
|
|
368
|
+
var a: vec2f=(fragmentInputs.vCurrentPosition.xy/fragmentInputs.vCurrentPosition.w)*0.5+0.5;var b: vec2f=(fragmentInputs.vPreviousPosition.xy/fragmentInputs.vPreviousPosition.w)*0.5+0.5;var velocity: vec2f=abs(a-b);velocity= vec2f(pow(velocity.x,1.0/3.0),pow(velocity.y,1.0/3.0))*sign(a-b)*0.5+0.5;fragData[PREPASS_VELOCITY_INDEX]= vec4f(velocity,0.0,writeGeometryInfo);
|
|
369
|
+
#elif defined(PREPASS_VELOCITY_LINEAR)
|
|
370
|
+
var velocity : vec2f=vec2f(0.5)*((fragmentInputs.vPreviousPosition.xy/fragmentInputs.vPreviousPosition.w) -
|
|
371
|
+
(fragmentInputs.vCurrentPosition.xy/fragmentInputs.vCurrentPosition.w));fragData[PREPASS_VELOCITY_LINEAR_INDEX]=vec4f(velocity,0.0,writeGeometryInfo);
|
|
372
|
+
#endif
|
|
373
|
+
#ifdef PREPASS_IRRADIANCE
|
|
374
|
+
fragData[PREPASS_IRRADIANCE_INDEX]=vec4f(0.0,0.0,0.0,writeGeometryInfo);
|
|
375
|
+
#endif
|
|
376
|
+
#ifdef PREPASS_DEPTH
|
|
377
|
+
fragData[PREPASS_DEPTH_INDEX]=vec4f(fragmentInputs.vViewPos.z,0.0,0.0,writeGeometryInfo);
|
|
378
|
+
#endif
|
|
379
|
+
#ifdef PREPASS_SCREENSPACE_DEPTH
|
|
380
|
+
fragData[PREPASS_SCREENSPACE_DEPTH_INDEX]=vec4f(fragmentInputs.position.z,0.0,0.0,writeGeometryInfo);
|
|
381
|
+
#endif
|
|
382
|
+
#ifdef PREPASS_NORMAL
|
|
383
|
+
#ifdef PREPASS_NORMAL_WORLDSPACE
|
|
384
|
+
fragData[PREPASS_NORMAL_INDEX]=vec4f(normalW,writeGeometryInfo);
|
|
385
|
+
#else
|
|
386
|
+
fragData[PREPASS_NORMAL_INDEX]=vec4f(normalize((scene.view*vec4f(normalW,0.0)).rgb),writeGeometryInfo);
|
|
387
|
+
#endif
|
|
388
|
+
#endif
|
|
389
|
+
#ifdef PREPASS_WORLD_NORMAL
|
|
390
|
+
fragData[PREPASS_WORLD_NORMAL_INDEX]=vec4f(normalW*0.5+0.5,writeGeometryInfo);
|
|
391
|
+
#endif
|
|
392
|
+
#ifdef PREPASS_ALBEDO
|
|
393
|
+
fragData[PREPASS_ALBEDO_INDEX]=vec4f(baseColor.rgb,writeGeometryInfo);
|
|
394
|
+
#endif
|
|
395
|
+
#ifdef PREPASS_ALBEDO_SQRT
|
|
396
|
+
fragData[PREPASS_ALBEDO_SQRT_INDEX]=vec4f(sqrt(baseColor.rgb),writeGeometryInfo);
|
|
397
|
+
#endif
|
|
398
|
+
#ifdef PREPASS_REFLECTIVITY
|
|
399
|
+
#if defined(SPECULAR)
|
|
400
|
+
fragData[PREPASS_REFLECTIVITY_INDEX]=vec4f(toLinearSpaceVec4(specularMapColor))*writeGeometryInfo;
|
|
401
|
+
#else
|
|
402
|
+
fragData[PREPASS_REFLECTIVITY_INDEX]=vec4f(toLinearSpaceVec3(specularColor),1.0)*writeGeometryInfo;
|
|
403
|
+
#endif
|
|
404
|
+
#endif
|
|
405
|
+
#if SCENE_MRT_COUNT>0
|
|
406
|
+
fragmentOutputs.fragData0=fragData[0];
|
|
407
|
+
#endif
|
|
408
|
+
#if SCENE_MRT_COUNT>1
|
|
409
|
+
fragmentOutputs.fragData1=fragData[1];
|
|
410
|
+
#endif
|
|
411
|
+
#if SCENE_MRT_COUNT>2
|
|
412
|
+
fragmentOutputs.fragData2=fragData[2];
|
|
413
|
+
#endif
|
|
414
|
+
#if SCENE_MRT_COUNT>3
|
|
415
|
+
fragmentOutputs.fragData3=fragData[3];
|
|
416
|
+
#endif
|
|
417
|
+
#if SCENE_MRT_COUNT>4
|
|
418
|
+
fragmentOutputs.fragData4=fragData[4];
|
|
419
|
+
#endif
|
|
420
|
+
#if SCENE_MRT_COUNT>5
|
|
421
|
+
fragmentOutputs.fragData5=fragData[5];
|
|
422
|
+
#endif
|
|
423
|
+
#if SCENE_MRT_COUNT>6
|
|
424
|
+
fragmentOutputs.fragData6=fragData[6];
|
|
425
|
+
#endif
|
|
426
|
+
#if SCENE_MRT_COUNT>7
|
|
427
|
+
fragmentOutputs.fragData7=fragData[7];
|
|
428
|
+
#endif
|
|
429
|
+
#endif
|
|
430
|
+
#if !defined(PREPASS) && !defined(ORDER_INDEPENDENT_TRANSPARENCY)
|
|
431
|
+
fragmentOutputs.color=color;
|
|
432
|
+
#endif
|
|
433
|
+
#include<oitFragment>
|
|
434
|
+
#if ORDER_INDEPENDENT_TRANSPARENCY
|
|
435
|
+
if (fragDepth==nearestDepth) {fragmentOutputs.frontColor=vec4f(fragmentOutputs.frontColor.rgb+color.rgb*color.a*alphaMultiplier,1.0-alphaMultiplier*(1.0-color.a));} else {fragmentOutputs.backColor+=color;}
|
|
436
|
+
#endif
|
|
437
|
+
#define CUSTOM_FRAGMENT_MAIN_END
|
|
438
|
+
}
|
|
439
|
+
`;
|
|
440
|
+
// Sideeffect
|
|
441
|
+
ShaderStore.ShadersStoreWGSL[name] = shader;
|
|
442
|
+
/** @internal */
|
|
443
|
+
const defaultPixelShaderWGSL = { name, shader };
|
|
444
|
+
|
|
445
|
+
export { defaultPixelShaderWGSL };
|
|
446
|
+
//# sourceMappingURL=default.fragment-D3LhG5le.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.fragment-D3LhG5le.esm.js","sources":["../../../../../dev/core/dist/ShadersWGSL/ShadersInclude/lightsFragmentFunctions.js","../../../../../dev/core/dist/ShadersWGSL/default.fragment.js"],"sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../../Engines/shaderStore\";\nconst name = \"lightsFragmentFunctions\";\nconst shader = `struct lightingInfo\n{diffuse: vec3f,\n#ifdef SPECULARTERM\nspecular: vec3f,\n#endif\n#ifdef NDOTL\nndl: f32,\n#endif\n};fn computeLighting(viewDirectionW: vec3f,vNormal: vec3f,lightData: vec4f,diffuseColor: vec3f,specularColor: vec3f,range: f32,glossiness: f32)->lightingInfo {var result: lightingInfo;var lightVectorW: vec3f;var attenuation: f32=1.0;if (lightData.w==0.)\n{var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var attenuation: f32=max(0.,1.0-length(direction)/range);lightVectorW=normalize(direction);}\nelse\n{lightVectorW=normalize(-lightData.xyz);}\nvar ndl: f32=max(0.,dot(vNormal,lightVectorW));\n#ifdef NDOTL\nresult.ndl=ndl;\n#endif\nresult.diffuse=ndl*diffuseColor*attenuation;\n#ifdef SPECULARTERM\nvar angleW: vec3f=normalize(viewDirectionW+lightVectorW);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor*attenuation;\n#endif\nreturn result;}\nfn getAttenuation(cosAngle: f32,exponent: f32)->f32 {return max(0.,pow(cosAngle,exponent));}\nfn getIESAttenuation(cosAngle: f32,iesLightTexture: texture_2d<f32>,iesLightTextureSampler: sampler)->f32 {var angle=acos(cosAngle)/PI;return textureSampleLevel(iesLightTexture,iesLightTextureSampler,vec2f(angle,0),0.).r;}\nfn computeBasicSpotLighting(viewDirectionW: vec3f,lightVectorW: vec3f,vNormal: vec3f,attenuation: f32,diffuseColor: vec3f,specularColor: vec3f,glossiness: f32)->lightingInfo {var result: lightingInfo;var ndl: f32=max(0.,dot(vNormal,lightVectorW));\n#ifdef NDOTL\nresult.ndl=ndl;\n#endif\nresult.diffuse=ndl*diffuseColor*attenuation;\n#ifdef SPECULARTERM\nvar angleW: vec3f=normalize(viewDirectionW+lightVectorW);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor*attenuation;\n#endif\nreturn result;}\nfn computeIESSpotLighting(viewDirectionW: vec3f,vNormal: vec3f,lightData: vec4f,lightDirection: vec4f,diffuseColor: vec3f,specularColor: vec3f,range: f32,glossiness: f32,iesLightTexture: texture_2d<f32>,iesLightTextureSampler: sampler)->lightingInfo {var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var lightVectorW: vec3f=normalize(direction);var attenuation: f32=max(0.,1.0-length(direction)/range);var dotProduct=dot(lightDirection.xyz,-lightVectorW);var cosAngle: f32=max(0.,dotProduct);if (cosAngle>=lightDirection.w)\n{attenuation*=getIESAttenuation(dotProduct,iesLightTexture,iesLightTextureSampler);return computeBasicSpotLighting(viewDirectionW,lightVectorW,vNormal,attenuation,diffuseColor,specularColor,glossiness);}\nvar result: lightingInfo;result.diffuse=vec3f(0.);\n#ifdef SPECULARTERM\nresult.specular=vec3f(0.);\n#endif\n#ifdef NDOTL\nresult.ndl=0.;\n#endif\nreturn result;}\nfn computeSpotLighting(viewDirectionW: vec3f,vNormal: vec3f ,lightData: vec4f,lightDirection: vec4f,diffuseColor: vec3f,specularColor: vec3f,range: f32,glossiness: f32)->lightingInfo {var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var lightVectorW: vec3f=normalize(direction);var attenuation: f32=max(0.,1.0-length(direction)/range);var cosAngle: f32=max(0.,dot(lightDirection.xyz,-lightVectorW));if (cosAngle>=lightDirection.w)\n{attenuation*=getAttenuation(cosAngle,lightData.w);return computeBasicSpotLighting(viewDirectionW,lightVectorW,vNormal,attenuation,diffuseColor,specularColor,glossiness);}\nvar result: lightingInfo;result.diffuse=vec3f(0.);\n#ifdef SPECULARTERM\nresult.specular=vec3f(0.);\n#endif\n#ifdef NDOTL\nresult.ndl=0.;\n#endif\nreturn result;}\nfn computeHemisphericLighting(viewDirectionW: vec3f,vNormal: vec3f,lightData: vec4f,diffuseColor: vec3f,specularColor: vec3f,groundColor: vec3f,glossiness: f32)->lightingInfo {var result: lightingInfo;var ndl: f32=dot(vNormal,lightData.xyz)*0.5+0.5;\n#ifdef NDOTL\nresult.ndl=ndl;\n#endif\nresult.diffuse=mix(groundColor,diffuseColor,ndl);\n#ifdef SPECULARTERM\nvar angleW: vec3f=normalize(viewDirectionW+lightData.xyz);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor;\n#endif\nreturn result;}\nfn computeProjectionTextureDiffuseLighting(projectionLightTexture: texture_2d<f32>,projectionLightSampler: sampler,textureProjectionMatrix: mat4x4f,posW: vec3f)->vec3f {var strq: vec4f=textureProjectionMatrix*vec4f(posW,1.0);strq/=strq.w;var textureColor: vec3f=textureSample(projectionLightTexture,projectionLightSampler,strq.xy).rgb;return textureColor;}`;\n// Sideeffect\nShaderStore.IncludesShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const lightsFragmentFunctionsWGSL = { name, shader };\n//# sourceMappingURL=lightsFragmentFunctions.js.map","// Do not edit.\nimport { ShaderStore } from \"../Engines/shaderStore\";\nimport \"./ShadersInclude/defaultUboDeclaration\";\nimport \"./ShadersInclude/prePassDeclaration\";\nimport \"./ShadersInclude/oitDeclaration\";\nimport \"./ShadersInclude/mainUVVaryingDeclaration\";\nimport \"./ShadersInclude/helperFunctions\";\nimport \"./ShadersInclude/lightUboDeclaration\";\nimport \"./ShadersInclude/lightsFragmentFunctions\";\nimport \"./ShadersInclude/shadowsFragmentFunctions\";\nimport \"./ShadersInclude/samplerFragmentDeclaration\";\nimport \"./ShadersInclude/fresnelFunction\";\nimport \"./ShadersInclude/reflectionFunction\";\nimport \"./ShadersInclude/imageProcessingDeclaration\";\nimport \"./ShadersInclude/imageProcessingFunctions\";\nimport \"./ShadersInclude/bumpFragmentMainFunctions\";\nimport \"./ShadersInclude/bumpFragmentFunctions\";\nimport \"./ShadersInclude/clipPlaneFragmentDeclaration\";\nimport \"./ShadersInclude/logDepthDeclaration\";\nimport \"./ShadersInclude/fogFragmentDeclaration\";\nimport \"./ShadersInclude/clipPlaneFragment\";\nimport \"./ShadersInclude/bumpFragment\";\nimport \"./ShadersInclude/decalFragment\";\nimport \"./ShadersInclude/depthPrePass\";\nimport \"./ShadersInclude/lightFragment\";\nimport \"./ShadersInclude/logDepthFragment\";\nimport \"./ShadersInclude/fogFragment\";\nimport \"./ShadersInclude/oitFragment\";\nconst name = \"defaultPixelShader\";\nconst shader = `#include<defaultUboDeclaration>\n#include<prePassDeclaration>[SCENE_MRT_COUNT]\n#include<oitDeclaration>\n#define CUSTOM_FRAGMENT_BEGIN\nvarying vPositionW: vec3f;\n#ifdef NORMAL\nvarying vNormalW: vec3f;\n#endif\n#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)\nvarying vColor: vec4f;\n#endif\n#include<mainUVVaryingDeclaration>[1..7]\n#include<helperFunctions>\n#include<lightUboDeclaration>[0..maxSimultaneousLights]\n#include<lightsFragmentFunctions>\n#include<shadowsFragmentFunctions>\n#include<samplerFragmentDeclaration>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse,_SAMPLERNAME_,diffuse)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_SAMPLERNAME_,ambient)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_SAMPLERNAME_,opacity)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_SAMPLERNAME_,emissive)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_SAMPLERNAME_,lightmap)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_SAMPLERNAME_,decal)\n#ifdef REFRACTION\n#ifdef REFRACTIONMAP_3D\nvar refractionCubeSamplerSampler: sampler;var refractionCubeSampler: texture_cube<f32>;\n#else\nvar refraction2DSamplerSampler: sampler;var refraction2DSampler: texture_2d<f32>;\n#endif\n#endif\n#if defined(SPECULARTERM)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular,_SAMPLERNAME_,specular)\n#endif\n#include<fresnelFunction>\n#ifdef REFLECTION\n#ifdef REFLECTIONMAP_3D\nvar reflectionCubeSamplerSampler: sampler;var reflectionCubeSampler: texture_cube<f32>;\n#else\nvar reflection2DSamplerSampler: sampler;var reflection2DSampler: texture_2d<f32>;\n#endif\n#ifdef REFLECTIONMAP_SKYBOX\nvarying vPositionUVW: vec3f;\n#else\n#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)\nvarying vDirectionW: vec3f;\n#endif\n#endif\n#include<reflectionFunction>\n#endif\n#include<imageProcessingDeclaration>\n#include<imageProcessingFunctions>\n#include<bumpFragmentMainFunctions>\n#include<bumpFragmentFunctions>\n#include<clipPlaneFragmentDeclaration>\n#include<logDepthDeclaration>\n#include<fogFragmentDeclaration>\n#define CUSTOM_FRAGMENT_DEFINITIONS\n@fragment\nfn main(input: FragmentInputs)->FragmentOutputs {\n#define CUSTOM_FRAGMENT_MAIN_BEGIN\n#include<clipPlaneFragment>\nvar viewDirectionW: vec3f=normalize(scene.vEyePosition.xyz-fragmentInputs.vPositionW);var baseColor: vec4f= vec4f(1.,1.,1.,1.);var diffuseColor: vec3f=uniforms.vDiffuseColor.rgb;var alpha: f32=uniforms.vDiffuseColor.a;\n#ifdef NORMAL\nvar normalW: vec3f=normalize(fragmentInputs.vNormalW);\n#else\nvar normalW: vec3f=normalize(-cross(dpdx(fragmentInputs.vPositionW),dpdy(fragmentInputs.vPositionW)));\n#endif\n#include<bumpFragment>\n#ifdef TWOSIDEDLIGHTING\nnormalW=select(-normalW,normalW,fragmentInputs.frontFacing);\n#endif\n#ifdef DIFFUSE\nbaseColor=textureSample(diffuseSampler,diffuseSamplerSampler,fragmentInputs.vDiffuseUV+uvOffset);\n#if defined(ALPHATEST) && !defined(ALPHATEST_AFTERALLALPHACOMPUTATIONS)\nif (baseColor.a<uniforms.alphaCutOff) {discard;}\n#endif\n#ifdef ALPHAFROMDIFFUSE\nalpha*=baseColor.a;\n#endif\n#define CUSTOM_FRAGMENT_UPDATE_ALPHA\nbaseColor=vec4f(baseColor.rgb*uniforms.vDiffuseInfos.y,baseColor.a);\n#endif\n#if defined(DECAL) && !defined(DECAL_AFTER_DETAIL)\nvar decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);\n#include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)\n#endif\n#include<depthPrePass>\n#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)\nbaseColor=vec4f(baseColor.rgb*fragmentInputs.vColor.rgb,baseColor.a);\n#endif\n#ifdef DETAIL\nbaseColor=vec4f(baseColor.rgb*2.0*mix(0.5,detailColor.r,uniforms.vDetailInfos.y),baseColor.a);\n#endif\n#if defined(DECAL) && defined(DECAL_AFTER_DETAIL)\nvar decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);\n#include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)\n#endif\n#define CUSTOM_FRAGMENT_UPDATE_DIFFUSE\nvar baseAmbientColor: vec3f= vec3f(1.,1.,1.);\n#ifdef AMBIENT\nbaseAmbientColor=textureSample(ambientSampler,ambientSamplerSampler,fragmentInputs.vAmbientUV+uvOffset).rgb*uniforms.vAmbientInfos.y;\n#endif\n#define CUSTOM_FRAGMENT_BEFORE_LIGHTS\nvar glossiness: f32=uniforms.vSpecularColor.a;var specularColor: vec3f=uniforms.vSpecularColor.rgb;\n#ifdef SPECULARTERM\n#ifdef SPECULAR\nvar specularMapColor: vec4f=textureSample(specularSampler,specularSamplerSampler,fragmentInputs.vSpecularUV+uvOffset);specularColor=specularMapColor.rgb;\n#ifdef GLOSSINESS\nglossiness=glossiness*specularMapColor.a;\n#endif\n#endif\n#endif\nvar diffuseBase: vec3f= vec3f(0.,0.,0.);var info: lightingInfo;\n#ifdef SPECULARTERM\nvar specularBase: vec3f= vec3f(0.,0.,0.);\n#endif\nvar shadow: f32=1.;var aggShadow: f32=0.;var numLights: f32=0.;\n#ifdef LIGHTMAP\nvar lightmapColor: vec4f=textureSample(lightmapSampler,lightmapSamplerSampler,fragmentInputs.vLightmapUV+uvOffset);\n#ifdef RGBDLIGHTMAP\nlightmapColor=vec4f(fromRGBD(lightmapColor),lightmapColor.a);\n#endif\nlightmapColor=vec4f(lightmapColor.rgb*uniforms.vLightmapInfos.y,lightmapColor.a);\n#endif\n#include<lightFragment>[0..maxSimultaneousLights]\naggShadow=aggShadow/numLights;var refractionColor: vec4f= vec4f(0.,0.,0.,1.);\n#ifdef REFRACTION\nvar refractionVector: vec3f=normalize(refract(-viewDirectionW,normalW,uniforms.vRefractionInfos.y));\n#ifdef REFRACTIONMAP_3D\n#ifdef USE_LOCAL_REFRACTIONMAP_CUBIC\nrefractionVector=parallaxCorrectNormal(fragmentInputs.vPositionW,refractionVector,uniforms.vRefractionSize,uniforms.vRefractionPosition);\n#endif\nrefractionVector.y=refractionVector.y*uniforms.vRefractionInfos.w;var refractionLookup: vec4f=textureSample(refractionCubeSampler,refractionCubeSamplerSampler,refractionVector);if (dot(refractionVector,viewDirectionW)<1.0) {refractionColor=refractionLookup;}\n#else\nvar vRefractionUVW: vec3f= (uniforms.refractionMatrix*(scene.view* vec4f(fragmentInputs.vPositionW+refractionVector*uniforms.vRefractionInfos.z,1.0))).xyz;var refractionCoords: vec2f=vRefractionUVW.xy/vRefractionUVW.z;refractionCoords.y=1.0-refractionCoords.y;refractionColor=textureSample(refraction2DSampler,refraction2DSamplerSampler,refractionCoords);\n#endif\n#ifdef RGBDREFRACTION\nrefractionColor=vec4f(fromRGBD(refractionColor),refractionColor.a);\n#endif\n#ifdef IS_REFRACTION_LINEAR\nrefractionColor=vec4f(toGammaSpaceVec3(refractionColor.rgb),refractionColor.a);\n#endif\nrefractionColor=vec4f(refractionColor.rgb*uniforms.vRefractionInfos.x,refractionColor.a);\n#endif\nvar reflectionColor: vec4f= vec4f(0.,0.,0.,1.);\n#ifdef REFLECTION\nvar vReflectionUVW: vec3f=computeReflectionCoords( vec4f(fragmentInputs.vPositionW,1.0),normalW);\n#ifdef REFLECTIONMAP_OPPOSITEZ\nvReflectionUVW=vec3f(vReflectionUVW.x,vReflectionUVW.y,vReflectionUVW.z*-1.0);\n#endif\n#ifdef REFLECTIONMAP_3D\n#ifdef ROUGHNESS\nvar bias: f32=uniforms.vReflectionInfos.y;\n#ifdef SPECULARTERM\n#ifdef SPECULAR\n#ifdef GLOSSINESS\nbias*=(1.0-specularMapColor.a);\n#endif\n#endif\n#endif\nreflectionColor=textureSampleLevel(reflectionCubeSampler,reflectionCubeSamplerSampler,vReflectionUVW,bias);\n#else\nreflectionColor=textureSample(reflectionCubeSampler,reflectionCubeSamplerSampler,vReflectionUVW);\n#endif\n#else\nvar coords: vec2f=vReflectionUVW.xy;\n#ifdef REFLECTIONMAP_PROJECTION\ncoords/=vReflectionUVW.z;\n#endif\ncoords.y=1.0-coords.y;reflectionColor=textureSample(reflection2DSampler,reflection2DSamplerSampler,coords);\n#endif\n#ifdef RGBDREFLECTION\nreflectionColor=vec4f(fromRGBD(reflectionColor),reflectionColor.a);\n#endif\n#ifdef IS_REFLECTION_LINEAR\nreflectionColor=vec4f(toGammaSpaceVec3(reflectionColor.rgb),reflectionColor.a);\n#endif\nreflectionColor=vec4f(reflectionColor.rgb*uniforms.vReflectionInfos.x,reflectionColor.a);\n#ifdef REFLECTIONFRESNEL\nvar reflectionFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.reflectionRightColor.a,uniforms.reflectionLeftColor.a);\n#ifdef REFLECTIONFRESNELFROMSPECULAR\n#ifdef SPECULARTERM\nreflectionColor=vec4f(reflectionColor.rgb*specularColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);\n#else\nreflectionColor=vec4f(reflectionColor.rgb*uniforms.reflectionLeftColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);\n#endif\n#else\nreflectionColor=vec4f(reflectionColor.rgb*uniforms.reflectionLeftColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);\n#endif\n#endif\n#endif\n#ifdef REFRACTIONFRESNEL\nvar refractionFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.refractionRightColor.a,uniforms.refractionLeftColor.a);refractionColor=vec4f(refractionColor.rgb*uniforms.refractionLeftColor.rgb*(1.0-refractionFresnelTerm)+refractionFresnelTerm*uniforms.refractionRightColor.rgb,refractionColor.a);\n#endif\n#ifdef OPACITY\nvar opacityMap: vec4f=textureSample(opacitySampler,opacitySamplerSampler,fragmentInputs.vOpacityUV+uvOffset);\n#ifdef OPACITYRGB\nopacityMap=vec4f(opacityMap.rgb* vec3f(0.3,0.59,0.11),opacityMap.a);alpha*=(opacityMap.x+opacityMap.y+opacityMap.z)* uniforms.vOpacityInfos.y;\n#else\nalpha*=opacityMap.a*uniforms.vOpacityInfos.y;\n#endif\n#endif\n#if defined(VERTEXALPHA) || defined(INSTANCESCOLOR) && defined(INSTANCES)\nalpha*=fragmentInputs.vColor.a;\n#endif\n#ifdef OPACITYFRESNEL\nvar opacityFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.opacityParts.z,uniforms.opacityParts.w);alpha+=uniforms.opacityParts.x*(1.0-opacityFresnelTerm)+opacityFresnelTerm*uniforms.opacityParts.y;\n#endif\n#ifdef ALPHATEST\n#ifdef ALPHATEST_AFTERALLALPHACOMPUTATIONS\nif (alpha<uniforms.alphaCutOff) {discard;}\n#endif\n#ifndef ALPHABLEND\nalpha=1.0;\n#endif\n#endif\nvar emissiveColor: vec3f=uniforms.vEmissiveColor;\n#ifdef EMISSIVE\nemissiveColor+=textureSample(emissiveSampler,emissiveSamplerSampler,fragmentInputs.vEmissiveUV+uvOffset).rgb*uniforms.vEmissiveInfos.y;\n#endif\n#ifdef EMISSIVEFRESNEL\nvar emissiveFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.emissiveRightColor.a,uniforms.emissiveLeftColor.a);emissiveColor*=uniforms.emissiveLeftColor.rgb*(1.0-emissiveFresnelTerm)+emissiveFresnelTerm*uniforms.emissiveRightColor.rgb;\n#endif\n#ifdef DIFFUSEFRESNEL\nvar diffuseFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.diffuseRightColor.a,uniforms.diffuseLeftColor.a);diffuseBase*=uniforms.diffuseLeftColor.rgb*(1.0-diffuseFresnelTerm)+diffuseFresnelTerm*uniforms.diffuseRightColor.rgb;\n#endif\n#ifdef EMISSIVEASILLUMINATION\nvar finalDiffuse: vec3f=clamp(diffuseBase*diffuseColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;\n#else\n#ifdef LINKEMISSIVEWITHDIFFUSE\nvar finalDiffuse: vec3f=clamp((diffuseBase+emissiveColor)*diffuseColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;\n#else\nvar finalDiffuse: vec3f=clamp(diffuseBase*diffuseColor+emissiveColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;\n#endif\n#endif\n#ifdef SPECULARTERM\nvar finalSpecular: vec3f=specularBase*specularColor;\n#ifdef SPECULAROVERALPHA\nalpha=clamp(alpha+dot(finalSpecular, vec3f(0.3,0.59,0.11)),0.0,1.0);\n#endif\n#else\nvar finalSpecular: vec3f= vec3f(0.0);\n#endif\n#ifdef REFLECTIONOVERALPHA\nalpha=clamp(alpha+dot(reflectionColor.rgb, vec3f(0.3,0.59,0.11)),0.0,1.0);\n#endif\n#ifdef EMISSIVEASILLUMINATION\nvar color: vec4f= vec4f(clamp(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+emissiveColor+refractionColor.rgb,0.0,1.0),alpha);\n#else\nvar color: vec4f= vec4f(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+refractionColor.rgb,alpha);\n#endif\n#ifdef LIGHTMAP\n#ifndef LIGHTMAPEXCLUDED\n#ifdef USELIGHTMAPASSHADOWMAP\ncolor=vec4f(color.rgb*lightmapColor.rgb,color.a);\n#else\ncolor=vec4f(color.rgb+lightmapColor.rgb,color.a);\n#endif\n#endif\n#endif\n#define CUSTOM_FRAGMENT_BEFORE_FOG\ncolor=vec4f(max(color.rgb,vec3f(0.)),color.a);\n#include<logDepthFragment>\n#include<fogFragment>\n#ifdef IMAGEPROCESSINGPOSTPROCESS\ncolor=vec4f(toLinearSpaceVec3(color.rgb),color.a);\n#else\n#ifdef IMAGEPROCESSING\ncolor=vec4f(toLinearSpaceVec3(color.rgb),color.a);color=applyImageProcessing(color);\n#endif\n#endif\ncolor=vec4f(color.rgb,color.a*mesh.visibility);\n#ifdef PREMULTIPLYALPHA\ncolor=vec4f(color.rgb*color.a, color.a);\n#endif\n#define CUSTOM_FRAGMENT_BEFORE_FRAGCOLOR\n#ifdef PREPASS\nvar writeGeometryInfo: f32=select(0.0,1.0,color.a>0.4);var fragData: array<vec4<f32>,SCENE_MRT_COUNT>;\n#ifdef PREPASS_COLOR\nfragData[PREPASS_COLOR_INDEX]=color; \n#endif\n#ifdef PREPASS_POSITION\nfragData[PREPASS_POSITION_INDEX]=vec4f(fragmentInputs.vPositionW,writeGeometryInfo);\n#endif\n#ifdef PREPASS_LOCAL_POSITION\nfragData[PREPASS_LOCAL_POSITION_INDEX]=vec4f(fragmentInputs.vPosition,writeGeometryInfo);\n#endif\n#ifdef PREPASS_VELOCITY\nvar a: vec2f=(fragmentInputs.vCurrentPosition.xy/fragmentInputs.vCurrentPosition.w)*0.5+0.5;var b: vec2f=(fragmentInputs.vPreviousPosition.xy/fragmentInputs.vPreviousPosition.w)*0.5+0.5;var velocity: vec2f=abs(a-b);velocity= vec2f(pow(velocity.x,1.0/3.0),pow(velocity.y,1.0/3.0))*sign(a-b)*0.5+0.5;fragData[PREPASS_VELOCITY_INDEX]= vec4f(velocity,0.0,writeGeometryInfo);\n#elif defined(PREPASS_VELOCITY_LINEAR)\nvar velocity : vec2f=vec2f(0.5)*((fragmentInputs.vPreviousPosition.xy/fragmentInputs.vPreviousPosition.w) -\n(fragmentInputs.vCurrentPosition.xy/fragmentInputs.vCurrentPosition.w));fragData[PREPASS_VELOCITY_LINEAR_INDEX]=vec4f(velocity,0.0,writeGeometryInfo);\n#endif\n#ifdef PREPASS_IRRADIANCE\nfragData[PREPASS_IRRADIANCE_INDEX]=vec4f(0.0,0.0,0.0,writeGeometryInfo); \n#endif\n#ifdef PREPASS_DEPTH\nfragData[PREPASS_DEPTH_INDEX]=vec4f(fragmentInputs.vViewPos.z,0.0,0.0,writeGeometryInfo); \n#endif\n#ifdef PREPASS_SCREENSPACE_DEPTH\nfragData[PREPASS_SCREENSPACE_DEPTH_INDEX]=vec4f(fragmentInputs.position.z,0.0,0.0,writeGeometryInfo);\n#endif\n#ifdef PREPASS_NORMAL\n#ifdef PREPASS_NORMAL_WORLDSPACE\nfragData[PREPASS_NORMAL_INDEX]=vec4f(normalW,writeGeometryInfo);\n#else\nfragData[PREPASS_NORMAL_INDEX]=vec4f(normalize((scene.view*vec4f(normalW,0.0)).rgb),writeGeometryInfo);\n#endif\n#endif\n#ifdef PREPASS_WORLD_NORMAL\nfragData[PREPASS_WORLD_NORMAL_INDEX]=vec4f(normalW*0.5+0.5,writeGeometryInfo);\n#endif\n#ifdef PREPASS_ALBEDO\nfragData[PREPASS_ALBEDO_INDEX]=vec4f(baseColor.rgb,writeGeometryInfo);\n#endif\n#ifdef PREPASS_ALBEDO_SQRT\nfragData[PREPASS_ALBEDO_SQRT_INDEX]=vec4f(sqrt(baseColor.rgb),writeGeometryInfo);\n#endif\n#ifdef PREPASS_REFLECTIVITY\n#if defined(SPECULAR)\nfragData[PREPASS_REFLECTIVITY_INDEX]=vec4f(toLinearSpaceVec4(specularMapColor))*writeGeometryInfo; \n#else\nfragData[PREPASS_REFLECTIVITY_INDEX]=vec4f(toLinearSpaceVec3(specularColor),1.0)*writeGeometryInfo;\n#endif\n#endif\n#if SCENE_MRT_COUNT>0\nfragmentOutputs.fragData0=fragData[0];\n#endif\n#if SCENE_MRT_COUNT>1\nfragmentOutputs.fragData1=fragData[1];\n#endif\n#if SCENE_MRT_COUNT>2\nfragmentOutputs.fragData2=fragData[2];\n#endif\n#if SCENE_MRT_COUNT>3\nfragmentOutputs.fragData3=fragData[3];\n#endif\n#if SCENE_MRT_COUNT>4\nfragmentOutputs.fragData4=fragData[4];\n#endif\n#if SCENE_MRT_COUNT>5\nfragmentOutputs.fragData5=fragData[5];\n#endif\n#if SCENE_MRT_COUNT>6\nfragmentOutputs.fragData6=fragData[6];\n#endif\n#if SCENE_MRT_COUNT>7\nfragmentOutputs.fragData7=fragData[7];\n#endif\n#endif\n#if !defined(PREPASS) && !defined(ORDER_INDEPENDENT_TRANSPARENCY)\nfragmentOutputs.color=color;\n#endif\n#include<oitFragment>\n#if ORDER_INDEPENDENT_TRANSPARENCY\nif (fragDepth==nearestDepth) {fragmentOutputs.frontColor=vec4f(fragmentOutputs.frontColor.rgb+color.rgb*color.a*alphaMultiplier,1.0-alphaMultiplier*(1.0-color.a));} else {fragmentOutputs.backColor+=color;}\n#endif\n#define CUSTOM_FRAGMENT_MAIN_END\n}\n`;\n// Sideeffect\nShaderStore.ShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const defaultPixelShaderWGSL = { name, shader };\n//# sourceMappingURL=default.fragment.js.map"],"names":["name","shader"],"mappings":";;;;;;;;;;;AAAA;AAEA,MAAMA,MAAI,GAAG,yBAAyB;AACtC,MAAMC,QAAM,GAAG,CAAC;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oWAAoW,CAAC;AACrW;AACA,WAAW,CAAC,wBAAwB,CAACD,MAAI,CAAC,GAAGC,QAAM;;AClEnD;AA4BA,MAAM,IAAI,GAAG,oBAAoB;AACjC,MAAM,MAAM,GAAG,CAAC;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM;AAC3C;AACY,MAAC,sBAAsB,GAAG,EAAE,IAAI,EAAE,MAAM;;;;"}
|