@babylonjs/viewer 7.37.1 → 7.37.2-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/photoStudio.env +0 -0
- package/dist/babylon-viewer.esm.js +2 -0
- package/dist/babylon-viewer.esm.js.map +1 -0
- package/dist/babylon-viewer.esm.min.js +2 -0
- package/dist/babylon-viewer.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-D45X9BPl.esm.js +171 -0
- package/dist/chunks/EXT_lights_image_based-D45X9BPl.esm.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-DvoqYcdP.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_image_based-DvoqYcdP.esm.min.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-DUn1RAdN.esm.min.js +2 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-DUn1RAdN.esm.min.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-Dp_omjlL.esm.js +86 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-Dp_omjlL.esm.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-BQC_7caz.esm.min.js +2 -0
- package/dist/chunks/EXT_meshopt_compression-BQC_7caz.esm.min.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-FzRlF20_.esm.js +134 -0
- package/dist/chunks/EXT_meshopt_compression-FzRlF20_.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-NFJz66Ay.esm.js +44 -0
- package/dist/chunks/EXT_texture_avif-NFJz66Ay.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-yLvrskbZ.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_avif-yLvrskbZ.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-CR7Z5YIQ.esm.js +43 -0
- package/dist/chunks/EXT_texture_webp-CR7Z5YIQ.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-Cu47KLsz.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_webp-Cu47KLsz.esm.min.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-BwakFlBM.esm.js +64 -0
- package/dist/chunks/ExtrasAsMetadata-BwakFlBM.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-u1k4kprs.esm.min.js +2 -0
- package/dist/chunks/ExtrasAsMetadata-u1k4kprs.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-DPbRpQcN.esm.min.js +2 -0
- package/dist/chunks/KHR_animation_pointer-DPbRpQcN.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-wjOBsM1d.esm.js +343 -0
- package/dist/chunks/KHR_animation_pointer-wjOBsM1d.esm.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-BkgYMOOx.esm.min.js +2 -0
- package/dist/chunks/KHR_draco_mesh_compression-BkgYMOOx.esm.min.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-CvnZzfX3.esm.js +617 -0
- package/dist/chunks/KHR_draco_mesh_compression-CvnZzfX3.esm.js.map +1 -0
- package/dist/chunks/KHR_interactivity-Bp7_TJm9.esm.min.js +2 -0
- package/dist/chunks/KHR_interactivity-Bp7_TJm9.esm.min.js.map +1 -0
- package/dist/chunks/KHR_interactivity-C_Z4RJhE.esm.js +4033 -0
- package/dist/chunks/KHR_interactivity-C_Z4RJhE.esm.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-BbuFDbKG.esm.min.js +2 -0
- package/dist/chunks/KHR_lights_punctual-BbuFDbKG.esm.min.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-GHjZ7VCq.esm.js +1253 -0
- package/dist/chunks/KHR_lights_punctual-GHjZ7VCq.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-DHgmJTOh.esm.js +65 -0
- package/dist/chunks/KHR_materials_anisotropy-DHgmJTOh.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-Dc4Evl1P.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_anisotropy-Dc4Evl1P.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-BOp_vaqd.esm.js +96 -0
- package/dist/chunks/KHR_materials_clearcoat-BOp_vaqd.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-D2jlT4tq.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_clearcoat-D2jlT4tq.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-YlZ556xa.esm.js +97 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-YlZ556xa.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-uETEXjDc.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-uETEXjDc.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-CbThEQRc.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_dispersion-CbThEQRc.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-CeAPqVnK.esm.js +62 -0
- package/dist/chunks/KHR_materials_dispersion-CeAPqVnK.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-C-T3BnvJ.esm.js +55 -0
- package/dist/chunks/KHR_materials_emissive_strength-C-T3BnvJ.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-DpIZDJjV.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_emissive_strength-DpIZDJjV.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-BPl8Q63c.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_ior-BPl8Q63c.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-CMoT96u7.esm.js +64 -0
- package/dist/chunks/KHR_materials_ior-CMoT96u7.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-CbiG9QMp.esm.js +72 -0
- package/dist/chunks/KHR_materials_iridescence-CbiG9QMp.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-DazLBrvx.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_iridescence-DazLBrvx.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CJ_wCBPx.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CJ_wCBPx.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CYVtDKuH.esm.js +81 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CYVtDKuH.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-DnGPeNaP.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_sheen-DnGPeNaP.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-DwVBW5RD.esm.js +85 -0
- package/dist/chunks/KHR_materials_sheen-DwVBW5RD.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-CAsu1BbY.esm.js +75 -0
- package/dist/chunks/KHR_materials_specular-CAsu1BbY.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-CChgOSyW.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_specular-CChgOSyW.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-BrFI5--W.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_transmission-BrFI5--W.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-CLJ21RLG.esm.js +307 -0
- package/dist/chunks/KHR_materials_transmission-CLJ21RLG.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-ChwDkFrO.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_unlit-ChwDkFrO.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-D1jnRNyV.esm.js +74 -0
- package/dist/chunks/KHR_materials_unlit-D1jnRNyV.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-Ddre8Lod.esm.js +262 -0
- package/dist/chunks/KHR_materials_variants-Ddre8Lod.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-Dpc2HvWc.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_variants-Dpc2HvWc.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-BDaeNwhf.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_volume-BDaeNwhf.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-BZ-tXxF4.esm.js +87 -0
- package/dist/chunks/KHR_materials_volume-BZ-tXxF4.esm.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-D4HKzP6W.esm.js +26 -0
- package/dist/chunks/KHR_mesh_quantization-D4HKzP6W.esm.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-DWr7XBwO.esm.min.js +2 -0
- package/dist/chunks/KHR_mesh_quantization-DWr7XBwO.esm.min.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-BM8WB-g8.esm.js +46 -0
- package/dist/chunks/KHR_node_visibility-BM8WB-g8.esm.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-CMgS0dIb.esm.min.js +2 -0
- package/dist/chunks/KHR_node_visibility-CMgS0dIb.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-CFiKlH_6.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_basisu-CFiKlH_6.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-wSj80uo8.esm.js +43 -0
- package/dist/chunks/KHR_texture_basisu-wSj80uo8.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-BHJQrws1.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_transform-BHJQrws1.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-DfIfyEiA.esm.js +63 -0
- package/dist/chunks/KHR_texture_transform-DfIfyEiA.esm.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-DAafq-bI.esm.min.js +2 -0
- package/dist/chunks/KHR_xmp_json_ld-DAafq-bI.esm.min.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-RfffrpV5.esm.js +51 -0
- package/dist/chunks/KHR_xmp_json_ld-RfffrpV5.esm.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-CKrMwXYI.esm.min.js +2 -0
- package/dist/chunks/MSFT_audio_emitter-CKrMwXYI.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-DDYuCTGi.esm.js +2207 -0
- package/dist/chunks/MSFT_audio_emitter-DDYuCTGi.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-Cfc1EV9L.esm.min.js +2 -0
- package/dist/chunks/MSFT_lod-Cfc1EV9L.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_lod-RVQcBMWp.esm.js +337 -0
- package/dist/chunks/MSFT_lod-RVQcBMWp.esm.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-Dm5jAW21.esm.js +46 -0
- package/dist/chunks/MSFT_minecraftMesh-Dm5jAW21.esm.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-yuZO0qjN.esm.min.js +2 -0
- package/dist/chunks/MSFT_minecraftMesh-yuZO0qjN.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-C7KWVh91.esm.min.js +2 -0
- package/dist/chunks/MSFT_sRGBFactors-C7KWVh91.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-CNCFUZ1u.esm.js +47 -0
- package/dist/chunks/MSFT_sRGBFactors-CNCFUZ1u.esm.js.map +1 -0
- package/dist/chunks/animationGroup-BIh9TTLl.esm.min.js +2 -0
- package/dist/chunks/animationGroup-BIh9TTLl.esm.min.js.map +1 -0
- package/dist/chunks/animationGroup-QFeHaJ5n.esm.js +2482 -0
- package/dist/chunks/animationGroup-QFeHaJ5n.esm.js.map +1 -0
- package/dist/chunks/assetContainer-Cp4IJx4o.esm.min.js +2 -0
- package/dist/chunks/assetContainer-Cp4IJx4o.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-GrtWSUiK.esm.js +1720 -0
- package/dist/chunks/assetContainer-GrtWSUiK.esm.js.map +1 -0
- package/dist/chunks/audioEngine-QQVA159S.esm.min.js +2 -0
- package/dist/chunks/audioEngine-QQVA159S.esm.min.js.map +1 -0
- package/dist/chunks/audioEngine-oSZiqHGi.esm.js +305 -0
- package/dist/chunks/audioEngine-oSZiqHGi.esm.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-2pyORBI7.esm.min.js +2 -0
- package/dist/chunks/bakedVertexAnimation-2pyORBI7.esm.min.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-DOpeNPuF.esm.js +114 -0
- package/dist/chunks/bakedVertexAnimation-DOpeNPuF.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-ComLMdtf.esm.js +600 -0
- package/dist/chunks/basisTextureLoader-ComLMdtf.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-ryrt7c0b.esm.min.js +2 -0
- package/dist/chunks/basisTextureLoader-ryrt7c0b.esm.min.js.map +1 -0
- package/dist/chunks/dds-CCuknht7.esm.min.js +2 -0
- package/dist/chunks/dds-CCuknht7.esm.min.js.map +1 -0
- package/dist/chunks/dds-D2pCV6Dq.esm.js +540 -0
- package/dist/chunks/dds-D2pCV6Dq.esm.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-HN5kNxqf.esm.js +88 -0
- package/dist/chunks/ddsTextureLoader-HN5kNxqf.esm.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-cmTmJqr6.esm.min.js +2 -0
- package/dist/chunks/ddsTextureLoader-cmTmJqr6.esm.min.js.map +1 -0
- package/dist/chunks/decalFragment-CaoV_r5e.esm.min.js +2 -0
- package/dist/chunks/decalFragment-CaoV_r5e.esm.min.js.map +1 -0
- package/dist/chunks/decalFragment-CmM9_XL6.esm.js +18 -0
- package/dist/chunks/decalFragment-CmM9_XL6.esm.js.map +1 -0
- package/dist/chunks/default.fragment-CIxCcBci.esm.js +497 -0
- package/dist/chunks/default.fragment-CIxCcBci.esm.js.map +1 -0
- package/dist/chunks/default.fragment-CvpwsFNV.esm.min.js +2 -0
- package/dist/chunks/default.fragment-CvpwsFNV.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-DvQjHRFZ.esm.min.js +2 -0
- package/dist/chunks/default.fragment-DvQjHRFZ.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-FNsxMRYc.esm.js +433 -0
- package/dist/chunks/default.fragment-FNsxMRYc.esm.js.map +1 -0
- package/dist/chunks/default.vertex-D5X4nYce.esm.js +181 -0
- package/dist/chunks/default.vertex-D5X4nYce.esm.js.map +1 -0
- package/dist/chunks/default.vertex-DBu79v_q.esm.js +201 -0
- package/dist/chunks/default.vertex-DBu79v_q.esm.js.map +1 -0
- package/dist/chunks/default.vertex-Ds-nhawD.esm.min.js +2 -0
- package/dist/chunks/default.vertex-Ds-nhawD.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-ygxHkYqf.esm.min.js +2 -0
- package/dist/chunks/default.vertex-ygxHkYqf.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-5ubIZhWI.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-5ubIZhWI.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-C_kmc54_.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-C_kmc54_.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-CudfJrM7.esm.js +13 -0
- package/dist/chunks/defaultUboDeclaration-CudfJrM7.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-PoxtscR6.esm.js +15 -0
- package/dist/chunks/defaultUboDeclaration-PoxtscR6.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-BSmwAfi2.esm.js +200 -0
- package/dist/chunks/dumpTools-BSmwAfi2.esm.js.map +1 -0
- package/dist/chunks/dumpTools-CqXIdkU-.esm.min.js +2 -0
- package/dist/chunks/dumpTools-CqXIdkU-.esm.min.js.map +1 -0
- package/dist/chunks/engine-BUErRw8z.esm.js +2216 -0
- package/dist/chunks/engine-BUErRw8z.esm.js.map +1 -0
- package/dist/chunks/engine-DcXDbWe5.esm.min.js +2 -0
- package/dist/chunks/engine-DcXDbWe5.esm.min.js.map +1 -0
- package/dist/chunks/engine.common-BCrfrLRA.esm.js +1162 -0
- package/dist/chunks/engine.common-BCrfrLRA.esm.js.map +1 -0
- package/dist/chunks/engine.common-DbmFdD7r.esm.min.js +2 -0
- package/dist/chunks/engine.common-DbmFdD7r.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-DhLFo68T.esm.js +64 -0
- package/dist/chunks/envTextureLoader-DhLFo68T.esm.js.map +1 -0
- package/dist/chunks/envTextureLoader-xWQSOdW2.esm.min.js +2 -0
- package/dist/chunks/envTextureLoader-xWQSOdW2.esm.min.js.map +1 -0
- package/dist/chunks/environmentTextureTools-BPxq8YFx.esm.js +382 -0
- package/dist/chunks/environmentTextureTools-BPxq8YFx.esm.js.map +1 -0
- package/dist/chunks/environmentTextureTools-CRklR_jR.esm.min.js +2 -0
- package/dist/chunks/environmentTextureTools-CRklR_jR.esm.min.js.map +1 -0
- package/dist/chunks/exrTextureLoader-CyfB-RNW.esm.min.js +2 -0
- package/dist/chunks/exrTextureLoader-CyfB-RNW.esm.min.js.map +1 -0
- package/dist/chunks/exrTextureLoader-DZBdy7B_.esm.js +1682 -0
- package/dist/chunks/exrTextureLoader-DZBdy7B_.esm.js.map +1 -0
- package/dist/chunks/fogFragment-C49gmIGZ.esm.js +101 -0
- package/dist/chunks/fogFragment-C49gmIGZ.esm.js.map +1 -0
- package/dist/chunks/fogFragment-Csq7eneI.esm.min.js +2 -0
- package/dist/chunks/fogFragment-Csq7eneI.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-D-sKHdDf.esm.js +102 -0
- package/dist/chunks/fogFragment-D-sKHdDf.esm.js.map +1 -0
- package/dist/chunks/fogFragment-alFkMSt9.esm.min.js +2 -0
- package/dist/chunks/fogFragment-alFkMSt9.esm.min.js.map +1 -0
- package/dist/chunks/fresnelFunction-DU40wmqQ.esm.min.js +2 -0
- package/dist/chunks/fresnelFunction-DU40wmqQ.esm.min.js.map +1 -0
- package/dist/chunks/fresnelFunction-FeK3vqPy.esm.js +12 -0
- package/dist/chunks/fresnelFunction-FeK3vqPy.esm.js.map +1 -0
- package/dist/chunks/glTFLoader-BWXrbzqs.esm.js +7586 -0
- package/dist/chunks/glTFLoader-BWXrbzqs.esm.js.map +1 -0
- package/dist/chunks/glTFLoader-D5p5qYp8.esm.min.js +2 -0
- package/dist/chunks/glTFLoader-D5p5qYp8.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-BrCiuknj.esm.js +77 -0
- package/dist/chunks/glTFLoaderAnimation-BrCiuknj.esm.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-DNByJ6HG.esm.min.js +2 -0
- package/dist/chunks/glTFLoaderAnimation-DNByJ6HG.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-B_19mESZ.esm.js +34 -0
- package/dist/chunks/harmonicsFunctions-B_19mESZ.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-C6ei29IM.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-C6ei29IM.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-D8MhBUfH.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-D8MhBUfH.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-NlQ7ssUT.esm.js +35 -0
- package/dist/chunks/harmonicsFunctions-NlQ7ssUT.esm.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-CJeDP7zV.esm.min.js +2 -0
- package/dist/chunks/hdrTextureLoader-CJeDP7zV.esm.min.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-DknF3R6J.esm.js +252 -0
- package/dist/chunks/hdrTextureLoader-DknF3R6J.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-BLuUx2nq.esm.js +80 -0
- package/dist/chunks/helperFunctions-BLuUx2nq.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-BqcsL6kO.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-BqcsL6kO.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-BskUYxag.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-BskUYxag.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-C7bDmqf5.esm.js +108 -0
- package/dist/chunks/helperFunctions-C7bDmqf5.esm.js.map +1 -0
- package/dist/chunks/iesTextureLoader-BGpmR-Zu.esm.js +189 -0
- package/dist/chunks/iesTextureLoader-BGpmR-Zu.esm.js.map +1 -0
- package/dist/chunks/iesTextureLoader-CMHpguQr.esm.min.js +2 -0
- package/dist/chunks/iesTextureLoader-CMHpguQr.esm.min.js.map +1 -0
- package/dist/chunks/index-BeKEIRka.esm.js +74617 -0
- package/dist/chunks/index-BeKEIRka.esm.js.map +1 -0
- package/dist/chunks/index-DprAUBKz.esm.min.js +57 -0
- package/dist/chunks/index-DprAUBKz.esm.min.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-C19SUsox.esm.js +814 -0
- package/dist/chunks/ktxTextureLoader-C19SUsox.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-C6_J2kq9.esm.min.js +2 -0
- package/dist/chunks/ktxTextureLoader-C6_J2kq9.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-BpynUx1A.esm.js +35 -0
- package/dist/chunks/logDepthDeclaration-BpynUx1A.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-CGzm1tYf.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-CGzm1tYf.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-CyTQagov.esm.js +11 -0
- package/dist/chunks/logDepthDeclaration-CyTQagov.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-Dut4SmA8.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-Dut4SmA8.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-Bc0blXM8.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-Bc0blXM8.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-C-kcsA2L.esm.js +77 -0
- package/dist/chunks/logDepthVertex-C-kcsA2L.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-COozVPxI.esm.js +77 -0
- package/dist/chunks/logDepthVertex-COozVPxI.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-CfOVhbNj.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-CfOVhbNj.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-BKPNmc9Q.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-BKPNmc9Q.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-Cu9Tv4Kw.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-Cu9Tv4Kw.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-DYf1yJUX.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-DYf1yJUX.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-DpLnjXfZ.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-DpLnjXfZ.esm.min.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-BJYErIa3.esm.min.js +2 -0
- package/dist/chunks/meshUboDeclaration-BJYErIa3.esm.min.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-BiUwws9z.esm.js +24 -0
- package/dist/chunks/meshUboDeclaration-BiUwws9z.esm.js.map +1 -0
- package/dist/chunks/objFileLoader-BE_E9yJf.esm.js +1338 -0
- package/dist/chunks/objFileLoader-BE_E9yJf.esm.js.map +1 -0
- package/dist/chunks/objFileLoader-MOi7ZG3R.esm.min.js +2 -0
- package/dist/chunks/objFileLoader-MOi7ZG3R.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-CAIIewpS.esm.js +1210 -0
- package/dist/chunks/oitFragment-CAIIewpS.esm.js.map +1 -0
- package/dist/chunks/oitFragment-DDp3gQTd.esm.min.js +2 -0
- package/dist/chunks/oitFragment-DDp3gQTd.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-SgLz27Xb.esm.js +1051 -0
- package/dist/chunks/oitFragment-SgLz27Xb.esm.js.map +1 -0
- package/dist/chunks/oitFragment-oiPVwqmm.esm.min.js +2 -0
- package/dist/chunks/oitFragment-oiPVwqmm.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-Au3QTn6B.esm.js +15 -0
- package/dist/chunks/pass.fragment-Au3QTn6B.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-CWxLTOY2.esm.js +15 -0
- package/dist/chunks/pass.fragment-CWxLTOY2.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-Dv_aTu4L.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-Dv_aTu4L.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-Ke_m_FfE.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-Ke_m_FfE.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-BBn9zhoH.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-BBn9zhoH.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-C109MBuS.esm.js +3230 -0
- package/dist/chunks/pbr.fragment-C109MBuS.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-CTmhpwgS.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-CTmhpwgS.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-PiPyhFG1.esm.js +3270 -0
- package/dist/chunks/pbr.fragment-PiPyhFG1.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-3Vrjv1Zy.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-3Vrjv1Zy.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-BiMD8ykF.esm.js +338 -0
- package/dist/chunks/pbr.vertex-BiMD8ykF.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-C2mqbEjQ.esm.js +214 -0
- package/dist/chunks/pbr.vertex-C2mqbEjQ.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-CfuqNHe_.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-CfuqNHe_.esm.min.js.map +1 -0
- package/dist/chunks/postprocess.vertex-BtpQ106t.esm.js +20 -0
- package/dist/chunks/postprocess.vertex-BtpQ106t.esm.js.map +1 -0
- package/dist/chunks/postprocess.vertex-y8C6e1Vg.esm.min.js +2 -0
- package/dist/chunks/postprocess.vertex-y8C6e1Vg.esm.min.js.map +1 -0
- package/dist/chunks/rawTexture-DWVljNAA.esm.js +191 -0
- package/dist/chunks/rawTexture-DWVljNAA.esm.js.map +1 -0
- package/dist/chunks/rawTexture-hwvFuG11.esm.min.js +2 -0
- package/dist/chunks/rawTexture-hwvFuG11.esm.min.js.map +1 -0
- package/dist/chunks/ray-CK8RMihf.esm.js +946 -0
- package/dist/chunks/ray-CK8RMihf.esm.js.map +1 -0
- package/dist/chunks/ray-DsHByFt_.esm.min.js +2 -0
- package/dist/chunks/ray-DsHByFt_.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-BJZU7xWj.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-BJZU7xWj.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-Bihg7c2V.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-Bihg7c2V.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-DL0b7M1l.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-DL0b7M1l.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-Dy9zwXIU.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-Dy9zwXIU.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-7kMkvRwb.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-7kMkvRwb.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-DBRJSber.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-DBRJSber.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-EHDS-v9B.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-EHDS-v9B.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-GVps7HU4.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-GVps7HU4.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-DRz20nEn.esm.js +3371 -0
- package/dist/chunks/splatFileLoader-DRz20nEn.esm.js.map +1 -0
- package/dist/chunks/splatFileLoader-Z6j5oKHW.esm.min.js +2 -0
- package/dist/chunks/splatFileLoader-Z6j5oKHW.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-B3ecSQEW.esm.min.js +2 -0
- package/dist/chunks/standardMaterial-B3ecSQEW.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-Be8wL70k.esm.js +1805 -0
- package/dist/chunks/standardMaterial-Be8wL70k.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader-C6LdEQ75.esm.js +238 -0
- package/dist/chunks/stlFileLoader-C6LdEQ75.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader-JCne-dxw.esm.min.js +2 -0
- package/dist/chunks/stlFileLoader-JCne-dxw.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-BZMSekx5.esm.js +349 -0
- package/dist/chunks/tgaTextureLoader-BZMSekx5.esm.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-DOEvqOPE.esm.min.js +2 -0
- package/dist/chunks/tgaTextureLoader-DOEvqOPE.esm.min.js.map +1 -0
- package/dist/chunks/thinEngine-BTbbTZix.esm.js +3842 -0
- package/dist/chunks/thinEngine-BTbbTZix.esm.js.map +1 -0
- package/dist/chunks/thinEngine-v-NSiDW-.esm.min.js +2 -0
- package/dist/chunks/thinEngine-v-NSiDW-.esm.min.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-B8SVyfho.esm.js +314 -0
- package/dist/chunks/thinInstanceMesh-B8SVyfho.esm.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-BxfZu7jF.esm.min.js +2 -0
- package/dist/chunks/thinInstanceMesh-BxfZu7jF.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-BBpDYi6i.esm.js +412 -0
- package/dist/chunks/vertexColorMixing-BBpDYi6i.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-DKlgUR7M.esm.js +522 -0
- package/dist/chunks/vertexColorMixing-DKlgUR7M.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-Dk4L1tJ7.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-Dk4L1tJ7.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-f0SaBMnM.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-f0SaBMnM.esm.min.js.map +1 -0
- package/dist/chunks/webgpuEngine-DGT-ms2c.esm.min.js +2 -0
- package/dist/chunks/webgpuEngine-DGT-ms2c.esm.min.js.map +1 -0
- package/dist/chunks/webgpuEngine-DvWEXB_l.esm.js +11533 -0
- package/dist/chunks/webgpuEngine-DvWEXB_l.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,88 @@
|
|
|
1
|
+
import { S as SphericalPolynomial } from './index-BeKEIRka.esm.js';
|
|
2
|
+
import { DDSTools } from './dds-D2pCV6Dq.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-HN5kNxqf.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ddsTextureLoader-HN5kNxqf.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,2 @@
|
|
|
1
|
+
import{S as e}from"./index-DprAUBKz.esm.min.js";import{DDSTools as i}from"./dds-CCuknht7.esm.min.js";class a{constructor(){this.supportCascades=!0}loadCubeData(a,t,s,o){const p=t.getEngine();let n,m=!1,r=1e3;if(Array.isArray(a))for(let e=0;e<a.length;e++){const s=a[e];n=i.GetDDSInfo(s),t.width=n.width,t.height=n.height,m=(n.isRGB||n.isLuminance||n.mipmapCount>1)&&t.generateMipMaps,p._unpackFlipY(n.isCompressed),i.UploadDDSLevels(p,t,s,n,m,6,-1,e),n.isFourCC||1!==n.mipmapCount?r=n.mipmapCount-1:p.generateMipMapsForCubemap(t)}else{const o=a;n=i.GetDDSInfo(o),t.width=n.width,t.height=n.height,s&&(n.sphericalPolynomial=new e),m=(n.isRGB||n.isLuminance||n.mipmapCount>1)&&t.generateMipMaps,p._unpackFlipY(n.isCompressed),i.UploadDDSLevels(p,t,o,n,m,6),n.isFourCC||1!==n.mipmapCount?r=n.mipmapCount-1:p.generateMipMapsForCubemap(t,!1)}p._setCubeMapTextureParams(t,m,r),t.isReady=!0,t.onLoadedObservable.notifyObservers(t),t.onLoadedObservable.clear(),o&&o({isDDS:!0,width:t.width,info:n,data:a,texture:t})}loadData(e,a,t){const s=i.GetDDSInfo(e),o=(s.isRGB||s.isLuminance||s.mipmapCount>1)&&a.generateMipMaps&&Math.max(s.width,s.height)>>s.mipmapCount-1==1;t(s.width,s.height,o,s.isFourCC,(()=>{i.UploadDDSLevels(a.getEngine(),a,e,s,o,1)}))}}export{a as _DDSTextureLoader};
|
|
2
|
+
//# sourceMappingURL=ddsTextureLoader-cmTmJqr6.esm.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ddsTextureLoader-cmTmJqr6.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,2 @@
|
|
|
1
|
+
import{i as e}from"./index-DprAUBKz.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-CaoV_r5e.esm.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decalFragment-CaoV_r5e.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,18 @@
|
|
|
1
|
+
import { i as ShaderStore } from './index-BeKEIRka.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-CmM9_XL6.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decalFragment-CmM9_XL6.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,497 @@
|
|
|
1
|
+
import { i as ShaderStore } from './index-BeKEIRka.esm.js';
|
|
2
|
+
import './oitFragment-CAIIewpS.esm.js';
|
|
3
|
+
import './defaultUboDeclaration-PoxtscR6.esm.js';
|
|
4
|
+
import './mainUVVaryingDeclaration-BKPNmc9Q.esm.js';
|
|
5
|
+
import './helperFunctions-C7bDmqf5.esm.js';
|
|
6
|
+
import './fogFragment-D-sKHdDf.esm.js';
|
|
7
|
+
import './logDepthDeclaration-BpynUx1A.esm.js';
|
|
8
|
+
|
|
9
|
+
// Do not edit.
|
|
10
|
+
const name$3 = "defaultFragmentDeclaration";
|
|
11
|
+
const shader$3 = `uniform vec4 vEyePosition;uniform vec4 vDiffuseColor;uniform vec4 vSpecularColor;uniform vec3 vEmissiveColor;uniform vec3 vAmbientColor;uniform float visibility;
|
|
12
|
+
#ifdef DIFFUSE
|
|
13
|
+
uniform vec2 vDiffuseInfos;
|
|
14
|
+
#endif
|
|
15
|
+
#ifdef AMBIENT
|
|
16
|
+
uniform vec2 vAmbientInfos;
|
|
17
|
+
#endif
|
|
18
|
+
#ifdef OPACITY
|
|
19
|
+
uniform vec2 vOpacityInfos;
|
|
20
|
+
#endif
|
|
21
|
+
#ifdef EMISSIVE
|
|
22
|
+
uniform vec2 vEmissiveInfos;
|
|
23
|
+
#endif
|
|
24
|
+
#ifdef LIGHTMAP
|
|
25
|
+
uniform vec2 vLightmapInfos;
|
|
26
|
+
#endif
|
|
27
|
+
#ifdef BUMP
|
|
28
|
+
uniform vec3 vBumpInfos;uniform vec2 vTangentSpaceParams;
|
|
29
|
+
#endif
|
|
30
|
+
#ifdef ALPHATEST
|
|
31
|
+
uniform float alphaCutOff;
|
|
32
|
+
#endif
|
|
33
|
+
#if defined(REFLECTIONMAP_SPHERICAL) || defined(REFLECTIONMAP_PROJECTION) || defined(REFRACTION) || defined(PREPASS)
|
|
34
|
+
uniform mat4 view;
|
|
35
|
+
#endif
|
|
36
|
+
#ifdef REFRACTION
|
|
37
|
+
uniform vec4 vRefractionInfos;
|
|
38
|
+
#ifndef REFRACTIONMAP_3D
|
|
39
|
+
uniform mat4 refractionMatrix;
|
|
40
|
+
#endif
|
|
41
|
+
#ifdef REFRACTIONFRESNEL
|
|
42
|
+
uniform vec4 refractionLeftColor;uniform vec4 refractionRightColor;
|
|
43
|
+
#endif
|
|
44
|
+
#if defined(USE_LOCAL_REFRACTIONMAP_CUBIC) && defined(REFRACTIONMAP_3D)
|
|
45
|
+
uniform vec3 vRefractionPosition;uniform vec3 vRefractionSize;
|
|
46
|
+
#endif
|
|
47
|
+
#endif
|
|
48
|
+
#if defined(SPECULAR) && defined(SPECULARTERM)
|
|
49
|
+
uniform vec2 vSpecularInfos;
|
|
50
|
+
#endif
|
|
51
|
+
#ifdef DIFFUSEFRESNEL
|
|
52
|
+
uniform vec4 diffuseLeftColor;uniform vec4 diffuseRightColor;
|
|
53
|
+
#endif
|
|
54
|
+
#ifdef OPACITYFRESNEL
|
|
55
|
+
uniform vec4 opacityParts;
|
|
56
|
+
#endif
|
|
57
|
+
#ifdef EMISSIVEFRESNEL
|
|
58
|
+
uniform vec4 emissiveLeftColor;uniform vec4 emissiveRightColor;
|
|
59
|
+
#endif
|
|
60
|
+
#ifdef REFLECTION
|
|
61
|
+
uniform vec2 vReflectionInfos;
|
|
62
|
+
#if defined(REFLECTIONMAP_PLANAR) || defined(REFLECTIONMAP_CUBIC) || defined(REFLECTIONMAP_PROJECTION) || defined(REFLECTIONMAP_EQUIRECTANGULAR) || defined(REFLECTIONMAP_SPHERICAL) || defined(REFLECTIONMAP_SKYBOX)
|
|
63
|
+
uniform mat4 reflectionMatrix;
|
|
64
|
+
#endif
|
|
65
|
+
#ifndef REFLECTIONMAP_SKYBOX
|
|
66
|
+
#if defined(USE_LOCAL_REFLECTIONMAP_CUBIC) && defined(REFLECTIONMAP_CUBIC)
|
|
67
|
+
uniform vec3 vReflectionPosition;uniform vec3 vReflectionSize;
|
|
68
|
+
#endif
|
|
69
|
+
#endif
|
|
70
|
+
#ifdef REFLECTIONFRESNEL
|
|
71
|
+
uniform vec4 reflectionLeftColor;uniform vec4 reflectionRightColor;
|
|
72
|
+
#endif
|
|
73
|
+
#endif
|
|
74
|
+
#ifdef DETAIL
|
|
75
|
+
uniform vec4 vDetailInfos;
|
|
76
|
+
#endif
|
|
77
|
+
#include<decalFragmentDeclaration>
|
|
78
|
+
#define ADDITIONAL_FRAGMENT_DECLARATION
|
|
79
|
+
`;
|
|
80
|
+
// Sideeffect
|
|
81
|
+
ShaderStore.IncludesShadersStore[name$3] = shader$3;
|
|
82
|
+
|
|
83
|
+
// Do not edit.
|
|
84
|
+
const name$2 = "lightsFragmentFunctions";
|
|
85
|
+
const shader$2 = `struct lightingInfo
|
|
86
|
+
{vec3 diffuse;
|
|
87
|
+
#ifdef SPECULARTERM
|
|
88
|
+
vec3 specular;
|
|
89
|
+
#endif
|
|
90
|
+
#ifdef NDOTL
|
|
91
|
+
float ndl;
|
|
92
|
+
#endif
|
|
93
|
+
};lightingInfo computeLighting(vec3 viewDirectionW,vec3 vNormal,vec4 lightData,vec3 diffuseColor,vec3 specularColor,float range,float glossiness) {lightingInfo result;vec3 lightVectorW;float attenuation=1.0;if (lightData.w==0.)
|
|
94
|
+
{vec3 direction=lightData.xyz-vPositionW;attenuation=max(0.,1.0-length(direction)/range);lightVectorW=normalize(direction);}
|
|
95
|
+
else
|
|
96
|
+
{lightVectorW=normalize(-lightData.xyz);}
|
|
97
|
+
float ndl=max(0.,dot(vNormal,lightVectorW));
|
|
98
|
+
#ifdef NDOTL
|
|
99
|
+
result.ndl=ndl;
|
|
100
|
+
#endif
|
|
101
|
+
result.diffuse=ndl*diffuseColor*attenuation;
|
|
102
|
+
#ifdef SPECULARTERM
|
|
103
|
+
vec3 angleW=normalize(viewDirectionW+lightVectorW);float specComp=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor*attenuation;
|
|
104
|
+
#endif
|
|
105
|
+
return result;}
|
|
106
|
+
lightingInfo computeSpotLighting(vec3 viewDirectionW,vec3 vNormal,vec4 lightData,vec4 lightDirection,vec3 diffuseColor,vec3 specularColor,float range,float glossiness) {lightingInfo result;vec3 direction=lightData.xyz-vPositionW;vec3 lightVectorW=normalize(direction);float attenuation=max(0.,1.0-length(direction)/range);float cosAngle=max(0.,dot(lightDirection.xyz,-lightVectorW));if (cosAngle>=lightDirection.w)
|
|
107
|
+
{cosAngle=max(0.,pow(cosAngle,lightData.w));attenuation*=cosAngle;float ndl=max(0.,dot(vNormal,lightVectorW));
|
|
108
|
+
#ifdef NDOTL
|
|
109
|
+
result.ndl=ndl;
|
|
110
|
+
#endif
|
|
111
|
+
result.diffuse=ndl*diffuseColor*attenuation;
|
|
112
|
+
#ifdef SPECULARTERM
|
|
113
|
+
vec3 angleW=normalize(viewDirectionW+lightVectorW);float specComp=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor*attenuation;
|
|
114
|
+
#endif
|
|
115
|
+
return result;}
|
|
116
|
+
result.diffuse=vec3(0.);
|
|
117
|
+
#ifdef SPECULARTERM
|
|
118
|
+
result.specular=vec3(0.);
|
|
119
|
+
#endif
|
|
120
|
+
#ifdef NDOTL
|
|
121
|
+
result.ndl=0.;
|
|
122
|
+
#endif
|
|
123
|
+
return result;}
|
|
124
|
+
lightingInfo computeHemisphericLighting(vec3 viewDirectionW,vec3 vNormal,vec4 lightData,vec3 diffuseColor,vec3 specularColor,vec3 groundColor,float glossiness) {lightingInfo result;float ndl=dot(vNormal,lightData.xyz)*0.5+0.5;
|
|
125
|
+
#ifdef NDOTL
|
|
126
|
+
result.ndl=ndl;
|
|
127
|
+
#endif
|
|
128
|
+
result.diffuse=mix(groundColor,diffuseColor,ndl);
|
|
129
|
+
#ifdef SPECULARTERM
|
|
130
|
+
vec3 angleW=normalize(viewDirectionW+lightData.xyz);float specComp=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor;
|
|
131
|
+
#endif
|
|
132
|
+
return result;}
|
|
133
|
+
#define inline
|
|
134
|
+
vec3 computeProjectionTextureDiffuseLighting(sampler2D projectionLightSampler,mat4 textureProjectionMatrix,vec3 posW){vec4 strq=textureProjectionMatrix*vec4(posW,1.0);strq/=strq.w;vec3 textureColor=texture2D(projectionLightSampler,strq.xy).rgb;return textureColor;}`;
|
|
135
|
+
// Sideeffect
|
|
136
|
+
ShaderStore.IncludesShadersStore[name$2] = shader$2;
|
|
137
|
+
|
|
138
|
+
// Do not edit.
|
|
139
|
+
const name$1 = "fresnelFunction";
|
|
140
|
+
const shader$1 = `#ifdef FRESNEL
|
|
141
|
+
float computeFresnelTerm(vec3 viewDirection,vec3 worldNormal,float bias,float power)
|
|
142
|
+
{float fresnelTerm=pow(bias+abs(dot(viewDirection,worldNormal)),power);return clamp(fresnelTerm,0.,1.);}
|
|
143
|
+
#endif
|
|
144
|
+
`;
|
|
145
|
+
// Sideeffect
|
|
146
|
+
ShaderStore.IncludesShadersStore[name$1] = shader$1;
|
|
147
|
+
|
|
148
|
+
// Do not edit.
|
|
149
|
+
const name = "defaultPixelShader";
|
|
150
|
+
const shader = `#include<__decl__defaultFragment>
|
|
151
|
+
#if defined(BUMP) || !defined(NORMAL)
|
|
152
|
+
#extension GL_OES_standard_derivatives : enable
|
|
153
|
+
#endif
|
|
154
|
+
#include<prePassDeclaration>[SCENE_MRT_COUNT]
|
|
155
|
+
#include<oitDeclaration>
|
|
156
|
+
#define CUSTOM_FRAGMENT_BEGIN
|
|
157
|
+
#ifdef LOGARITHMICDEPTH
|
|
158
|
+
#extension GL_EXT_frag_depth : enable
|
|
159
|
+
#endif
|
|
160
|
+
varying vec3 vPositionW;
|
|
161
|
+
#ifdef NORMAL
|
|
162
|
+
varying vec3 vNormalW;
|
|
163
|
+
#endif
|
|
164
|
+
#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
165
|
+
varying vec4 vColor;
|
|
166
|
+
#endif
|
|
167
|
+
#include<mainUVVaryingDeclaration>[1..7]
|
|
168
|
+
#include<helperFunctions>
|
|
169
|
+
#include<__decl__lightFragment>[0..maxSimultaneousLights]
|
|
170
|
+
#include<lightsFragmentFunctions>
|
|
171
|
+
#include<shadowsFragmentFunctions>
|
|
172
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse,_SAMPLERNAME_,diffuse)
|
|
173
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_SAMPLERNAME_,ambient)
|
|
174
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_SAMPLERNAME_,opacity)
|
|
175
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_SAMPLERNAME_,emissive)
|
|
176
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_SAMPLERNAME_,lightmap)
|
|
177
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_SAMPLERNAME_,decal)
|
|
178
|
+
#ifdef REFRACTION
|
|
179
|
+
#ifdef REFRACTIONMAP_3D
|
|
180
|
+
uniform samplerCube refractionCubeSampler;
|
|
181
|
+
#else
|
|
182
|
+
uniform sampler2D refraction2DSampler;
|
|
183
|
+
#endif
|
|
184
|
+
#endif
|
|
185
|
+
#if defined(SPECULARTERM)
|
|
186
|
+
#include<samplerFragmentDeclaration>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular,_SAMPLERNAME_,specular)
|
|
187
|
+
#endif
|
|
188
|
+
#include<fresnelFunction>
|
|
189
|
+
#ifdef REFLECTION
|
|
190
|
+
#ifdef REFLECTIONMAP_3D
|
|
191
|
+
uniform samplerCube reflectionCubeSampler;
|
|
192
|
+
#else
|
|
193
|
+
uniform sampler2D reflection2DSampler;
|
|
194
|
+
#endif
|
|
195
|
+
#ifdef REFLECTIONMAP_SKYBOX
|
|
196
|
+
varying vec3 vPositionUVW;
|
|
197
|
+
#else
|
|
198
|
+
#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
|
|
199
|
+
varying vec3 vDirectionW;
|
|
200
|
+
#endif
|
|
201
|
+
#endif
|
|
202
|
+
#include<reflectionFunction>
|
|
203
|
+
#endif
|
|
204
|
+
#include<imageProcessingDeclaration>
|
|
205
|
+
#include<imageProcessingFunctions>
|
|
206
|
+
#include<bumpFragmentMainFunctions>
|
|
207
|
+
#include<bumpFragmentFunctions>
|
|
208
|
+
#include<clipPlaneFragmentDeclaration>
|
|
209
|
+
#include<logDepthDeclaration>
|
|
210
|
+
#include<fogFragmentDeclaration>
|
|
211
|
+
#define CUSTOM_FRAGMENT_DEFINITIONS
|
|
212
|
+
void main(void) {
|
|
213
|
+
#define CUSTOM_FRAGMENT_MAIN_BEGIN
|
|
214
|
+
#include<clipPlaneFragment>
|
|
215
|
+
vec3 viewDirectionW=normalize(vEyePosition.xyz-vPositionW);vec4 baseColor=vec4(1.,1.,1.,1.);vec3 diffuseColor=vDiffuseColor.rgb;float alpha=vDiffuseColor.a;
|
|
216
|
+
#ifdef NORMAL
|
|
217
|
+
vec3 normalW=normalize(vNormalW);
|
|
218
|
+
#else
|
|
219
|
+
vec3 normalW=normalize(-cross(dFdx(vPositionW),dFdy(vPositionW)));
|
|
220
|
+
#endif
|
|
221
|
+
#include<bumpFragment>
|
|
222
|
+
#ifdef TWOSIDEDLIGHTING
|
|
223
|
+
normalW=gl_FrontFacing ? normalW : -normalW;
|
|
224
|
+
#endif
|
|
225
|
+
#ifdef DIFFUSE
|
|
226
|
+
baseColor=texture2D(diffuseSampler,vDiffuseUV+uvOffset);
|
|
227
|
+
#if defined(ALPHATEST) && !defined(ALPHATEST_AFTERALLALPHACOMPUTATIONS)
|
|
228
|
+
if (baseColor.a<alphaCutOff)
|
|
229
|
+
discard;
|
|
230
|
+
#endif
|
|
231
|
+
#ifdef ALPHAFROMDIFFUSE
|
|
232
|
+
alpha*=baseColor.a;
|
|
233
|
+
#endif
|
|
234
|
+
#define CUSTOM_FRAGMENT_UPDATE_ALPHA
|
|
235
|
+
baseColor.rgb*=vDiffuseInfos.y;
|
|
236
|
+
#endif
|
|
237
|
+
#if defined(DECAL) && !defined(DECAL_AFTER_DETAIL)
|
|
238
|
+
vec4 decalColor=texture2D(decalSampler,vDecalUV+uvOffset);
|
|
239
|
+
#include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)
|
|
240
|
+
#endif
|
|
241
|
+
#include<depthPrePass>
|
|
242
|
+
#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
243
|
+
baseColor.rgb*=vColor.rgb;
|
|
244
|
+
#endif
|
|
245
|
+
#ifdef DETAIL
|
|
246
|
+
baseColor.rgb=baseColor.rgb*2.0*mix(0.5,detailColor.r,vDetailInfos.y);
|
|
247
|
+
#endif
|
|
248
|
+
#if defined(DECAL) && defined(DECAL_AFTER_DETAIL)
|
|
249
|
+
vec4 decalColor=texture2D(decalSampler,vDecalUV+uvOffset);
|
|
250
|
+
#include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)
|
|
251
|
+
#endif
|
|
252
|
+
#define CUSTOM_FRAGMENT_UPDATE_DIFFUSE
|
|
253
|
+
vec3 baseAmbientColor=vec3(1.,1.,1.);
|
|
254
|
+
#ifdef AMBIENT
|
|
255
|
+
baseAmbientColor=texture2D(ambientSampler,vAmbientUV+uvOffset).rgb*vAmbientInfos.y;
|
|
256
|
+
#endif
|
|
257
|
+
#define CUSTOM_FRAGMENT_BEFORE_LIGHTS
|
|
258
|
+
float glossiness=vSpecularColor.a;vec3 specularColor=vSpecularColor.rgb;
|
|
259
|
+
#ifdef SPECULARTERM
|
|
260
|
+
#ifdef SPECULAR
|
|
261
|
+
vec4 specularMapColor=texture2D(specularSampler,vSpecularUV+uvOffset);specularColor=specularMapColor.rgb;
|
|
262
|
+
#ifdef GLOSSINESS
|
|
263
|
+
glossiness=glossiness*specularMapColor.a;
|
|
264
|
+
#endif
|
|
265
|
+
#endif
|
|
266
|
+
#endif
|
|
267
|
+
vec3 diffuseBase=vec3(0.,0.,0.);lightingInfo info;
|
|
268
|
+
#ifdef SPECULARTERM
|
|
269
|
+
vec3 specularBase=vec3(0.,0.,0.);
|
|
270
|
+
#endif
|
|
271
|
+
float shadow=1.;float aggShadow=0.;float numLights=0.;
|
|
272
|
+
#ifdef LIGHTMAP
|
|
273
|
+
vec4 lightmapColor=texture2D(lightmapSampler,vLightmapUV+uvOffset);
|
|
274
|
+
#ifdef RGBDLIGHTMAP
|
|
275
|
+
lightmapColor.rgb=fromRGBD(lightmapColor);
|
|
276
|
+
#endif
|
|
277
|
+
lightmapColor.rgb*=vLightmapInfos.y;
|
|
278
|
+
#endif
|
|
279
|
+
#include<lightFragment>[0..maxSimultaneousLights]
|
|
280
|
+
aggShadow=aggShadow/numLights;vec4 refractionColor=vec4(0.,0.,0.,1.);
|
|
281
|
+
#ifdef REFRACTION
|
|
282
|
+
vec3 refractionVector=normalize(refract(-viewDirectionW,normalW,vRefractionInfos.y));
|
|
283
|
+
#ifdef REFRACTIONMAP_3D
|
|
284
|
+
#ifdef USE_LOCAL_REFRACTIONMAP_CUBIC
|
|
285
|
+
refractionVector=parallaxCorrectNormal(vPositionW,refractionVector,vRefractionSize,vRefractionPosition);
|
|
286
|
+
#endif
|
|
287
|
+
refractionVector.y=refractionVector.y*vRefractionInfos.w;vec4 refractionLookup=textureCube(refractionCubeSampler,refractionVector);if (dot(refractionVector,viewDirectionW)<1.0) {refractionColor=refractionLookup;}
|
|
288
|
+
#else
|
|
289
|
+
vec3 vRefractionUVW=vec3(refractionMatrix*(view*vec4(vPositionW+refractionVector*vRefractionInfos.z,1.0)));vec2 refractionCoords=vRefractionUVW.xy/vRefractionUVW.z;refractionCoords.y=1.0-refractionCoords.y;refractionColor=texture2D(refraction2DSampler,refractionCoords);
|
|
290
|
+
#endif
|
|
291
|
+
#ifdef RGBDREFRACTION
|
|
292
|
+
refractionColor.rgb=fromRGBD(refractionColor);
|
|
293
|
+
#endif
|
|
294
|
+
#ifdef IS_REFRACTION_LINEAR
|
|
295
|
+
refractionColor.rgb=toGammaSpace(refractionColor.rgb);
|
|
296
|
+
#endif
|
|
297
|
+
refractionColor.rgb*=vRefractionInfos.x;
|
|
298
|
+
#endif
|
|
299
|
+
vec4 reflectionColor=vec4(0.,0.,0.,1.);
|
|
300
|
+
#ifdef REFLECTION
|
|
301
|
+
vec3 vReflectionUVW=computeReflectionCoords(vec4(vPositionW,1.0),normalW);
|
|
302
|
+
#ifdef REFLECTIONMAP_OPPOSITEZ
|
|
303
|
+
vReflectionUVW.z*=-1.0;
|
|
304
|
+
#endif
|
|
305
|
+
#ifdef REFLECTIONMAP_3D
|
|
306
|
+
#ifdef ROUGHNESS
|
|
307
|
+
float bias=vReflectionInfos.y;
|
|
308
|
+
#ifdef SPECULARTERM
|
|
309
|
+
#ifdef SPECULAR
|
|
310
|
+
#ifdef GLOSSINESS
|
|
311
|
+
bias*=(1.0-specularMapColor.a);
|
|
312
|
+
#endif
|
|
313
|
+
#endif
|
|
314
|
+
#endif
|
|
315
|
+
reflectionColor=textureCube(reflectionCubeSampler,vReflectionUVW,bias);
|
|
316
|
+
#else
|
|
317
|
+
reflectionColor=textureCube(reflectionCubeSampler,vReflectionUVW);
|
|
318
|
+
#endif
|
|
319
|
+
#else
|
|
320
|
+
vec2 coords=vReflectionUVW.xy;
|
|
321
|
+
#ifdef REFLECTIONMAP_PROJECTION
|
|
322
|
+
coords/=vReflectionUVW.z;
|
|
323
|
+
#endif
|
|
324
|
+
coords.y=1.0-coords.y;reflectionColor=texture2D(reflection2DSampler,coords);
|
|
325
|
+
#endif
|
|
326
|
+
#ifdef RGBDREFLECTION
|
|
327
|
+
reflectionColor.rgb=fromRGBD(reflectionColor);
|
|
328
|
+
#endif
|
|
329
|
+
#ifdef IS_REFLECTION_LINEAR
|
|
330
|
+
reflectionColor.rgb=toGammaSpace(reflectionColor.rgb);
|
|
331
|
+
#endif
|
|
332
|
+
reflectionColor.rgb*=vReflectionInfos.x;
|
|
333
|
+
#ifdef REFLECTIONFRESNEL
|
|
334
|
+
float reflectionFresnelTerm=computeFresnelTerm(viewDirectionW,normalW,reflectionRightColor.a,reflectionLeftColor.a);
|
|
335
|
+
#ifdef REFLECTIONFRESNELFROMSPECULAR
|
|
336
|
+
#ifdef SPECULARTERM
|
|
337
|
+
reflectionColor.rgb*=specularColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*reflectionRightColor.rgb;
|
|
338
|
+
#else
|
|
339
|
+
reflectionColor.rgb*=reflectionLeftColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*reflectionRightColor.rgb;
|
|
340
|
+
#endif
|
|
341
|
+
#else
|
|
342
|
+
reflectionColor.rgb*=reflectionLeftColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*reflectionRightColor.rgb;
|
|
343
|
+
#endif
|
|
344
|
+
#endif
|
|
345
|
+
#endif
|
|
346
|
+
#ifdef REFRACTIONFRESNEL
|
|
347
|
+
float refractionFresnelTerm=computeFresnelTerm(viewDirectionW,normalW,refractionRightColor.a,refractionLeftColor.a);refractionColor.rgb*=refractionLeftColor.rgb*(1.0-refractionFresnelTerm)+refractionFresnelTerm*refractionRightColor.rgb;
|
|
348
|
+
#endif
|
|
349
|
+
#ifdef OPACITY
|
|
350
|
+
vec4 opacityMap=texture2D(opacitySampler,vOpacityUV+uvOffset);
|
|
351
|
+
#ifdef OPACITYRGB
|
|
352
|
+
opacityMap.rgb=opacityMap.rgb*vec3(0.3,0.59,0.11);alpha*=(opacityMap.x+opacityMap.y+opacityMap.z)* vOpacityInfos.y;
|
|
353
|
+
#else
|
|
354
|
+
alpha*=opacityMap.a*vOpacityInfos.y;
|
|
355
|
+
#endif
|
|
356
|
+
#endif
|
|
357
|
+
#if defined(VERTEXALPHA) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
358
|
+
alpha*=vColor.a;
|
|
359
|
+
#endif
|
|
360
|
+
#ifdef OPACITYFRESNEL
|
|
361
|
+
float opacityFresnelTerm=computeFresnelTerm(viewDirectionW,normalW,opacityParts.z,opacityParts.w);alpha+=opacityParts.x*(1.0-opacityFresnelTerm)+opacityFresnelTerm*opacityParts.y;
|
|
362
|
+
#endif
|
|
363
|
+
#ifdef ALPHATEST
|
|
364
|
+
#ifdef ALPHATEST_AFTERALLALPHACOMPUTATIONS
|
|
365
|
+
if (alpha<alphaCutOff)
|
|
366
|
+
discard;
|
|
367
|
+
#endif
|
|
368
|
+
#ifndef ALPHABLEND
|
|
369
|
+
alpha=1.0;
|
|
370
|
+
#endif
|
|
371
|
+
#endif
|
|
372
|
+
vec3 emissiveColor=vEmissiveColor;
|
|
373
|
+
#ifdef EMISSIVE
|
|
374
|
+
emissiveColor+=texture2D(emissiveSampler,vEmissiveUV+uvOffset).rgb*vEmissiveInfos.y;
|
|
375
|
+
#endif
|
|
376
|
+
#ifdef EMISSIVEFRESNEL
|
|
377
|
+
float emissiveFresnelTerm=computeFresnelTerm(viewDirectionW,normalW,emissiveRightColor.a,emissiveLeftColor.a);emissiveColor*=emissiveLeftColor.rgb*(1.0-emissiveFresnelTerm)+emissiveFresnelTerm*emissiveRightColor.rgb;
|
|
378
|
+
#endif
|
|
379
|
+
#ifdef DIFFUSEFRESNEL
|
|
380
|
+
float diffuseFresnelTerm=computeFresnelTerm(viewDirectionW,normalW,diffuseRightColor.a,diffuseLeftColor.a);diffuseBase*=diffuseLeftColor.rgb*(1.0-diffuseFresnelTerm)+diffuseFresnelTerm*diffuseRightColor.rgb;
|
|
381
|
+
#endif
|
|
382
|
+
#ifdef EMISSIVEASILLUMINATION
|
|
383
|
+
vec3 finalDiffuse=clamp(diffuseBase*diffuseColor+vAmbientColor,0.0,1.0)*baseColor.rgb;
|
|
384
|
+
#else
|
|
385
|
+
#ifdef LINKEMISSIVEWITHDIFFUSE
|
|
386
|
+
vec3 finalDiffuse=clamp((diffuseBase+emissiveColor)*diffuseColor+vAmbientColor,0.0,1.0)*baseColor.rgb;
|
|
387
|
+
#else
|
|
388
|
+
vec3 finalDiffuse=clamp(diffuseBase*diffuseColor+emissiveColor+vAmbientColor,0.0,1.0)*baseColor.rgb;
|
|
389
|
+
#endif
|
|
390
|
+
#endif
|
|
391
|
+
#ifdef SPECULARTERM
|
|
392
|
+
vec3 finalSpecular=specularBase*specularColor;
|
|
393
|
+
#ifdef SPECULAROVERALPHA
|
|
394
|
+
alpha=clamp(alpha+dot(finalSpecular,vec3(0.3,0.59,0.11)),0.,1.);
|
|
395
|
+
#endif
|
|
396
|
+
#else
|
|
397
|
+
vec3 finalSpecular=vec3(0.0);
|
|
398
|
+
#endif
|
|
399
|
+
#ifdef REFLECTIONOVERALPHA
|
|
400
|
+
alpha=clamp(alpha+dot(reflectionColor.rgb,vec3(0.3,0.59,0.11)),0.,1.);
|
|
401
|
+
#endif
|
|
402
|
+
#ifdef EMISSIVEASILLUMINATION
|
|
403
|
+
vec4 color=vec4(clamp(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+emissiveColor+refractionColor.rgb,0.0,1.0),alpha);
|
|
404
|
+
#else
|
|
405
|
+
vec4 color=vec4(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+refractionColor.rgb,alpha);
|
|
406
|
+
#endif
|
|
407
|
+
#ifdef LIGHTMAP
|
|
408
|
+
#ifndef LIGHTMAPEXCLUDED
|
|
409
|
+
#ifdef USELIGHTMAPASSHADOWMAP
|
|
410
|
+
color.rgb*=lightmapColor.rgb;
|
|
411
|
+
#else
|
|
412
|
+
color.rgb+=lightmapColor.rgb;
|
|
413
|
+
#endif
|
|
414
|
+
#endif
|
|
415
|
+
#endif
|
|
416
|
+
#define CUSTOM_FRAGMENT_BEFORE_FOG
|
|
417
|
+
color.rgb=max(color.rgb,0.);
|
|
418
|
+
#include<logDepthFragment>
|
|
419
|
+
#include<fogFragment>
|
|
420
|
+
#ifdef IMAGEPROCESSINGPOSTPROCESS
|
|
421
|
+
color.rgb=toLinearSpace(color.rgb);
|
|
422
|
+
#else
|
|
423
|
+
#ifdef IMAGEPROCESSING
|
|
424
|
+
color.rgb=toLinearSpace(color.rgb);color=applyImageProcessing(color);
|
|
425
|
+
#endif
|
|
426
|
+
#endif
|
|
427
|
+
color.a*=visibility;
|
|
428
|
+
#ifdef PREMULTIPLYALPHA
|
|
429
|
+
color.rgb*=color.a;
|
|
430
|
+
#endif
|
|
431
|
+
#define CUSTOM_FRAGMENT_BEFORE_FRAGCOLOR
|
|
432
|
+
#ifdef PREPASS
|
|
433
|
+
float writeGeometryInfo=color.a>0.4 ? 1.0 : 0.0;
|
|
434
|
+
#ifdef PREPASS_COLOR
|
|
435
|
+
gl_FragData[PREPASS_COLOR_INDEX]=color;
|
|
436
|
+
#endif
|
|
437
|
+
#ifdef PREPASS_POSITION
|
|
438
|
+
gl_FragData[PREPASS_POSITION_INDEX]=vec4(vPositionW,writeGeometryInfo);
|
|
439
|
+
#endif
|
|
440
|
+
#ifdef PREPASS_LOCAL_POSITION
|
|
441
|
+
gl_FragData[PREPASS_LOCAL_POSITION_INDEX]=vec4(vPosition,writeGeometryInfo);
|
|
442
|
+
#endif
|
|
443
|
+
#if defined(PREPASS_VELOCITY)
|
|
444
|
+
vec2 a=(vCurrentPosition.xy/vCurrentPosition.w)*0.5+0.5;vec2 b=(vPreviousPosition.xy/vPreviousPosition.w)*0.5+0.5;vec2 velocity=abs(a-b);velocity=vec2(pow(velocity.x,1.0/3.0),pow(velocity.y,1.0/3.0))*sign(a-b)*0.5+0.5;gl_FragData[PREPASS_VELOCITY_INDEX]=vec4(velocity,0.0,writeGeometryInfo);
|
|
445
|
+
#elif defined(PREPASS_VELOCITY_LINEAR)
|
|
446
|
+
vec2 velocity=vec2(0.5)*((vPreviousPosition.xy/vPreviousPosition.w)-(vCurrentPosition.xy/vCurrentPosition.w));gl_FragData[PREPASS_VELOCITY_LINEAR_INDEX]=vec4(velocity,0.0,writeGeometryInfo);
|
|
447
|
+
#endif
|
|
448
|
+
#ifdef PREPASS_IRRADIANCE
|
|
449
|
+
gl_FragData[PREPASS_IRRADIANCE_INDEX]=vec4(0.0,0.0,0.0,writeGeometryInfo);
|
|
450
|
+
#endif
|
|
451
|
+
#ifdef PREPASS_DEPTH
|
|
452
|
+
gl_FragData[PREPASS_DEPTH_INDEX]=vec4(vViewPos.z,0.0,0.0,writeGeometryInfo);
|
|
453
|
+
#endif
|
|
454
|
+
#ifdef PREPASS_SCREENSPACE_DEPTH
|
|
455
|
+
gl_FragData[PREPASS_SCREENSPACE_DEPTH_INDEX]=vec4(gl_FragCoord.z,0.0,0.0,writeGeometryInfo);
|
|
456
|
+
#endif
|
|
457
|
+
#ifdef PREPASS_NORMAL
|
|
458
|
+
#ifdef PREPASS_NORMAL_WORLDSPACE
|
|
459
|
+
gl_FragData[PREPASS_NORMAL_INDEX]=vec4(normalW,writeGeometryInfo);
|
|
460
|
+
#else
|
|
461
|
+
gl_FragData[PREPASS_NORMAL_INDEX]=vec4(normalize((view*vec4(normalW,0.0)).rgb),writeGeometryInfo);
|
|
462
|
+
#endif
|
|
463
|
+
#endif
|
|
464
|
+
#ifdef PREPASS_WORLD_NORMAL
|
|
465
|
+
gl_FragData[PREPASS_WORLD_NORMAL_INDEX]=vec4(normalW*0.5+0.5,writeGeometryInfo);
|
|
466
|
+
#endif
|
|
467
|
+
#ifdef PREPASS_ALBEDO
|
|
468
|
+
gl_FragData[PREPASS_ALBEDO_INDEX]=vec4(baseColor.rgb,writeGeometryInfo);
|
|
469
|
+
#endif
|
|
470
|
+
#ifdef PREPASS_ALBEDO_SQRT
|
|
471
|
+
gl_FragData[PREPASS_ALBEDO_SQRT_INDEX]=vec4(sqrt(baseColor.rgb),writeGeometryInfo);
|
|
472
|
+
#endif
|
|
473
|
+
#ifdef PREPASS_REFLECTIVITY
|
|
474
|
+
#if defined(SPECULAR)
|
|
475
|
+
gl_FragData[PREPASS_REFLECTIVITY_INDEX]=vec4(toLinearSpace(specularMapColor))*writeGeometryInfo;
|
|
476
|
+
#else
|
|
477
|
+
gl_FragData[PREPASS_REFLECTIVITY_INDEX]=vec4(toLinearSpace(specularColor),1.0)*writeGeometryInfo;
|
|
478
|
+
#endif
|
|
479
|
+
#endif
|
|
480
|
+
#endif
|
|
481
|
+
#if !defined(PREPASS) || defined(WEBGL2)
|
|
482
|
+
gl_FragColor=color;
|
|
483
|
+
#endif
|
|
484
|
+
#include<oitFragment>
|
|
485
|
+
#if ORDER_INDEPENDENT_TRANSPARENCY
|
|
486
|
+
if (fragDepth==nearestDepth) {frontColor.rgb+=color.rgb*color.a*alphaMultiplier;frontColor.a=1.0-alphaMultiplier*(1.0-color.a);} else {backColor+=color;}
|
|
487
|
+
#endif
|
|
488
|
+
#define CUSTOM_FRAGMENT_MAIN_END
|
|
489
|
+
}
|
|
490
|
+
`;
|
|
491
|
+
// Sideeffect
|
|
492
|
+
ShaderStore.ShadersStore[name] = shader;
|
|
493
|
+
/** @internal */
|
|
494
|
+
const defaultPixelShader = { name, shader };
|
|
495
|
+
|
|
496
|
+
export { defaultPixelShader };
|
|
497
|
+
//# sourceMappingURL=default.fragment-CIxCcBci.esm.js.map
|