@babylonjs/viewer 7.39.0 → 7.39.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_image_based-CeeoVXhZ.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_image_based-CeeoVXhZ.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-CnNyQl-V.esm.js +171 -0
- package/dist/chunks/EXT_lights_image_based-CnNyQl-V.esm.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-CWDveXqm.esm.js +86 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-CWDveXqm.esm.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-D-C8Uube.esm.min.js +2 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-D-C8Uube.esm.min.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-COgxQv2l.esm.min.js +2 -0
- package/dist/chunks/EXT_meshopt_compression-COgxQv2l.esm.min.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-DswhT_LU.esm.js +134 -0
- package/dist/chunks/EXT_meshopt_compression-DswhT_LU.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-B2FtDXn6.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_avif-B2FtDXn6.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-v_Ygn4Cd.esm.js +44 -0
- package/dist/chunks/EXT_texture_avif-v_Ygn4Cd.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-CllsyDtl.esm.js +43 -0
- package/dist/chunks/EXT_texture_webp-CllsyDtl.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-DXyui4Ux.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_webp-DXyui4Ux.esm.min.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-C0cGgjti.esm.js +64 -0
- package/dist/chunks/ExtrasAsMetadata-C0cGgjti.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-CK00KSmC.esm.min.js +2 -0
- package/dist/chunks/ExtrasAsMetadata-CK00KSmC.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-BOUYGCEt.esm.min.js +2 -0
- package/dist/chunks/KHR_animation_pointer-BOUYGCEt.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-CSHzwOkg.esm.js +343 -0
- package/dist/chunks/KHR_animation_pointer-CSHzwOkg.esm.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-BoKWdtM6.esm.js +617 -0
- package/dist/chunks/KHR_draco_mesh_compression-BoKWdtM6.esm.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-By9VLx6I.esm.min.js +2 -0
- package/dist/chunks/KHR_draco_mesh_compression-By9VLx6I.esm.min.js.map +1 -0
- package/dist/chunks/KHR_interactivity-D0TMLZUs.esm.min.js +2 -0
- package/dist/chunks/KHR_interactivity-D0TMLZUs.esm.min.js.map +1 -0
- package/dist/chunks/KHR_interactivity-e1LkmRDg.esm.js +4033 -0
- package/dist/chunks/KHR_interactivity-e1LkmRDg.esm.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-BfqvpYTu.esm.min.js +2 -0
- package/dist/chunks/KHR_lights_punctual-BfqvpYTu.esm.min.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-CmDai-aK.esm.js +1280 -0
- package/dist/chunks/KHR_lights_punctual-CmDai-aK.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-519vs1Qa.esm.js +65 -0
- package/dist/chunks/KHR_materials_anisotropy-519vs1Qa.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-BEZ8_i6c.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_anisotropy-BEZ8_i6c.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-CykZXKvo.esm.js +96 -0
- package/dist/chunks/KHR_materials_clearcoat-CykZXKvo.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-DpezRHed.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_clearcoat-DpezRHed.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-qPnq5RUM.esm.js +97 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-qPnq5RUM.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-yEErDrc7.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-yEErDrc7.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-2VPQ6KhT.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_dispersion-2VPQ6KhT.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-B0bSMweB.esm.js +62 -0
- package/dist/chunks/KHR_materials_dispersion-B0bSMweB.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-CUssSDmh.esm.js +55 -0
- package/dist/chunks/KHR_materials_emissive_strength-CUssSDmh.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-D4JxUe9_.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_emissive_strength-D4JxUe9_.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-C7vqNNIT.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_ior-C7vqNNIT.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-CxcEUif-.esm.js +64 -0
- package/dist/chunks/KHR_materials_ior-CxcEUif-.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-BZL2FyI9.esm.js +72 -0
- package/dist/chunks/KHR_materials_iridescence-BZL2FyI9.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-uGsJIVcX.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_iridescence-uGsJIVcX.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BS8Xa6kM.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BS8Xa6kM.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-r6fENLWA.esm.js +81 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-r6fENLWA.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-DHeYejYG.esm.js +85 -0
- package/dist/chunks/KHR_materials_sheen-DHeYejYG.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-fKUHM2xJ.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_sheen-fKUHM2xJ.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-CL_9xY0m.esm.js +75 -0
- package/dist/chunks/KHR_materials_specular-CL_9xY0m.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-Y1exf1a7.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_specular-Y1exf1a7.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-BQJ8BLmL.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_transmission-BQJ8BLmL.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-CNrvW7Cf.esm.js +307 -0
- package/dist/chunks/KHR_materials_transmission-CNrvW7Cf.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-CB3MNxK8.esm.js +74 -0
- package/dist/chunks/KHR_materials_unlit-CB3MNxK8.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-KBY2NWuy.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_unlit-KBY2NWuy.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-D_m8dVI1.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_variants-D_m8dVI1.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-Isvgw1_K.esm.js +262 -0
- package/dist/chunks/KHR_materials_variants-Isvgw1_K.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-B0sg2C1c.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_volume-B0sg2C1c.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-B1w9KLrg.esm.js +87 -0
- package/dist/chunks/KHR_materials_volume-B1w9KLrg.esm.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-BRSZAVVZ.esm.min.js +2 -0
- package/dist/chunks/KHR_mesh_quantization-BRSZAVVZ.esm.min.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-BWvgFOYN.esm.js +26 -0
- package/dist/chunks/KHR_mesh_quantization-BWvgFOYN.esm.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-C1454OLR.esm.js +46 -0
- package/dist/chunks/KHR_node_visibility-C1454OLR.esm.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-D3qrqoXy.esm.min.js +2 -0
- package/dist/chunks/KHR_node_visibility-D3qrqoXy.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-CTbZQkMA.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_basisu-CTbZQkMA.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-j7IMlI0w.esm.js +43 -0
- package/dist/chunks/KHR_texture_basisu-j7IMlI0w.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-D4RNWimE.esm.js +63 -0
- package/dist/chunks/KHR_texture_transform-D4RNWimE.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-vbVa-sD5.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_transform-vbVa-sD5.esm.min.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-BuH_0oR5.esm.js +51 -0
- package/dist/chunks/KHR_xmp_json_ld-BuH_0oR5.esm.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-C66lFvG_.esm.min.js +2 -0
- package/dist/chunks/KHR_xmp_json_ld-C66lFvG_.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-C9Idh7Rp.esm.min.js +2 -0
- package/dist/chunks/MSFT_audio_emitter-C9Idh7Rp.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-DXoEfoAE.esm.js +2207 -0
- package/dist/chunks/MSFT_audio_emitter-DXoEfoAE.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-C0u18Y6B.esm.min.js +2 -0
- package/dist/chunks/MSFT_lod-C0u18Y6B.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_lod-D6bdb5Z6.esm.js +337 -0
- package/dist/chunks/MSFT_lod-D6bdb5Z6.esm.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-B_0mgHIL.esm.min.js +2 -0
- package/dist/chunks/MSFT_minecraftMesh-B_0mgHIL.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-CX86uFTQ.esm.js +46 -0
- package/dist/chunks/MSFT_minecraftMesh-CX86uFTQ.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-8XcqVqK1.esm.js +47 -0
- package/dist/chunks/MSFT_sRGBFactors-8XcqVqK1.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-B6vSBFGy.esm.min.js +2 -0
- package/dist/chunks/MSFT_sRGBFactors-B6vSBFGy.esm.min.js.map +1 -0
- package/dist/chunks/animationGroup-B6dPgpZS.esm.js +2482 -0
- package/dist/chunks/animationGroup-B6dPgpZS.esm.js.map +1 -0
- package/dist/chunks/animationGroup-CpYzl_DN.esm.min.js +2 -0
- package/dist/chunks/animationGroup-CpYzl_DN.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-9X3NnAIt.esm.js +1720 -0
- package/dist/chunks/assetContainer-9X3NnAIt.esm.js.map +1 -0
- package/dist/chunks/assetContainer-DbE9ENyP.esm.min.js +2 -0
- package/dist/chunks/assetContainer-DbE9ENyP.esm.min.js.map +1 -0
- package/dist/chunks/audioEngine-C2zdV8OA.esm.min.js +2 -0
- package/dist/chunks/audioEngine-C2zdV8OA.esm.min.js.map +1 -0
- package/dist/chunks/audioEngine-_IpopXBl.esm.js +305 -0
- package/dist/chunks/audioEngine-_IpopXBl.esm.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-BXYAUQYj.esm.js +114 -0
- package/dist/chunks/bakedVertexAnimation-BXYAUQYj.esm.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-ajMxzWOI.esm.min.js +2 -0
- package/dist/chunks/bakedVertexAnimation-ajMxzWOI.esm.min.js.map +1 -0
- package/dist/chunks/basisTextureLoader-C5-Ru6rv.esm.min.js +2 -0
- package/dist/chunks/basisTextureLoader-C5-Ru6rv.esm.min.js.map +1 -0
- package/dist/chunks/basisTextureLoader-LerLOoHe.esm.js +600 -0
- package/dist/chunks/basisTextureLoader-LerLOoHe.esm.js.map +1 -0
- package/dist/chunks/dds-BCLtHKIP.esm.min.js +2 -0
- package/dist/chunks/dds-BCLtHKIP.esm.min.js.map +1 -0
- package/dist/chunks/dds-C-zL7xME.esm.js +540 -0
- package/dist/chunks/dds-C-zL7xME.esm.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-BfxZ0z1-.esm.min.js +2 -0
- package/dist/chunks/ddsTextureLoader-BfxZ0z1-.esm.min.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-DfomnuKx.esm.js +88 -0
- package/dist/chunks/ddsTextureLoader-DfomnuKx.esm.js.map +1 -0
- package/dist/chunks/decalFragment-BLDSFlcO.esm.js +18 -0
- package/dist/chunks/decalFragment-BLDSFlcO.esm.js.map +1 -0
- package/dist/chunks/decalFragment-sDeHLp85.esm.min.js +2 -0
- package/dist/chunks/decalFragment-sDeHLp85.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-B0thzVVy.esm.js +446 -0
- package/dist/chunks/default.fragment-B0thzVVy.esm.js.map +1 -0
- package/dist/chunks/default.fragment-Byu3Aowh.esm.js +514 -0
- package/dist/chunks/default.fragment-Byu3Aowh.esm.js.map +1 -0
- package/dist/chunks/default.fragment-Chbu8Ntc.esm.min.js +2 -0
- package/dist/chunks/default.fragment-Chbu8Ntc.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-DsEzLyFX.esm.min.js +2 -0
- package/dist/chunks/default.fragment-DsEzLyFX.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-B77KQHza.esm.min.js +2 -0
- package/dist/chunks/default.vertex-B77KQHza.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-CDwWvCEl.esm.min.js +2 -0
- package/dist/chunks/default.vertex-CDwWvCEl.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-CZ6HqVj4.esm.js +181 -0
- package/dist/chunks/default.vertex-CZ6HqVj4.esm.js.map +1 -0
- package/dist/chunks/default.vertex-D_b5ZM-a.esm.js +201 -0
- package/dist/chunks/default.vertex-D_b5ZM-a.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-5uHN4VVh.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-5uHN4VVh.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-BQSKMomY.esm.js +15 -0
- package/dist/chunks/defaultUboDeclaration-BQSKMomY.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-CSdxq67R.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-CSdxq67R.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-Cau7-O0F.esm.js +13 -0
- package/dist/chunks/defaultUboDeclaration-Cau7-O0F.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-D8G3rIA6.esm.min.js +2 -0
- package/dist/chunks/dumpTools-D8G3rIA6.esm.min.js.map +1 -0
- package/dist/chunks/dumpTools-DVkJOip_.esm.js +200 -0
- package/dist/chunks/dumpTools-DVkJOip_.esm.js.map +1 -0
- package/dist/chunks/engine-Bq-FERio.esm.min.js +2 -0
- package/dist/chunks/engine-Bq-FERio.esm.min.js.map +1 -0
- package/dist/chunks/engine-Cg8XikQu.esm.js +2216 -0
- package/dist/chunks/engine-Cg8XikQu.esm.js.map +1 -0
- package/dist/chunks/engine.common-DApXqU3I.esm.min.js +2 -0
- package/dist/chunks/engine.common-DApXqU3I.esm.min.js.map +1 -0
- package/dist/chunks/engine.common-DLyYh0t6.esm.js +1162 -0
- package/dist/chunks/engine.common-DLyYh0t6.esm.js.map +1 -0
- package/dist/chunks/envTextureLoader-aacbNh0L.esm.js +64 -0
- package/dist/chunks/envTextureLoader-aacbNh0L.esm.js.map +1 -0
- package/dist/chunks/envTextureLoader-z33Ku8ZP.esm.min.js +2 -0
- package/dist/chunks/envTextureLoader-z33Ku8ZP.esm.min.js.map +1 -0
- package/dist/chunks/environmentTextureTools-BroPEPcO.esm.min.js +2 -0
- package/dist/chunks/environmentTextureTools-BroPEPcO.esm.min.js.map +1 -0
- package/dist/chunks/environmentTextureTools-DJ1uxdGk.esm.js +382 -0
- package/dist/chunks/environmentTextureTools-DJ1uxdGk.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-BOT0ASym.esm.min.js +2 -0
- package/dist/chunks/exrTextureLoader-BOT0ASym.esm.min.js.map +1 -0
- package/dist/chunks/exrTextureLoader-Cwh6zNkZ.esm.js +1683 -0
- package/dist/chunks/exrTextureLoader-Cwh6zNkZ.esm.js.map +1 -0
- package/dist/chunks/fogFragment-3I0zHWQ5.esm.min.js +2 -0
- package/dist/chunks/fogFragment-3I0zHWQ5.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-Bj4te0ja.esm.js +102 -0
- package/dist/chunks/fogFragment-Bj4te0ja.esm.js.map +1 -0
- package/dist/chunks/fogFragment-Ck96itbs.esm.js +101 -0
- package/dist/chunks/fogFragment-Ck96itbs.esm.js.map +1 -0
- package/dist/chunks/fogFragment-DF1MDDVX.esm.min.js +2 -0
- package/dist/chunks/fogFragment-DF1MDDVX.esm.min.js.map +1 -0
- package/dist/chunks/fresnelFunction-B3SdA67n.esm.js +12 -0
- package/dist/chunks/fresnelFunction-B3SdA67n.esm.js.map +1 -0
- package/dist/chunks/fresnelFunction-CsJx6AiH.esm.min.js +2 -0
- package/dist/chunks/fresnelFunction-CsJx6AiH.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoader-D_2oyVEL.esm.js +7586 -0
- package/dist/chunks/glTFLoader-D_2oyVEL.esm.js.map +1 -0
- package/dist/chunks/glTFLoader-hH9M0Mxl.esm.min.js +2 -0
- package/dist/chunks/glTFLoader-hH9M0Mxl.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-C8R26t6v.esm.min.js +2 -0
- package/dist/chunks/glTFLoaderAnimation-C8R26t6v.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-ZjtrPrQH.esm.js +77 -0
- package/dist/chunks/glTFLoaderAnimation-ZjtrPrQH.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-B3OzUdyY.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-B3OzUdyY.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-BZ06GfwC.esm.js +35 -0
- package/dist/chunks/harmonicsFunctions-BZ06GfwC.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-DUlvvk2H.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-DUlvvk2H.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-axPIRmiH.esm.js +34 -0
- package/dist/chunks/harmonicsFunctions-axPIRmiH.esm.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-BYWcfMlD.esm.js +253 -0
- package/dist/chunks/hdrTextureLoader-BYWcfMlD.esm.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-XRE0YoPI.esm.min.js +2 -0
- package/dist/chunks/hdrTextureLoader-XRE0YoPI.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-2PlaHl0J.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-2PlaHl0J.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-BRGNf_2Q.esm.js +80 -0
- package/dist/chunks/helperFunctions-BRGNf_2Q.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-Dc0WB1aZ.esm.js +108 -0
- package/dist/chunks/helperFunctions-Dc0WB1aZ.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-Dhb__ydI.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-Dhb__ydI.esm.min.js.map +1 -0
- package/dist/chunks/iesTextureLoader-BeMgjzfz.esm.js +189 -0
- package/dist/chunks/iesTextureLoader-BeMgjzfz.esm.js.map +1 -0
- package/dist/chunks/iesTextureLoader-DEPpHi2v.esm.min.js +2 -0
- package/dist/chunks/iesTextureLoader-DEPpHi2v.esm.min.js.map +1 -0
- package/dist/chunks/index-CZUVyg5N.esm.min.js +57 -0
- package/dist/chunks/index-CZUVyg5N.esm.min.js.map +1 -0
- package/dist/chunks/index-Ds9CkOUn.esm.js +74645 -0
- package/dist/chunks/index-Ds9CkOUn.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-7ak2DCn2.esm.min.js +2 -0
- package/dist/chunks/ktxTextureLoader-7ak2DCn2.esm.min.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-BeVxJImE.esm.js +814 -0
- package/dist/chunks/ktxTextureLoader-BeVxJImE.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-C6Zpw_hp.esm.js +35 -0
- package/dist/chunks/logDepthDeclaration-C6Zpw_hp.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-CC6RAv_c.esm.js +11 -0
- package/dist/chunks/logDepthDeclaration-CC6RAv_c.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-DVkadsse.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-DVkadsse.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-ypicfKvl.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-ypicfKvl.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-BXUDf06w.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-BXUDf06w.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-CbXxwnGu.esm.js +81 -0
- package/dist/chunks/logDepthVertex-CbXxwnGu.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-Dh_BbQmW.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-Dh_BbQmW.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-Ies7zLHP.esm.js +77 -0
- package/dist/chunks/logDepthVertex-Ies7zLHP.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-Bt49lS_d.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-Bt49lS_d.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-DCdc-FMp.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-DCdc-FMp.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-DF6FWPNx.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-DF6FWPNx.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-DdLn58AI.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-DdLn58AI.esm.min.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-BXT5y7Y0.esm.js +26 -0
- package/dist/chunks/meshUboDeclaration-BXT5y7Y0.esm.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-DYo9nzU4.esm.min.js +2 -0
- package/dist/chunks/meshUboDeclaration-DYo9nzU4.esm.min.js.map +1 -0
- package/dist/chunks/objFileLoader-C3TWnCnW.esm.js +1338 -0
- package/dist/chunks/objFileLoader-C3TWnCnW.esm.js.map +1 -0
- package/dist/chunks/objFileLoader-pPKQaMAc.esm.min.js +2 -0
- package/dist/chunks/objFileLoader-pPKQaMAc.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-DSudBjYO.esm.js +1078 -0
- package/dist/chunks/oitFragment-DSudBjYO.esm.js.map +1 -0
- package/dist/chunks/oitFragment-DwSjoVMQ.esm.min.js +2 -0
- package/dist/chunks/oitFragment-DwSjoVMQ.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-WhKBng1w.esm.min.js +2 -0
- package/dist/chunks/oitFragment-WhKBng1w.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-kTtaJZXe.esm.js +1240 -0
- package/dist/chunks/oitFragment-kTtaJZXe.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-BEkSrTG8.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-BEkSrTG8.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-CXsn1ad3.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-CXsn1ad3.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-bHEpgdg1.esm.js +15 -0
- package/dist/chunks/pass.fragment-bHEpgdg1.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-jUYCkDTS.esm.js +15 -0
- package/dist/chunks/pass.fragment-jUYCkDTS.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-B7ppdjGb.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-B7ppdjGb.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-Bee22T4K.esm.js +3272 -0
- package/dist/chunks/pbr.fragment-Bee22T4K.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-COTRD8t1.esm.js +3232 -0
- package/dist/chunks/pbr.fragment-COTRD8t1.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-DHBprcoD.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-DHBprcoD.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-CGf4RQwZ.esm.js +214 -0
- package/dist/chunks/pbr.vertex-CGf4RQwZ.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-DKWJEWJ3.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-DKWJEWJ3.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-DW1NfAV2.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-DW1NfAV2.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-VCBHeeFg.esm.js +338 -0
- package/dist/chunks/pbr.vertex-VCBHeeFg.esm.js.map +1 -0
- package/dist/chunks/postprocess.vertex-8shu0Jne.esm.js +20 -0
- package/dist/chunks/postprocess.vertex-8shu0Jne.esm.js.map +1 -0
- package/dist/chunks/postprocess.vertex-CmHd2-cT.esm.min.js +2 -0
- package/dist/chunks/postprocess.vertex-CmHd2-cT.esm.min.js.map +1 -0
- package/dist/chunks/rawTexture-BdzeKkKm.esm.min.js +2 -0
- package/dist/chunks/rawTexture-BdzeKkKm.esm.min.js.map +1 -0
- package/dist/chunks/rawTexture-sJ8QXEDT.esm.js +191 -0
- package/dist/chunks/rawTexture-sJ8QXEDT.esm.js.map +1 -0
- package/dist/chunks/ray-C90TAlDl.esm.min.js +2 -0
- package/dist/chunks/ray-C90TAlDl.esm.min.js.map +1 -0
- package/dist/chunks/ray-Do7q8ieT.esm.js +946 -0
- package/dist/chunks/ray-Do7q8ieT.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-6ypIVbnJ.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-6ypIVbnJ.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-CY5tK0Og.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-CY5tK0Og.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-DHpeFT-a.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-DHpeFT-a.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-vK2dfM7L.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-vK2dfM7L.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-BxJZUM2K.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-BxJZUM2K.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-D5wh83OQ.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-D5wh83OQ.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-Dfgi7tuD.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-Dfgi7tuD.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-xW3q5odo.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-xW3q5odo.esm.js.map +1 -0
- package/dist/chunks/splatFileLoader-B6EPqKvz.esm.js +3370 -0
- package/dist/chunks/splatFileLoader-B6EPqKvz.esm.js.map +1 -0
- package/dist/chunks/splatFileLoader-D_uo8qe8.esm.min.js +2 -0
- package/dist/chunks/splatFileLoader-D_uo8qe8.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-CITp1r4C.esm.min.js +2 -0
- package/dist/chunks/standardMaterial-CITp1r4C.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-N0c3wx-k.esm.js +1805 -0
- package/dist/chunks/standardMaterial-N0c3wx-k.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader-BcQlxWKz.esm.js +238 -0
- package/dist/chunks/stlFileLoader-BcQlxWKz.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader-C9m0acJk.esm.min.js +2 -0
- package/dist/chunks/stlFileLoader-C9m0acJk.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-CfOAj-7m.esm.min.js +2 -0
- package/dist/chunks/tgaTextureLoader-CfOAj-7m.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-Dx71Q_b8.esm.js +349 -0
- package/dist/chunks/tgaTextureLoader-Dx71Q_b8.esm.js.map +1 -0
- package/dist/chunks/thinEngine-C-Vyo0K5.esm.js +3842 -0
- package/dist/chunks/thinEngine-C-Vyo0K5.esm.js.map +1 -0
- package/dist/chunks/thinEngine-Zjv1Qea8.esm.min.js +2 -0
- package/dist/chunks/thinEngine-Zjv1Qea8.esm.min.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-BOVe3w2D.esm.js +314 -0
- package/dist/chunks/thinInstanceMesh-BOVe3w2D.esm.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-CnAo79e3.esm.min.js +2 -0
- package/dist/chunks/thinInstanceMesh-CnAo79e3.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-CWoef9l8.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-CWoef9l8.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-CZil91Ob.esm.js +412 -0
- package/dist/chunks/vertexColorMixing-CZil91Ob.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-DvzWt4lH.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-DvzWt4lH.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-c1qEw-yW.esm.js +522 -0
- package/dist/chunks/vertexColorMixing-c1qEw-yW.esm.js.map +1 -0
- package/dist/chunks/webgpuEngine-Bl72TV_c.esm.min.js +2 -0
- package/dist/chunks/webgpuEngine-Bl72TV_c.esm.min.js.map +1 -0
- package/dist/chunks/webgpuEngine-DM-fTtzW.esm.js +11533 -0
- package/dist/chunks/webgpuEngine-DM-fTtzW.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/docs/ViewerDefault.jpg +0 -0
- package/docs/ViewerParts.jpg +0 -0
- package/docs/ViewerSlots.jpg +0 -0
- package/docs/ViewerStyled.jpg +0 -0
- package/lib/index.d.ts +568 -0
- package/lib/index.js +2067 -0
- package/lib/index.js.map +1 -0
- package/package.json +18 -27
- package/readme.md +145 -21
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"ddsTextureLoader-BfxZ0z1-.esm.min.js","sources":["../../../../../dev/core/dist/Materials/Textures/Loaders/ddsTextureLoader.js"],"sourcesContent":["import { SphericalPolynomial } from \"../../../Maths/sphericalPolynomial\";\nimport { DDSTools } from \"../../../Misc/dds\";\n/**\n * Implementation of the DDS Texture Loader.\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class _DDSTextureLoader {\n constructor() {\n /**\n * Defines whether the loader supports cascade loading the different faces.\n */\n this.supportCascades = true;\n }\n /**\n * Uploads the cube texture data to the WebGL texture. It has already been bound.\n * @param imgs contains the cube maps\n * @param texture defines the BabylonJS internal texture\n * @param createPolynomials will be true if polynomials have been requested\n * @param onLoad defines the callback to trigger once the texture is ready\n */\n loadCubeData(imgs, texture, createPolynomials, onLoad) {\n const engine = texture.getEngine();\n let info;\n let loadMipmap = false;\n let maxLevel = 1000;\n if (Array.isArray(imgs)) {\n for (let index = 0; index < imgs.length; index++) {\n const data = imgs[index];\n info = DDSTools.GetDDSInfo(data);\n texture.width = info.width;\n texture.height = info.height;\n loadMipmap = (info.isRGB || info.isLuminance || info.mipmapCount > 1) && texture.generateMipMaps;\n engine._unpackFlipY(info.isCompressed);\n DDSTools.UploadDDSLevels(engine, texture, data, info, loadMipmap, 6, -1, index);\n if (!info.isFourCC && info.mipmapCount === 1) {\n engine.generateMipMapsForCubemap(texture);\n }\n else {\n maxLevel = info.mipmapCount - 1;\n }\n }\n }\n else {\n const data = imgs;\n info = DDSTools.GetDDSInfo(data);\n texture.width = info.width;\n texture.height = info.height;\n if (createPolynomials) {\n info.sphericalPolynomial = new SphericalPolynomial();\n }\n loadMipmap = (info.isRGB || info.isLuminance || info.mipmapCount > 1) && texture.generateMipMaps;\n engine._unpackFlipY(info.isCompressed);\n DDSTools.UploadDDSLevels(engine, texture, data, info, loadMipmap, 6);\n if (!info.isFourCC && info.mipmapCount === 1) {\n // Do not unbind as we still need to set the parameters.\n engine.generateMipMapsForCubemap(texture, false);\n }\n else {\n maxLevel = info.mipmapCount - 1;\n }\n }\n engine._setCubeMapTextureParams(texture, loadMipmap, maxLevel);\n texture.isReady = true;\n texture.onLoadedObservable.notifyObservers(texture);\n texture.onLoadedObservable.clear();\n if (onLoad) {\n onLoad({ isDDS: true, width: texture.width, info, data: imgs, texture });\n }\n }\n /**\n * Uploads the 2D texture data to the WebGL texture. It has already been bound once in the callback.\n * @param data contains the texture data\n * @param texture defines the BabylonJS internal texture\n * @param callback defines the method to call once ready to upload\n */\n loadData(data, texture, callback) {\n const info = DDSTools.GetDDSInfo(data);\n const loadMipmap = (info.isRGB || info.isLuminance || info.mipmapCount > 1) && texture.generateMipMaps && Math.max(info.width, info.height) >> (info.mipmapCount - 1) === 1;\n callback(info.width, info.height, loadMipmap, info.isFourCC, () => {\n DDSTools.UploadDDSLevels(texture.getEngine(), texture, data, info, loadMipmap, 1);\n });\n }\n}\n//# sourceMappingURL=ddsTextureLoader.js.map"],"names":["_DDSTextureLoader","constructor","this","supportCascades","loadCubeData","imgs","texture","createPolynomials","onLoad","engine","getEngine","info","loadMipmap","maxLevel","Array","isArray","index","length","data","DDSTools","GetDDSInfo","width","height","isRGB","isLuminance","mipmapCount","generateMipMaps","_unpackFlipY","isCompressed","UploadDDSLevels","isFourCC","generateMipMapsForCubemap","sphericalPolynomial","SphericalPolynomial","_setCubeMapTextureParams","isReady","onLoadedObservable","notifyObservers","clear","isDDS","loadData","callback","Math","max"],"mappings":"qGAOO,MAAMA,EACT,WAAAC,GAIIC,KAAKC,iBAAkB,CAC/B,CAQI,YAAAC,CAAaC,EAAMC,EAASC,EAAmBC,GAC3C,MAAMC,EAASH,EAAQI,YACvB,IAAIC,EACAC,GAAa,EACbC,EAAW,IACf,GAAIC,MAAMC,QAAQV,GACd,IAAK,IAAIW,EAAQ,EAAGA,EAAQX,EAAKY,OAAQD,IAAS,CAC9C,MAAME,EAAOb,EAAKW,GAClBL,EAAOQ,EAASC,WAAWF,GAC3BZ,EAAQe,MAAQV,EAAKU,MACrBf,EAAQgB,OAASX,EAAKW,OACtBV,GAAcD,EAAKY,OAASZ,EAAKa,aAAeb,EAAKc,YAAc,IAAMnB,EAAQoB,gBACjFjB,EAAOkB,aAAahB,EAAKiB,cACzBT,EAASU,gBAAgBpB,EAAQH,EAASY,EAAMP,EAAMC,EAAY,GAAI,EAAGI,GACpEL,EAAKmB,UAAiC,IAArBnB,EAAKc,YAIvBZ,EAAWF,EAAKc,YAAc,EAH9BhB,EAAOsB,0BAA0BzB,EAKrD,KAEa,CACD,MAAMY,EAAOb,EACbM,EAAOQ,EAASC,WAAWF,GAC3BZ,EAAQe,MAAQV,EAAKU,MACrBf,EAAQgB,OAASX,EAAKW,OAClBf,IACAI,EAAKqB,oBAAsB,IAAIC,GAEnCrB,GAAcD,EAAKY,OAASZ,EAAKa,aAAeb,EAAKc,YAAc,IAAMnB,EAAQoB,gBACjFjB,EAAOkB,aAAahB,EAAKiB,cACzBT,EAASU,gBAAgBpB,EAAQH,EAASY,EAAMP,EAAMC,EAAY,GAC7DD,EAAKmB,UAAiC,IAArBnB,EAAKc,YAKvBZ,EAAWF,EAAKc,YAAc,EAH9BhB,EAAOsB,0BAA0BzB,GAAS,EAK1D,CACQG,EAAOyB,yBAAyB5B,EAASM,EAAYC,GACrDP,EAAQ6B,SAAU,EAClB7B,EAAQ8B,mBAAmBC,gBAAgB/B,GAC3CA,EAAQ8B,mBAAmBE,QACvB9B,GACAA,EAAO,CAAE+B,OAAO,EAAMlB,MAAOf,EAAQe,MAAOV,OAAMO,KAAMb,EAAMC,WAE1E,CAOI,QAAAkC,CAAStB,EAAMZ,EAASmC,GACpB,MAAM9B,EAAOQ,EAASC,WAAWF,GAC3BN,GAAcD,EAAKY,OAASZ,EAAKa,aAAeb,EAAKc,YAAc,IAAMnB,EAAQoB,iBAAmBgB,KAAKC,IAAIhC,EAAKU,MAAOV,EAAKW,SAAYX,EAAKc,YAAc,GAAO,EAC1KgB,EAAS9B,EAAKU,MAAOV,EAAKW,OAAQV,EAAYD,EAAKmB,UAAU,KACzDX,EAASU,gBAAgBvB,EAAQI,YAAaJ,EAASY,EAAMP,EAAMC,EAAY,EAAE,GAE7F"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { S as SphericalPolynomial } from './index-Ds9CkOUn.esm.js';
|
|
2
|
+
import { DDSTools } from './dds-C-zL7xME.esm.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Implementation of the DDS Texture Loader.
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
|
+
class _DDSTextureLoader {
|
|
10
|
+
constructor() {
|
|
11
|
+
/**
|
|
12
|
+
* Defines whether the loader supports cascade loading the different faces.
|
|
13
|
+
*/
|
|
14
|
+
this.supportCascades = true;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Uploads the cube texture data to the WebGL texture. It has already been bound.
|
|
18
|
+
* @param imgs contains the cube maps
|
|
19
|
+
* @param texture defines the BabylonJS internal texture
|
|
20
|
+
* @param createPolynomials will be true if polynomials have been requested
|
|
21
|
+
* @param onLoad defines the callback to trigger once the texture is ready
|
|
22
|
+
*/
|
|
23
|
+
loadCubeData(imgs, texture, createPolynomials, onLoad) {
|
|
24
|
+
const engine = texture.getEngine();
|
|
25
|
+
let info;
|
|
26
|
+
let loadMipmap = false;
|
|
27
|
+
let maxLevel = 1000;
|
|
28
|
+
if (Array.isArray(imgs)) {
|
|
29
|
+
for (let index = 0; index < imgs.length; index++) {
|
|
30
|
+
const data = imgs[index];
|
|
31
|
+
info = DDSTools.GetDDSInfo(data);
|
|
32
|
+
texture.width = info.width;
|
|
33
|
+
texture.height = info.height;
|
|
34
|
+
loadMipmap = (info.isRGB || info.isLuminance || info.mipmapCount > 1) && texture.generateMipMaps;
|
|
35
|
+
engine._unpackFlipY(info.isCompressed);
|
|
36
|
+
DDSTools.UploadDDSLevels(engine, texture, data, info, loadMipmap, 6, -1, index);
|
|
37
|
+
if (!info.isFourCC && info.mipmapCount === 1) {
|
|
38
|
+
engine.generateMipMapsForCubemap(texture);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
maxLevel = info.mipmapCount - 1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
const data = imgs;
|
|
47
|
+
info = DDSTools.GetDDSInfo(data);
|
|
48
|
+
texture.width = info.width;
|
|
49
|
+
texture.height = info.height;
|
|
50
|
+
if (createPolynomials) {
|
|
51
|
+
info.sphericalPolynomial = new SphericalPolynomial();
|
|
52
|
+
}
|
|
53
|
+
loadMipmap = (info.isRGB || info.isLuminance || info.mipmapCount > 1) && texture.generateMipMaps;
|
|
54
|
+
engine._unpackFlipY(info.isCompressed);
|
|
55
|
+
DDSTools.UploadDDSLevels(engine, texture, data, info, loadMipmap, 6);
|
|
56
|
+
if (!info.isFourCC && info.mipmapCount === 1) {
|
|
57
|
+
// Do not unbind as we still need to set the parameters.
|
|
58
|
+
engine.generateMipMapsForCubemap(texture, false);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
maxLevel = info.mipmapCount - 1;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
engine._setCubeMapTextureParams(texture, loadMipmap, maxLevel);
|
|
65
|
+
texture.isReady = true;
|
|
66
|
+
texture.onLoadedObservable.notifyObservers(texture);
|
|
67
|
+
texture.onLoadedObservable.clear();
|
|
68
|
+
if (onLoad) {
|
|
69
|
+
onLoad({ isDDS: true, width: texture.width, info, data: imgs, texture });
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Uploads the 2D texture data to the WebGL texture. It has already been bound once in the callback.
|
|
74
|
+
* @param data contains the texture data
|
|
75
|
+
* @param texture defines the BabylonJS internal texture
|
|
76
|
+
* @param callback defines the method to call once ready to upload
|
|
77
|
+
*/
|
|
78
|
+
loadData(data, texture, callback) {
|
|
79
|
+
const info = DDSTools.GetDDSInfo(data);
|
|
80
|
+
const loadMipmap = (info.isRGB || info.isLuminance || info.mipmapCount > 1) && texture.generateMipMaps && Math.max(info.width, info.height) >> (info.mipmapCount - 1) === 1;
|
|
81
|
+
callback(info.width, info.height, loadMipmap, info.isFourCC, () => {
|
|
82
|
+
DDSTools.UploadDDSLevels(texture.getEngine(), texture, data, info, loadMipmap, 1);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { _DDSTextureLoader };
|
|
88
|
+
//# sourceMappingURL=ddsTextureLoader-DfomnuKx.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ddsTextureLoader-DfomnuKx.esm.js","sources":["../../../../../dev/core/dist/Materials/Textures/Loaders/ddsTextureLoader.js"],"sourcesContent":["import { SphericalPolynomial } from \"../../../Maths/sphericalPolynomial\";\nimport { DDSTools } from \"../../../Misc/dds\";\n/**\n * Implementation of the DDS Texture Loader.\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class _DDSTextureLoader {\n constructor() {\n /**\n * Defines whether the loader supports cascade loading the different faces.\n */\n this.supportCascades = true;\n }\n /**\n * Uploads the cube texture data to the WebGL texture. It has already been bound.\n * @param imgs contains the cube maps\n * @param texture defines the BabylonJS internal texture\n * @param createPolynomials will be true if polynomials have been requested\n * @param onLoad defines the callback to trigger once the texture is ready\n */\n loadCubeData(imgs, texture, createPolynomials, onLoad) {\n const engine = texture.getEngine();\n let info;\n let loadMipmap = false;\n let maxLevel = 1000;\n if (Array.isArray(imgs)) {\n for (let index = 0; index < imgs.length; index++) {\n const data = imgs[index];\n info = DDSTools.GetDDSInfo(data);\n texture.width = info.width;\n texture.height = info.height;\n loadMipmap = (info.isRGB || info.isLuminance || info.mipmapCount > 1) && texture.generateMipMaps;\n engine._unpackFlipY(info.isCompressed);\n DDSTools.UploadDDSLevels(engine, texture, data, info, loadMipmap, 6, -1, index);\n if (!info.isFourCC && info.mipmapCount === 1) {\n engine.generateMipMapsForCubemap(texture);\n }\n else {\n maxLevel = info.mipmapCount - 1;\n }\n }\n }\n else {\n const data = imgs;\n info = DDSTools.GetDDSInfo(data);\n texture.width = info.width;\n texture.height = info.height;\n if (createPolynomials) {\n info.sphericalPolynomial = new SphericalPolynomial();\n }\n loadMipmap = (info.isRGB || info.isLuminance || info.mipmapCount > 1) && texture.generateMipMaps;\n engine._unpackFlipY(info.isCompressed);\n DDSTools.UploadDDSLevels(engine, texture, data, info, loadMipmap, 6);\n if (!info.isFourCC && info.mipmapCount === 1) {\n // Do not unbind as we still need to set the parameters.\n engine.generateMipMapsForCubemap(texture, false);\n }\n else {\n maxLevel = info.mipmapCount - 1;\n }\n }\n engine._setCubeMapTextureParams(texture, loadMipmap, maxLevel);\n texture.isReady = true;\n texture.onLoadedObservable.notifyObservers(texture);\n texture.onLoadedObservable.clear();\n if (onLoad) {\n onLoad({ isDDS: true, width: texture.width, info, data: imgs, texture });\n }\n }\n /**\n * Uploads the 2D texture data to the WebGL texture. It has already been bound once in the callback.\n * @param data contains the texture data\n * @param texture defines the BabylonJS internal texture\n * @param callback defines the method to call once ready to upload\n */\n loadData(data, texture, callback) {\n const info = DDSTools.GetDDSInfo(data);\n const loadMipmap = (info.isRGB || info.isLuminance || info.mipmapCount > 1) && texture.generateMipMaps && Math.max(info.width, info.height) >> (info.mipmapCount - 1) === 1;\n callback(info.width, info.height, loadMipmap, info.isFourCC, () => {\n DDSTools.UploadDDSLevels(texture.getEngine(), texture, data, info, loadMipmap, 1);\n });\n }\n}\n//# sourceMappingURL=ddsTextureLoader.js.map"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACO,MAAM,iBAAiB,CAAC;AAC/B,IAAI,WAAW,GAAG;AAClB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,eAAe,GAAG,IAAI;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE;AAC3D,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE;AAC1C,QAAQ,IAAI,IAAI;AAChB,QAAQ,IAAI,UAAU,GAAG,KAAK;AAC9B,QAAQ,IAAI,QAAQ,GAAG,IAAI;AAC3B,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;AACjC,YAAY,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;AAC9D,gBAAgB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;AACxC,gBAAgB,IAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC;AAChD,gBAAgB,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK;AAC1C,gBAAgB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM;AAC5C,gBAAgB,UAAU,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC,KAAK,OAAO,CAAC,eAAe;AAChH,gBAAgB,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC;AACtD,gBAAgB,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC;AAC/F,gBAAgB,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,KAAK,CAAC,EAAE;AAC9D,oBAAoB,MAAM,CAAC,yBAAyB,CAAC,OAAO,CAAC;AAC7D;AACA,qBAAqB;AACrB,oBAAoB,QAAQ,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC;AACnD;AACA;AACA;AACA,aAAa;AACb,YAAY,MAAM,IAAI,GAAG,IAAI;AAC7B,YAAY,IAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC;AAC5C,YAAY,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK;AACtC,YAAY,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM;AACxC,YAAY,IAAI,iBAAiB,EAAE;AACnC,gBAAgB,IAAI,CAAC,mBAAmB,GAAG,IAAI,mBAAmB,EAAE;AACpE;AACA,YAAY,UAAU,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC,KAAK,OAAO,CAAC,eAAe;AAC5G,YAAY,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC;AAClD,YAAY,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;AAChF,YAAY,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,KAAK,CAAC,EAAE;AAC1D;AACA,gBAAgB,MAAM,CAAC,yBAAyB,CAAC,OAAO,EAAE,KAAK,CAAC;AAChE;AACA,iBAAiB;AACjB,gBAAgB,QAAQ,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC;AAC/C;AACA;AACA,QAAQ,MAAM,CAAC,wBAAwB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC;AACtE,QAAQ,OAAO,CAAC,OAAO,GAAG,IAAI;AAC9B,QAAQ,OAAO,CAAC,kBAAkB,CAAC,eAAe,CAAC,OAAO,CAAC;AAC3D,QAAQ,OAAO,CAAC,kBAAkB,CAAC,KAAK,EAAE;AAC1C,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE;AACtC,QAAQ,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC;AAC9C,QAAQ,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC,KAAK,OAAO,CAAC,eAAe,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC;AACnL,QAAQ,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM;AAC3E,YAAY,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;AAC7F,SAAS,CAAC;AACV;AACA;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { i as ShaderStore } from './index-Ds9CkOUn.esm.js';
|
|
2
|
+
|
|
3
|
+
// Do not edit.
|
|
4
|
+
const name = "decalFragment";
|
|
5
|
+
const shader = `#ifdef DECAL
|
|
6
|
+
var decalTempColor=decalColor.rgb;var decalTempAlpha=decalColor.a;
|
|
7
|
+
#ifdef GAMMADECAL
|
|
8
|
+
decalTempColor=toLinearSpaceVec3(decalColor.rgb);
|
|
9
|
+
#endif
|
|
10
|
+
#ifdef DECAL_SMOOTHALPHA
|
|
11
|
+
decalTempAlpha=decalColor.a*decalColor.a;
|
|
12
|
+
#endif
|
|
13
|
+
surfaceAlbedo=mix(surfaceAlbedo.rgb,decalTempColor,decalTempAlpha);
|
|
14
|
+
#endif
|
|
15
|
+
`;
|
|
16
|
+
// Sideeffect
|
|
17
|
+
ShaderStore.IncludesShadersStoreWGSL[name] = shader;
|
|
18
|
+
//# sourceMappingURL=decalFragment-BLDSFlcO.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decalFragment-BLDSFlcO.esm.js","sources":["../../../../../dev/core/dist/ShadersWGSL/ShadersInclude/decalFragment.js"],"sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../../Engines/shaderStore\";\nconst name = \"decalFragment\";\nconst shader = `#ifdef DECAL\nvar decalTempColor=decalColor.rgb;var decalTempAlpha=decalColor.a;\n#ifdef GAMMADECAL\ndecalTempColor=toLinearSpaceVec3(decalColor.rgb);\n#endif\n#ifdef DECAL_SMOOTHALPHA\ndecalTempAlpha=decalColor.a*decalColor.a;\n#endif\nsurfaceAlbedo=mix(surfaceAlbedo.rgb,decalTempColor,decalTempAlpha);\n#endif\n`;\n// Sideeffect\nShaderStore.IncludesShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const decalFragmentWGSL = { name, shader };\n//# sourceMappingURL=decalFragment.js.map"],"names":[],"mappings":";;AAAA;AAEA,MAAM,IAAI,GAAG,eAAe;AAC5B,MAAM,MAAM,GAAG,CAAC;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,WAAW,CAAC,wBAAwB,CAAC,IAAI,CAAC,GAAG,MAAM"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e}from"./index-CZUVyg5N.esm.min.js";e.IncludesShadersStoreWGSL.decalFragment="#ifdef DECAL\nvar decalTempColor=decalColor.rgb;var decalTempAlpha=decalColor.a;\n#ifdef GAMMADECAL\ndecalTempColor=toLinearSpaceVec3(decalColor.rgb);\n#endif\n#ifdef DECAL_SMOOTHALPHA\ndecalTempAlpha=decalColor.a*decalColor.a;\n#endif\nsurfaceAlbedo=mix(surfaceAlbedo.rgb,decalTempColor,decalTempAlpha);\n#endif\n";
|
|
2
|
+
//# sourceMappingURL=decalFragment-sDeHLp85.esm.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decalFragment-sDeHLp85.esm.min.js","sources":["../../../../../dev/core/dist/ShadersWGSL/ShadersInclude/decalFragment.js"],"sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../../Engines/shaderStore\";\nconst name = \"decalFragment\";\nconst shader = `#ifdef DECAL\nvar decalTempColor=decalColor.rgb;var decalTempAlpha=decalColor.a;\n#ifdef GAMMADECAL\ndecalTempColor=toLinearSpaceVec3(decalColor.rgb);\n#endif\n#ifdef DECAL_SMOOTHALPHA\ndecalTempAlpha=decalColor.a*decalColor.a;\n#endif\nsurfaceAlbedo=mix(surfaceAlbedo.rgb,decalTempColor,decalTempAlpha);\n#endif\n`;\n// Sideeffect\nShaderStore.IncludesShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const decalFragmentWGSL = { name, shader };\n//# sourceMappingURL=decalFragment.js.map"],"names":["ShaderStore","IncludesShadersStoreWGSL"],"mappings":"gDAeAA,EAAYC,yBAA6B,cAZ1B"}
|
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import { i as ShaderStore } from './index-Ds9CkOUn.esm.js';
|
|
2
|
+
import './defaultUboDeclaration-Cau7-O0F.esm.js';
|
|
3
|
+
import './oitFragment-DSudBjYO.esm.js';
|
|
4
|
+
import './mainUVVaryingDeclaration-DF6FWPNx.esm.js';
|
|
5
|
+
import './helperFunctions-BRGNf_2Q.esm.js';
|
|
6
|
+
import './fresnelFunction-B3SdA67n.esm.js';
|
|
7
|
+
import './fogFragment-Ck96itbs.esm.js';
|
|
8
|
+
import './logDepthDeclaration-CC6RAv_c.esm.js';
|
|
9
|
+
import './decalFragment-BLDSFlcO.esm.js';
|
|
10
|
+
import './meshUboDeclaration-BXT5y7Y0.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-B0thzVVy.esm.js.map
|