@babylonjs/viewer 7.25.0 → 7.25.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/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-DVT9d5PE.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_image_based-DVT9d5PE.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-XqDzs68T.esm.js +170 -0
- package/dist/chunks/EXT_lights_image_based-XqDzs68T.esm.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BDdwYyny.esm.min.js +2 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BDdwYyny.esm.min.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-DhR2UOBn.esm.js +86 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-DhR2UOBn.esm.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-BqFzh0gY.esm.js +134 -0
- package/dist/chunks/EXT_meshopt_compression-BqFzh0gY.esm.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-SfXDvdUM.esm.min.js +2 -0
- package/dist/chunks/EXT_meshopt_compression-SfXDvdUM.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-JBIGyeRc.esm.js +44 -0
- package/dist/chunks/EXT_texture_avif-JBIGyeRc.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-q1TkH_G9.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_avif-q1TkH_G9.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-B1s3FiRS.esm.js +43 -0
- package/dist/chunks/EXT_texture_webp-B1s3FiRS.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-BCI9KAUl.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_webp-BCI9KAUl.esm.min.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-BOD2FG8I.esm.min.js +2 -0
- package/dist/chunks/ExtrasAsMetadata-BOD2FG8I.esm.min.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-ByiJUaSt.esm.js +64 -0
- package/dist/chunks/ExtrasAsMetadata-ByiJUaSt.esm.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-CNYMXY_w.esm.js +343 -0
- package/dist/chunks/KHR_animation_pointer-CNYMXY_w.esm.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-CnLRV_yl.esm.min.js +2 -0
- package/dist/chunks/KHR_animation_pointer-CnLRV_yl.esm.min.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-AZ2o_aLj.esm.min.js +2 -0
- package/dist/chunks/KHR_draco_mesh_compression-AZ2o_aLj.esm.min.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-DFY2Ctvm.esm.js +610 -0
- package/dist/chunks/KHR_draco_mesh_compression-DFY2Ctvm.esm.js.map +1 -0
- package/dist/chunks/KHR_interactivity-3PDcMKr_.esm.js +4033 -0
- package/dist/chunks/KHR_interactivity-3PDcMKr_.esm.js.map +1 -0
- package/dist/chunks/KHR_interactivity-C-cfOaao.esm.min.js +2 -0
- package/dist/chunks/KHR_interactivity-C-cfOaao.esm.min.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-DdpvJMDV.esm.js +1253 -0
- package/dist/chunks/KHR_lights_punctual-DdpvJMDV.esm.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-fnDFOclN.esm.min.js +2 -0
- package/dist/chunks/KHR_lights_punctual-fnDFOclN.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-Cb6X0k3m.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_anisotropy-Cb6X0k3m.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-gNrsYmJY.esm.js +64 -0
- package/dist/chunks/KHR_materials_anisotropy-gNrsYmJY.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-U2HUz3WB.esm.js +96 -0
- package/dist/chunks/KHR_materials_clearcoat-U2HUz3WB.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-joUz7tSd.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_clearcoat-joUz7tSd.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-Cm1IFxmL.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-Cm1IFxmL.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-Cn5gk-q_.esm.js +97 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-Cn5gk-q_.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-Cpc2ME1B.esm.js +62 -0
- package/dist/chunks/KHR_materials_dispersion-Cpc2ME1B.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-Cv7zIL7j.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_dispersion-Cv7zIL7j.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-BYxJ1Qaz.esm.js +55 -0
- package/dist/chunks/KHR_materials_emissive_strength-BYxJ1Qaz.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-DBEC-Pfr.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_emissive_strength-DBEC-Pfr.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-B4HgptNe.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_ior-B4HgptNe.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-CDtowU9f.esm.js +64 -0
- package/dist/chunks/KHR_materials_ior-CDtowU9f.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-CgkruUTk.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_iridescence-CgkruUTk.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-CqmvyPW8.esm.js +72 -0
- package/dist/chunks/KHR_materials_iridescence-CqmvyPW8.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BQV0asO5.esm.js +81 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BQV0asO5.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-Bv4SCrwb.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-Bv4SCrwb.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-BQM2Rjmq.esm.js +85 -0
- package/dist/chunks/KHR_materials_sheen-BQM2Rjmq.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-DV5CnbK2.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_sheen-DV5CnbK2.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-4xCkE2rV.esm.js +75 -0
- package/dist/chunks/KHR_materials_specular-4xCkE2rV.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-CoAFRAcm.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_specular-CoAFRAcm.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-DUGtSvRL.esm.js +307 -0
- package/dist/chunks/KHR_materials_transmission-DUGtSvRL.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-dc1ndoxL.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_transmission-dc1ndoxL.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-BNXbHdvw.esm.js +74 -0
- package/dist/chunks/KHR_materials_unlit-BNXbHdvw.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-D9MVjMTN.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_unlit-D9MVjMTN.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-CBW9J72v.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_variants-CBW9J72v.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-Dkur-XMA.esm.js +238 -0
- package/dist/chunks/KHR_materials_variants-Dkur-XMA.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-BSWwp0PI.esm.js +87 -0
- package/dist/chunks/KHR_materials_volume-BSWwp0PI.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-uEEN0xx9.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_volume-uEEN0xx9.esm.min.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization--7YAD1i9.esm.js +26 -0
- package/dist/chunks/KHR_mesh_quantization--7YAD1i9.esm.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-D48i0ooq.esm.min.js +2 -0
- package/dist/chunks/KHR_mesh_quantization-D48i0ooq.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-CJHQOtEz.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_basisu-CJHQOtEz.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-CZJ-szw2.esm.js +43 -0
- package/dist/chunks/KHR_texture_basisu-CZJ-szw2.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-CCGZOtJG.esm.js +63 -0
- package/dist/chunks/KHR_texture_transform-CCGZOtJG.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-Cz_tYWj9.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_transform-Cz_tYWj9.esm.min.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-BWhXh4yX.esm.min.js +2 -0
- package/dist/chunks/KHR_xmp_json_ld-BWhXh4yX.esm.min.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-D8vGUblu.esm.js +51 -0
- package/dist/chunks/KHR_xmp_json_ld-D8vGUblu.esm.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-CABqee9Z.esm.min.js +2 -0
- package/dist/chunks/MSFT_audio_emitter-CABqee9Z.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-CupxtNMJ.esm.js +2236 -0
- package/dist/chunks/MSFT_audio_emitter-CupxtNMJ.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-BZ6xhN71.esm.min.js +2 -0
- package/dist/chunks/MSFT_lod-BZ6xhN71.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_lod-D6-TVSnT.esm.js +337 -0
- package/dist/chunks/MSFT_lod-D6-TVSnT.esm.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-DXKcYd7c.esm.js +46 -0
- package/dist/chunks/MSFT_minecraftMesh-DXKcYd7c.esm.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-jQGuk0z2.esm.min.js +2 -0
- package/dist/chunks/MSFT_minecraftMesh-jQGuk0z2.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-CMIEJuDa.esm.min.js +2 -0
- package/dist/chunks/MSFT_sRGBFactors-CMIEJuDa.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-D1di9DYd.esm.js +47 -0
- package/dist/chunks/MSFT_sRGBFactors-D1di9DYd.esm.js.map +1 -0
- package/dist/chunks/assetContainer-B4RZAzKO.esm.min.js +2 -0
- package/dist/chunks/assetContainer-B4RZAzKO.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-B_DdybqS.esm.js +1598 -0
- package/dist/chunks/assetContainer-B_DdybqS.esm.js.map +1 -0
- package/dist/chunks/audioEngine-BNEDnVbO.esm.min.js +2 -0
- package/dist/chunks/audioEngine-BNEDnVbO.esm.min.js.map +1 -0
- package/dist/chunks/audioEngine-CICNJdfP.esm.js +305 -0
- package/dist/chunks/audioEngine-CICNJdfP.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-B_8qIBcv.esm.js +600 -0
- package/dist/chunks/basisTextureLoader-B_8qIBcv.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-qwPrmlI1.esm.min.js +2 -0
- package/dist/chunks/basisTextureLoader-qwPrmlI1.esm.min.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-Caj9Cn2g.esm.min.js +2 -0
- package/dist/chunks/ddsTextureLoader-Caj9Cn2g.esm.min.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-Dtde5Y_E.esm.js +87 -0
- package/dist/chunks/ddsTextureLoader-Dtde5Y_E.esm.js.map +1 -0
- package/dist/chunks/default.fragment-3-A6Ds5q.esm.js +456 -0
- package/dist/chunks/default.fragment-3-A6Ds5q.esm.js.map +1 -0
- package/dist/chunks/default.fragment-CK_5aPIO.esm.js +515 -0
- package/dist/chunks/default.fragment-CK_5aPIO.esm.js.map +1 -0
- package/dist/chunks/default.fragment-CW6M2CvG.esm.min.js +2 -0
- package/dist/chunks/default.fragment-CW6M2CvG.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-D8IeeUuR.esm.min.js +2 -0
- package/dist/chunks/default.fragment-D8IeeUuR.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-BnmEG9Z3.esm.js +178 -0
- package/dist/chunks/default.vertex-BnmEG9Z3.esm.js.map +1 -0
- package/dist/chunks/default.vertex-CByxmCU_.esm.min.js +2 -0
- package/dist/chunks/default.vertex-CByxmCU_.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-CKXtUMTv.esm.min.js +2 -0
- package/dist/chunks/default.vertex-CKXtUMTv.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-D5kQBg6V.esm.js +199 -0
- package/dist/chunks/default.vertex-D5kQBg6V.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-AgU83OaK.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-AgU83OaK.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-BTsCVlsd.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-BTsCVlsd.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-bGo0gkae.esm.js +15 -0
- package/dist/chunks/defaultUboDeclaration-bGo0gkae.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-pi1Tffi-.esm.js +13 -0
- package/dist/chunks/defaultUboDeclaration-pi1Tffi-.esm.js.map +1 -0
- package/dist/chunks/engine-DDK673Fr.esm.js +1613 -0
- package/dist/chunks/engine-DDK673Fr.esm.js.map +1 -0
- package/dist/chunks/engine-DdeN2F9N.esm.min.js +2 -0
- package/dist/chunks/engine-DdeN2F9N.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-B_We3UAe.esm.min.js +2 -0
- package/dist/chunks/envTextureLoader-B_We3UAe.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-DeYk_D-u.esm.js +63 -0
- package/dist/chunks/envTextureLoader-DeYk_D-u.esm.js.map +1 -0
- package/dist/chunks/environmentTextureTools-DT_BQR6L.esm.min.js +2 -0
- package/dist/chunks/environmentTextureTools-DT_BQR6L.esm.min.js.map +1 -0
- package/dist/chunks/environmentTextureTools-DZ4GOzAY.esm.js +381 -0
- package/dist/chunks/environmentTextureTools-DZ4GOzAY.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-BPFaquLu.esm.min.js +2 -0
- package/dist/chunks/exrTextureLoader-BPFaquLu.esm.min.js.map +1 -0
- package/dist/chunks/exrTextureLoader-DFfYDSvx.esm.js +1682 -0
- package/dist/chunks/exrTextureLoader-DFfYDSvx.esm.js.map +1 -0
- package/dist/chunks/fogFragment-ChBeVMbL.esm.min.js +2 -0
- package/dist/chunks/fogFragment-ChBeVMbL.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-CnlQ05Rn.esm.js +102 -0
- package/dist/chunks/fogFragment-CnlQ05Rn.esm.js.map +1 -0
- package/dist/chunks/glTFLoader-CfuuZdCb.esm.js +7552 -0
- package/dist/chunks/glTFLoader-CfuuZdCb.esm.js.map +1 -0
- package/dist/chunks/glTFLoader-DOyVt9PU.esm.min.js +2 -0
- package/dist/chunks/glTFLoader-DOyVt9PU.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-28_L-pzh.esm.js +77 -0
- package/dist/chunks/glTFLoaderAnimation-28_L-pzh.esm.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-Cueukaay.esm.min.js +2 -0
- package/dist/chunks/glTFLoaderAnimation-Cueukaay.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-5m2TqpP7.esm.js +34 -0
- package/dist/chunks/harmonicsFunctions-5m2TqpP7.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-CZvW5nS2.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-CZvW5nS2.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-FoyoVJjx.esm.js +35 -0
- package/dist/chunks/harmonicsFunctions-FoyoVJjx.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-LPFcAay5.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-LPFcAay5.esm.min.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-BF58jeD4.esm.min.js +2 -0
- package/dist/chunks/hdrTextureLoader-BF58jeD4.esm.min.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-CnAlxQ46.esm.js +252 -0
- package/dist/chunks/hdrTextureLoader-CnAlxQ46.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-BHi3ZDnH.esm.js +80 -0
- package/dist/chunks/helperFunctions-BHi3ZDnH.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-D9QX7d8q.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-D9QX7d8q.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-bapbKVVS.esm.js +108 -0
- package/dist/chunks/helperFunctions-bapbKVVS.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-hh2B4qDl.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-hh2B4qDl.esm.min.js.map +1 -0
- package/dist/chunks/index-4QQveomY.esm.js +79813 -0
- package/dist/chunks/index-4QQveomY.esm.js.map +1 -0
- package/dist/chunks/index-D5606AHu.esm.min.js +57 -0
- package/dist/chunks/index-D5606AHu.esm.min.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-CxAMFjnh.esm.js +814 -0
- package/dist/chunks/ktxTextureLoader-CxAMFjnh.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-s0dUXnt8.esm.min.js +2 -0
- package/dist/chunks/ktxTextureLoader-s0dUXnt8.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-BcnqcXJe.esm.js +35 -0
- package/dist/chunks/logDepthDeclaration-BcnqcXJe.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-CvXtMvcM.esm.js +42 -0
- package/dist/chunks/logDepthDeclaration-CvXtMvcM.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-cPWsL3PG.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-cPWsL3PG.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-unowpoZK.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-unowpoZK.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-BrvDYbCP.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-BrvDYbCP.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-CUUB4BTI.esm.js +605 -0
- package/dist/chunks/logDepthVertex-CUUB4BTI.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-DaNvEIGn.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-DaNvEIGn.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-foN2jGvJ.esm.js +77 -0
- package/dist/chunks/logDepthVertex-foN2jGvJ.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-DHTqc_aH.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-DHTqc_aH.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-PFUWfv7o.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-PFUWfv7o.esm.min.js.map +1 -0
- package/dist/chunks/objFileLoader-B-uLP26U.esm.min.js +2 -0
- package/dist/chunks/objFileLoader-B-uLP26U.esm.min.js.map +1 -0
- package/dist/chunks/objFileLoader-Bl2Pzv0o.esm.js +1280 -0
- package/dist/chunks/objFileLoader-Bl2Pzv0o.esm.js.map +1 -0
- package/dist/chunks/oitFragment-CZShr04f.esm.min.js +2 -0
- package/dist/chunks/oitFragment-CZShr04f.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-D3c3Lp9a.esm.js +1210 -0
- package/dist/chunks/oitFragment-D3c3Lp9a.esm.js.map +1 -0
- package/dist/chunks/oitFragment-D6uOdl_0.esm.min.js +2 -0
- package/dist/chunks/oitFragment-D6uOdl_0.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-E27tpA6b.esm.js +1166 -0
- package/dist/chunks/oitFragment-E27tpA6b.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-CGX8gTNY.esm.js +15 -0
- package/dist/chunks/pass.fragment-CGX8gTNY.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-DKqeYsmS.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-DKqeYsmS.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-5XRl6pKm.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-5XRl6pKm.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-Cfsv9tFG.esm.js +3172 -0
- package/dist/chunks/pbr.fragment-Cfsv9tFG.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-DGBodARG.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-DGBodARG.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-IMDXwBnG.esm.js +3228 -0
- package/dist/chunks/pbr.fragment-IMDXwBnG.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-B3JKAxfl.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-B3JKAxfl.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-CZIasM0q.esm.js +335 -0
- package/dist/chunks/pbr.vertex-CZIasM0q.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-CjU0MUM9.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-CjU0MUM9.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-h6JyEpaS.esm.js +208 -0
- package/dist/chunks/pbr.vertex-h6JyEpaS.esm.js.map +1 -0
- package/dist/chunks/postprocess.vertex-B0ei94Dw.esm.min.js +2 -0
- package/dist/chunks/postprocess.vertex-B0ei94Dw.esm.min.js.map +1 -0
- package/dist/chunks/postprocess.vertex-r5NscKzh.esm.js +20 -0
- package/dist/chunks/postprocess.vertex-r5NscKzh.esm.js.map +1 -0
- package/dist/chunks/rawTexture-Bmw0auoS.esm.min.js +2 -0
- package/dist/chunks/rawTexture-Bmw0auoS.esm.min.js.map +1 -0
- package/dist/chunks/rawTexture-CpYqstLv.esm.js +562 -0
- package/dist/chunks/rawTexture-CpYqstLv.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-BBOPxYJO.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-BBOPxYJO.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-C1mQs3ed.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-C1mQs3ed.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-CaqsSeIW.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-CaqsSeIW.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-MPQ7knvL.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-MPQ7knvL.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-6EdQiINi.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-6EdQiINi.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-C-msuzIz.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-C-msuzIz.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-Wd9cTDxy.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-Wd9cTDxy.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-X-RqQAkc.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-X-RqQAkc.esm.js.map +1 -0
- package/dist/chunks/splatFileLoader-DQ9jOQE9.esm.min.js +2 -0
- package/dist/chunks/splatFileLoader-DQ9jOQE9.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-hdSfXVdE.esm.js +3154 -0
- package/dist/chunks/splatFileLoader-hdSfXVdE.esm.js.map +1 -0
- package/dist/chunks/standardMaterial-Cq-J9fif.esm.min.js +2 -0
- package/dist/chunks/standardMaterial-Cq-J9fif.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-GIGkmsd2.esm.js +1809 -0
- package/dist/chunks/standardMaterial-GIGkmsd2.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader--AN8pgtb.esm.min.js +2 -0
- package/dist/chunks/stlFileLoader--AN8pgtb.esm.min.js.map +1 -0
- package/dist/chunks/stlFileLoader-BjJ0Yz5v.esm.js +237 -0
- package/dist/chunks/stlFileLoader-BjJ0Yz5v.esm.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-B3gQ-Dwh.esm.min.js +2 -0
- package/dist/chunks/tgaTextureLoader-B3gQ-Dwh.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-BmEYbSF8.esm.js +349 -0
- package/dist/chunks/tgaTextureLoader-BmEYbSF8.esm.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-DLE1cPa9.esm.js +314 -0
- package/dist/chunks/thinInstanceMesh-DLE1cPa9.esm.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-DgJgeFTD.esm.min.js +2 -0
- package/dist/chunks/thinInstanceMesh-DgJgeFTD.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-Dn7oXj03.esm.js +528 -0
- package/dist/chunks/vertexColorMixing-Dn7oXj03.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-cD_XcjBD.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-cD_XcjBD.esm.min.js.map +1 -0
- package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
- package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
- package/lib/index.d.ts +275 -0
- package/lib/index.js +942 -0
- package/lib/index.js.map +1 -0
- package/package.json +17 -27
- package/readme.md +35 -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 -192
- 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 -350
- 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 -199
- 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 -21
- package/templating/plugins/hdButtonPlugin.js.map +0 -1
- package/templating/plugins/printButton.d.ts +0 -9
- package/templating/plugins/printButton.js +0 -40
- 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 -675
- 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":"pbr.vertex-h6JyEpaS.esm.js","sources":["../../../../../dev/core/dist/ShadersWGSL/pbr.vertex.js"],"sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../Engines/shaderStore\";\nimport \"./ShadersInclude/pbrUboDeclaration\";\nimport \"./ShadersInclude/uvAttributeDeclaration\";\nimport \"./ShadersInclude/mainUVVaryingDeclaration\";\nimport \"./ShadersInclude/helperFunctions\";\nimport \"./ShadersInclude/bonesDeclaration\";\nimport \"./ShadersInclude/bakedVertexAnimationDeclaration\";\nimport \"./ShadersInclude/instancesDeclaration\";\nimport \"./ShadersInclude/prePassVertexDeclaration\";\nimport \"./ShadersInclude/samplerVertexDeclaration\";\nimport \"./ShadersInclude/harmonicsFunctions\";\nimport \"./ShadersInclude/bumpVertexDeclaration\";\nimport \"./ShadersInclude/clipPlaneVertexDeclaration\";\nimport \"./ShadersInclude/fogVertexDeclaration\";\nimport \"./ShadersInclude/lightVxUboDeclaration\";\nimport \"./ShadersInclude/morphTargetsVertexGlobalDeclaration\";\nimport \"./ShadersInclude/morphTargetsVertexDeclaration\";\nimport \"./ShadersInclude/logDepthDeclaration\";\nimport \"./ShadersInclude/morphTargetsVertexGlobal\";\nimport \"./ShadersInclude/morphTargetsVertex\";\nimport \"./ShadersInclude/instancesVertex\";\nimport \"./ShadersInclude/bonesVertex\";\nimport \"./ShadersInclude/bakedVertexAnimation\";\nimport \"./ShadersInclude/prePassVertex\";\nimport \"./ShadersInclude/uvVariableDeclaration\";\nimport \"./ShadersInclude/samplerVertexImplementation\";\nimport \"./ShadersInclude/bumpVertex\";\nimport \"./ShadersInclude/clipPlaneVertex\";\nimport \"./ShadersInclude/fogVertex\";\nimport \"./ShadersInclude/shadowsVertex\";\nimport \"./ShadersInclude/vertexColorMixing\";\nimport \"./ShadersInclude/logDepthVertex\";\nconst name = \"pbrVertexShader\";\nconst shader = `#include<pbrUboDeclaration>\n#define CUSTOM_VERTEX_BEGIN\nattribute position: vec3f;\n#ifdef NORMAL\nattribute normal: vec3f;\n#endif\n#ifdef TANGENT\nattribute tangent: vec4f;\n#endif\n#ifdef UV1\nattribute uv: vec2f;\n#endif\n#include<uvAttributeDeclaration>[2..7]\n#include<mainUVVaryingDeclaration>[1..7]\n#ifdef VERTEXCOLOR\nattribute color: vec4f;\n#endif\n#include<helperFunctions>\n#include<bonesDeclaration>\n#include<bakedVertexAnimationDeclaration>\n#include<instancesDeclaration>\n#include<prePassVertexDeclaration>\n#include<samplerVertexDeclaration>(_DEFINENAME_,ALBEDO,_VARYINGNAME_,Albedo)\n#include<samplerVertexDeclaration>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail)\n#include<samplerVertexDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient)\n#include<samplerVertexDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity)\n#include<samplerVertexDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive)\n#include<samplerVertexDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap)\n#include<samplerVertexDeclaration>(_DEFINENAME_,REFLECTIVITY,_VARYINGNAME_,Reflectivity)\n#include<samplerVertexDeclaration>(_DEFINENAME_,MICROSURFACEMAP,_VARYINGNAME_,MicroSurfaceSampler)\n#include<samplerVertexDeclaration>(_DEFINENAME_,METALLIC_REFLECTANCE,_VARYINGNAME_,MetallicReflectance)\n#include<samplerVertexDeclaration>(_DEFINENAME_,REFLECTANCE,_VARYINGNAME_,Reflectance)\n#include<samplerVertexDeclaration>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump)\n#include<samplerVertexDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal)\n#ifdef CLEARCOAT\n#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_TEXTURE,_VARYINGNAME_,ClearCoat)\n#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_TEXTURE_ROUGHNESS,_VARYINGNAME_,ClearCoatRoughness)\n#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_BUMP,_VARYINGNAME_,ClearCoatBump)\n#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_TINT_TEXTURE,_VARYINGNAME_,ClearCoatTint)\n#endif\n#ifdef IRIDESCENCE\n#include<samplerVertexDeclaration>(_DEFINENAME_,IRIDESCENCE_TEXTURE,_VARYINGNAME_,Iridescence)\n#include<samplerVertexDeclaration>(_DEFINENAME_,IRIDESCENCE_THICKNESS_TEXTURE,_VARYINGNAME_,IridescenceThickness)\n#endif\n#ifdef SHEEN\n#include<samplerVertexDeclaration>(_DEFINENAME_,SHEEN_TEXTURE,_VARYINGNAME_,Sheen)\n#include<samplerVertexDeclaration>(_DEFINENAME_,SHEEN_TEXTURE_ROUGHNESS,_VARYINGNAME_,SheenRoughness)\n#endif\n#ifdef ANISOTROPIC\n#include<samplerVertexDeclaration>(_DEFINENAME_,ANISOTROPIC_TEXTURE,_VARYINGNAME_,Anisotropy)\n#endif\n#ifdef SUBSURFACE\n#include<samplerVertexDeclaration>(_DEFINENAME_,SS_THICKNESSANDMASK_TEXTURE,_VARYINGNAME_,Thickness)\n#include<samplerVertexDeclaration>(_DEFINENAME_,SS_REFRACTIONINTENSITY_TEXTURE,_VARYINGNAME_,RefractionIntensity)\n#include<samplerVertexDeclaration>(_DEFINENAME_,SS_TRANSLUCENCYINTENSITY_TEXTURE,_VARYINGNAME_,TranslucencyIntensity)\n#include<samplerVertexDeclaration>(_DEFINENAME_,SS_TRANSLUCENCYCOLOR_TEXTURE,_VARYINGNAME_,TranslucencyColor)\n#endif\nvarying vPositionW: vec3f;\n#if DEBUGMODE>0\nvarying vClipSpacePosition: vec4f;\n#endif\n#ifdef NORMAL\nvarying vNormalW: vec3f;\n#if defined(USESPHERICALFROMREFLECTIONMAP) && defined(USESPHERICALINVERTEX)\nvarying vEnvironmentIrradiance: vec3f;\n#include<harmonicsFunctions>\n#endif\n#endif\n#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)\nvarying vColor: vec4f;\n#endif\n#include<bumpVertexDeclaration>\n#include<clipPlaneVertexDeclaration>\n#include<fogVertexDeclaration>\n#include<lightVxUboDeclaration>[0..maxSimultaneousLights]\n#include<morphTargetsVertexGlobalDeclaration>\n#include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]\n#ifdef REFLECTIONMAP_SKYBOX\nvarying vPositionUVW: vec3f;\n#endif\n#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)\nvarying vDirectionW: vec3f;\n#endif\n#include<logDepthDeclaration>\n#define CUSTOM_VERTEX_DEFINITIONS\n@vertex\nfn main(input : VertexInputs)->FragmentInputs {\n#define CUSTOM_VERTEX_MAIN_BEGIN\nvar positionUpdated: vec3f=vertexInputs.position;\n#ifdef NORMAL\nvar normalUpdated: vec3f=vertexInputs.normal;\n#endif\n#ifdef TANGENT\nvar tangentUpdated: vec4f=vertexInputs.tangent;\n#endif\n#ifdef UV1\nvar uvUpdated: vec2f=vertexInputs.uv;\n#endif\n#include<morphTargetsVertexGlobal>\n#include<morphTargetsVertex>[0..maxSimultaneousMorphTargets]\n#ifdef REFLECTIONMAP_SKYBOX\nvertexOutputs.vPositionUVW=positionUpdated;\n#endif\n#define CUSTOM_VERTEX_UPDATE_POSITION\n#define CUSTOM_VERTEX_UPDATE_NORMAL\n#include<instancesVertex>\n#if defined(PREPASS) && (defined(PREPASS_VELOCITY) && !defined(BONES_VELOCITY_ENABLED) || defined(PREPASS_VELOCITY_LINEAR))\nvertexOutputs.vCurrentPosition=scene.viewProjection*finalWorld* vec4f(positionUpdated,1.0);vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWorld* vec4f(positionUpdated,1.0);\n#endif\n#include<bonesVertex>\n#include<bakedVertexAnimation>\nvar worldPos: vec4f=finalWorld* vec4f(positionUpdated,1.0);vertexOutputs.vPositionW= worldPos.xyz;\n#include<prePassVertex>\n#ifdef NORMAL\nvar normalWorld: mat3x3f= mat3x3f(finalWorld[0].xyz,finalWorld[1].xyz,finalWorld[2].xyz);\n#if defined(INSTANCES) && defined(THIN_INSTANCES)\nvertexOutputs.vNormalW=normalUpdated/ vec3f(dot(normalWorld[0],normalWorld[0]),dot(normalWorld[1],normalWorld[1]),dot(normalWorld[2],normalWorld[2]));vertexOutputs.vNormalW=normalize(normalWorld*vertexOutputs.vNormalW);\n#else\n#ifdef NONUNIFORMSCALING\nnormalWorld=transposeMat3(inverseMat3(normalWorld));\n#endif\nvertexOutputs.vNormalW=normalize(normalWorld*normalUpdated);\n#endif\n#if defined(USESPHERICALFROMREFLECTIONMAP) && defined(USESPHERICALINVERTEX)\nvar reflectionVector: vec3f= (uniforms.reflectionMatrix* vec4f(vertexOutputs.vNormalW,0)).xyz;\n#ifdef REFLECTIONMAP_OPPOSITEZ\nreflectionVector.z*=-1.0;\n#endif\nvertexOutputs.vEnvironmentIrradiance=computeEnvironmentIrradiance(reflectionVector);\n#endif\n#endif\n#define CUSTOM_VERTEX_UPDATE_WORLDPOS\n#ifdef MULTIVIEW\nif (gl_ViewID_OVR==0u) {vertexOutputs.position=scene.viewProjection*worldPos;} else {vertexOutputs.position=scene.viewProjectionR*worldPos;}\n#else\nvertexOutputs.position=scene.viewProjection*worldPos;\n#endif\n#if DEBUGMODE>0\nvertexOutputs.vClipSpacePosition=vertexOutputs.position;\n#endif\n#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)\nvertexOutputs.vDirectionW=normalize((finalWorld*vec4f(positionUpdated,0.0)).xyz);\n#endif\n#ifndef UV1\nvar uvUpdated: vec2f= vec2f(0.,0.);\n#endif\n#ifdef MAINUV1\nvertexOutputs.vMainUV1=uvUpdated;\n#endif\n#include<uvVariableDeclaration>[2..7]\n#include<samplerVertexImplementation>(_DEFINENAME_,ALBEDO,_VARYINGNAME_,Albedo,_MATRIXNAME_,albedo,_INFONAME_,AlbedoInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail,_MATRIXNAME_,detail,_INFONAME_,DetailInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_MATRIXNAME_,ambient,_INFONAME_,AmbientInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_MATRIXNAME_,opacity,_INFONAME_,OpacityInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_MATRIXNAME_,emissive,_INFONAME_,EmissiveInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_MATRIXNAME_,lightmap,_INFONAME_,LightmapInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,REFLECTIVITY,_VARYINGNAME_,Reflectivity,_MATRIXNAME_,reflectivity,_INFONAME_,ReflectivityInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,MICROSURFACEMAP,_VARYINGNAME_,MicroSurfaceSampler,_MATRIXNAME_,microSurfaceSampler,_INFONAME_,MicroSurfaceSamplerInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,METALLIC_REFLECTANCE,_VARYINGNAME_,MetallicReflectance,_MATRIXNAME_,metallicReflectance,_INFONAME_,MetallicReflectanceInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,REFLECTANCE,_VARYINGNAME_,Reflectance,_MATRIXNAME_,reflectance,_INFONAME_,ReflectanceInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_MATRIXNAME_,bump,_INFONAME_,BumpInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_MATRIXNAME_,decal,_INFONAME_,DecalInfos.x)\n#ifdef CLEARCOAT\n#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_TEXTURE,_VARYINGNAME_,ClearCoat,_MATRIXNAME_,clearCoat,_INFONAME_,ClearCoatInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_TEXTURE_ROUGHNESS,_VARYINGNAME_,ClearCoatRoughness,_MATRIXNAME_,clearCoatRoughness,_INFONAME_,ClearCoatInfos.z)\n#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_BUMP,_VARYINGNAME_,ClearCoatBump,_MATRIXNAME_,clearCoatBump,_INFONAME_,ClearCoatBumpInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_TINT_TEXTURE,_VARYINGNAME_,ClearCoatTint,_MATRIXNAME_,clearCoatTint,_INFONAME_,ClearCoatTintInfos.x)\n#endif\n#ifdef IRIDESCENCE\n#include<samplerVertexImplementation>(_DEFINENAME_,IRIDESCENCE_TEXTURE,_VARYINGNAME_,Iridescence,_MATRIXNAME_,iridescence,_INFONAME_,IridescenceInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,IRIDESCENCE_THICKNESS_TEXTURE,_VARYINGNAME_,IridescenceThickness,_MATRIXNAME_,iridescenceThickness,_INFONAME_,IridescenceInfos.z)\n#endif\n#ifdef SHEEN\n#include<samplerVertexImplementation>(_DEFINENAME_,SHEEN_TEXTURE,_VARYINGNAME_,Sheen,_MATRIXNAME_,sheen,_INFONAME_,SheenInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,SHEEN_TEXTURE_ROUGHNESS,_VARYINGNAME_,SheenRoughness,_MATRIXNAME_,sheenRoughness,_INFONAME_,SheenInfos.z)\n#endif\n#ifdef ANISOTROPIC\n#include<samplerVertexImplementation>(_DEFINENAME_,ANISOTROPIC_TEXTURE,_VARYINGNAME_,Anisotropy,_MATRIXNAME_,anisotropy,_INFONAME_,AnisotropyInfos.x)\n#endif\n#ifdef SUBSURFACE\n#include<samplerVertexImplementation>(_DEFINENAME_,SS_THICKNESSANDMASK_TEXTURE,_VARYINGNAME_,Thickness,_MATRIXNAME_,thickness,_INFONAME_,ThicknessInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,SS_REFRACTIONINTENSITY_TEXTURE,_VARYINGNAME_,RefractionIntensity,_MATRIXNAME_,refractionIntensity,_INFONAME_,RefractionIntensityInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,SS_TRANSLUCENCYINTENSITY_TEXTURE,_VARYINGNAME_,TranslucencyIntensity,_MATRIXNAME_,translucencyIntensity,_INFONAME_,TranslucencyIntensityInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,SS_TRANSLUCENCYCOLOR_TEXTURE,_VARYINGNAME_,TranslucencyColor,_MATRIXNAME_,translucencyColor,_INFONAME_,TranslucencyColorInfos.x)\n#endif\n#include<bumpVertex>\n#include<clipPlaneVertex>\n#include<fogVertex>\n#include<shadowsVertex>[0..maxSimultaneousLights]\n#include<vertexColorMixing>\n#include<logDepthVertex>\n#define CUSTOM_VERTEX_MAIN_END\n}`;\n// Sideeffect\nShaderStore.ShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const pbrVertexShaderWGSL = { name, shader };\n//# sourceMappingURL=pbr.vertex.js.map"],"names":[],"mappings":";;;;;;AAAA;AAiCA,MAAM,IAAI,GAAG,iBAAiB,CAAC;AAC/B,MAAM,MAAM,GAAG,CAAC;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,CAAC;AACH;AACA,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAC5C;AACY,MAAC,mBAAmB,GAAG,EAAE,IAAI,EAAE,MAAM;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{S as e}from"./index-D5606AHu.esm.min.js";const n="postprocessVertexShader",t="attribute position: vec2<f32>;uniform scale: vec2<f32>;varying vUV: vec2<f32>;const madd=vec2(0.5,0.5);\n#define CUSTOM_VERTEX_DEFINITIONS\n@vertex\nfn main(input : VertexInputs)->FragmentInputs {\n#define CUSTOM_VERTEX_MAIN_BEGIN\nvertexOutputs.vUV=(vertexInputs.position*madd+madd)*uniforms.scale;vertexOutputs.position=vec4(vertexInputs.position,0.0,1.0);\n#define CUSTOM_VERTEX_MAIN_END\n}\n";e.ShadersStoreWGSL[n]=t;const s={name:n,shader:t};export{s as postprocessVertexShaderWGSL};
|
|
2
|
+
//# sourceMappingURL=postprocess.vertex-B0ei94Dw.esm.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postprocess.vertex-B0ei94Dw.esm.min.js","sources":["../../../../../dev/core/dist/ShadersWGSL/postprocess.vertex.js"],"sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../Engines/shaderStore\";\nconst name = \"postprocessVertexShader\";\nconst shader = `attribute position: vec2<f32>;uniform scale: vec2<f32>;varying vUV: vec2<f32>;const madd=vec2(0.5,0.5);\n#define CUSTOM_VERTEX_DEFINITIONS\n@vertex\nfn main(input : VertexInputs)->FragmentInputs {\n#define CUSTOM_VERTEX_MAIN_BEGIN\nvertexOutputs.vUV=(vertexInputs.position*madd+madd)*uniforms.scale;vertexOutputs.position=vec4(vertexInputs.position,0.0,1.0);\n#define CUSTOM_VERTEX_MAIN_END\n}\n`;\n// Sideeffect\nShaderStore.ShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const postprocessVertexShaderWGSL = { name, shader };\n//# sourceMappingURL=postprocess.vertex.js.map"],"names":["name","shader","ShaderStore","ShadersStoreWGSL","postprocessVertexShaderWGSL"],"mappings":"gDAEA,MAAMA,EAAO,0BACPC,EAAS,8YAUfC,EAAYC,iBAAiBH,GAAQC,EAEzB,MAACG,EAA8B,CAAEJ,OAAMC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { S as ShaderStore } from './index-4QQveomY.esm.js';
|
|
2
|
+
|
|
3
|
+
// Do not edit.
|
|
4
|
+
const name = "postprocessVertexShader";
|
|
5
|
+
const shader = `attribute position: vec2<f32>;uniform scale: vec2<f32>;varying vUV: vec2<f32>;const madd=vec2(0.5,0.5);
|
|
6
|
+
#define CUSTOM_VERTEX_DEFINITIONS
|
|
7
|
+
@vertex
|
|
8
|
+
fn main(input : VertexInputs)->FragmentInputs {
|
|
9
|
+
#define CUSTOM_VERTEX_MAIN_BEGIN
|
|
10
|
+
vertexOutputs.vUV=(vertexInputs.position*madd+madd)*uniforms.scale;vertexOutputs.position=vec4(vertexInputs.position,0.0,1.0);
|
|
11
|
+
#define CUSTOM_VERTEX_MAIN_END
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
// Sideeffect
|
|
15
|
+
ShaderStore.ShadersStoreWGSL[name] = shader;
|
|
16
|
+
/** @internal */
|
|
17
|
+
const postprocessVertexShaderWGSL = { name, shader };
|
|
18
|
+
|
|
19
|
+
export { postprocessVertexShaderWGSL };
|
|
20
|
+
//# sourceMappingURL=postprocess.vertex-r5NscKzh.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postprocess.vertex-r5NscKzh.esm.js","sources":["../../../../../dev/core/dist/ShadersWGSL/postprocess.vertex.js"],"sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../Engines/shaderStore\";\nconst name = \"postprocessVertexShader\";\nconst shader = `attribute position: vec2<f32>;uniform scale: vec2<f32>;varying vUV: vec2<f32>;const madd=vec2(0.5,0.5);\n#define CUSTOM_VERTEX_DEFINITIONS\n@vertex\nfn main(input : VertexInputs)->FragmentInputs {\n#define CUSTOM_VERTEX_MAIN_BEGIN\nvertexOutputs.vUV=(vertexInputs.position*madd+madd)*uniforms.scale;vertexOutputs.position=vec4(vertexInputs.position,0.0,1.0);\n#define CUSTOM_VERTEX_MAIN_END\n}\n`;\n// Sideeffect\nShaderStore.ShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const postprocessVertexShaderWGSL = { name, shader };\n//# sourceMappingURL=postprocess.vertex.js.map"],"names":[],"mappings":";;AAAA;AAEA,MAAM,IAAI,GAAG,yBAAyB,CAAC;AACvC,MAAM,MAAM,GAAG,CAAC;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AACA,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAC5C;AACY,MAAC,2BAA2B,GAAG,EAAE,IAAI,EAAE,MAAM;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{T as e,C as t,c as i,L as r,b1 as T,f as s}from"./index-D5606AHu.esm.min.js";function _(e,i,r,T){let s,_=1;T===t.TEXTURETYPE_FLOAT?s=new Float32Array(i*r*4):T===t.TEXTURETYPE_HALF_FLOAT?(s=new Uint16Array(i*r*4),_=15360):s=T===t.TEXTURETYPE_UNSIGNED_INTEGER?new Uint32Array(i*r*4):new Uint8Array(i*r*4);for(let t=0;t<i;t++)for(let T=0;T<r;T++){const r=3*(T*i+t),a=4*(T*i+t);s[a+0]=e[r+0],s[a+1]=e[r+1],s[a+2]=e[r+2],s[a+3]=_}return s}function a(e){return function(r,T,s,_,a,E,n,h,l=null,o=t.TEXTURETYPE_UNSIGNED_INT){const R=e?this._gl.TEXTURE_3D:this._gl.TEXTURE_2D_ARRAY,u=new i(this,e?10:11);u.baseWidth=T,u.baseHeight=s,u.baseDepth=_,u.width=T,u.height=s,u.depth=_,u.format=a,u.type=o,u.generateMipMaps=E,u.samplingMode=h,e?u.is3D=!0:u.is2DArray=!0,this._doNotHandleContextLost||(u._bufferView=r),e?this.updateRawTexture3D(u,r,a,n,l,o):this.updateRawTexture2DArray(u,r,a,n,l,o),this._bindTextureDirectly(R,u,!0);const g=this._getSamplingParameters(h,E);return this._gl.texParameteri(R,this._gl.TEXTURE_MAG_FILTER,g.mag),this._gl.texParameteri(R,this._gl.TEXTURE_MIN_FILTER,g.min),E&&this._gl.generateMipmap(R),this._bindTextureDirectly(R,null),this._internalTexturesCache.push(u),u}}function E(e){return function(i,r,T,s,_=null,a=t.TEXTURETYPE_UNSIGNED_INT){const E=e?this._gl.TEXTURE_3D:this._gl.TEXTURE_2D_ARRAY,n=this._getWebGLTextureType(a),h=this._getInternalFormat(T),l=this._getRGBABufferInternalSizedFormat(a,T);this._bindTextureDirectly(E,i,!0),this._unpackFlipY(void 0===s||!!s),this._doNotHandleContextLost||(i._bufferView=r,i.format=T,i.invertY=s,i._compression=_),i.width%4!=0&&this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,1),_&&r?this._gl.compressedTexImage3D(E,0,this.getCaps().s3tc[_],i.width,i.height,i.depth,0,r):this._gl.texImage3D(E,0,l,i.width,i.height,i.depth,0,h,n,r),i.generateMipMaps&&this._gl.generateMipmap(E),this._bindTextureDirectly(E,null),i.isReady=!0}}e.prototype.updateRawTexture=function(e,i,r,T,s=null,_=t.TEXTURETYPE_UNSIGNED_INT,a=!1){if(!e)return;const E=this._getRGBABufferInternalSizedFormat(_,r,a),n=this._getInternalFormat(r),h=this._getWebGLTextureType(_);this._bindTextureDirectly(this._gl.TEXTURE_2D,e,!0),this._unpackFlipY(void 0===T||!!T),this._doNotHandleContextLost||(e._bufferView=i,e.format=r,e.type=_,e.invertY=T,e._compression=s),e.width%4!=0&&this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,1),s&&i?this._gl.compressedTexImage2D(this._gl.TEXTURE_2D,0,this.getCaps().s3tc[s],e.width,e.height,0,i):this._gl.texImage2D(this._gl.TEXTURE_2D,0,E,e.width,e.height,0,n,h,i),e.generateMipMaps&&this._gl.generateMipmap(this._gl.TEXTURE_2D),this._bindTextureDirectly(this._gl.TEXTURE_2D,null),e.isReady=!0},e.prototype.createRawTexture=function(e,r,T,s,_,a,E,n=null,h=t.TEXTURETYPE_UNSIGNED_INT,l=0,o=!1){const R=new i(this,3);R.baseWidth=r,R.baseHeight=T,R.width=r,R.height=T,R.format=s,R.generateMipMaps=_,R.samplingMode=E,R.invertY=a,R._compression=n,R.type=h,R._useSRGBBuffer=this._getUseSRGBBuffer(o,!_),this._doNotHandleContextLost||(R._bufferView=e),this.updateRawTexture(R,e,s,a,n,h,R._useSRGBBuffer),this._bindTextureDirectly(this._gl.TEXTURE_2D,R,!0);const u=this._getSamplingParameters(E,_);return this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_MAG_FILTER,u.mag),this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_MIN_FILTER,u.min),_&&this._gl.generateMipmap(this._gl.TEXTURE_2D),this._bindTextureDirectly(this._gl.TEXTURE_2D,null),this._internalTexturesCache.push(R),R},e.prototype.createRawCubeTexture=function(e,s,_,a,E,n,h,l=null){const o=this._gl,R=new i(this,8);R.isCube=!0,R.format=_,R.type=a,this._doNotHandleContextLost||(R._bufferViewArray=e);const u=this._getWebGLTextureType(a);let g=this._getInternalFormat(_);g===o.RGB&&(g=o.RGBA),u!==o.FLOAT||this._caps.textureFloatLinearFiltering?u!==this._gl.HALF_FLOAT_OES||this._caps.textureHalfFloatLinearFiltering?u!==o.FLOAT||this._caps.textureFloatRender?u!==o.HALF_FLOAT||this._caps.colorBufferFloat||(E=!1,r.Warn("Render to half float textures is not supported. Mipmap generation forced to false.")):(E=!1,r.Warn("Render to float textures is not supported. Mipmap generation forced to false.")):(E=!1,h=t.TEXTURE_NEAREST_SAMPLINGMODE,r.Warn("Half float texture filtering is not supported. Mipmap generation and sampling mode are forced to false and TEXTURE_NEAREST_SAMPLINGMODE, respectively.")):(E=!1,h=t.TEXTURE_NEAREST_SAMPLINGMODE,r.Warn("Float texture filtering is not supported. Mipmap generation and sampling mode are forced to false and TEXTURE_NEAREST_SAMPLINGMODE, respectively."));const p=s,A=p;R.width=p,R.height=A,R.invertY=n,R._compression=l;if(!this.needPOTTextures||T(R.width)&&T(R.height)||(E=!1),e)this.updateRawCubeTexture(R,e,_,a,n,l);else{const e=this._getRGBABufferInternalSizedFormat(a),t=0;this._bindTextureDirectly(o.TEXTURE_CUBE_MAP,R,!0);for(let i=0;i<6;i++)l?o.compressedTexImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+i,t,this.getCaps().s3tc[l],R.width,R.height,0,void 0):o.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+i,t,e,R.width,R.height,0,g,u,null);this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,null)}this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,R,!0),e&&E&&this._gl.generateMipmap(this._gl.TEXTURE_CUBE_MAP);const d=this._getSamplingParameters(h,E);return o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_MAG_FILTER,d.mag),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_MIN_FILTER,d.min),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_WRAP_S,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_WRAP_T,o.CLAMP_TO_EDGE),this._bindTextureDirectly(o.TEXTURE_CUBE_MAP,null),R.generateMipMaps=E,R.samplingMode=h,R.isReady=!0,R},e.prototype.updateRawCubeTexture=function(e,t,i,r,s,a=null,E=0){e._bufferViewArray=t,e.format=i,e.type=r,e.invertY=s,e._compression=a;const n=this._gl,h=this._getWebGLTextureType(r);let l=this._getInternalFormat(i);const o=this._getRGBABufferInternalSizedFormat(r);let R=!1;l===n.RGB&&(l=n.RGBA,R=!0),this._bindTextureDirectly(n.TEXTURE_CUBE_MAP,e,!0),this._unpackFlipY(void 0===s||!!s),e.width%4!=0&&n.pixelStorei(n.UNPACK_ALIGNMENT,1);for(let i=0;i<6;i++){let T=t[i];a?n.compressedTexImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+i,E,this.getCaps().s3tc[a],e.width,e.height,0,T):(R&&(T=_(T,e.width,e.height,r)),n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+i,E,o,e.width,e.height,0,l,h,T))}(!this.needPOTTextures||T(e.width)&&T(e.height))&&e.generateMipMaps&&0===E&&this._gl.generateMipmap(this._gl.TEXTURE_CUBE_MAP),this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,null),e.isReady=!0},e.prototype.createRawCubeTextureFromUrl=function(e,i,r,T,s,a,E,n,h=null,l=null,o=t.TEXTURE_TRILINEAR_SAMPLINGMODE,R=!1){const u=this._gl,g=this.createRawCubeTexture(null,r,T,s,!a,R,o,null);i?.addPendingData(g),g.url=e,g.isReady=!1,this._internalTexturesCache.push(g);const p=e=>{const t=g.width,r=E(e);if(r){if(n){const e=this._getWebGLTextureType(s);let i=this._getInternalFormat(T);const a=this._getRGBABufferInternalSizedFormat(s);let E=!1;i===u.RGB&&(i=u.RGBA,E=!0),this._bindTextureDirectly(u.TEXTURE_CUBE_MAP,g,!0),this._unpackFlipY(!1);const h=n(r);for(let r=0;r<h.length;r++){const T=t>>r;for(let t=0;t<6;t++){let n=h[r][t];E&&(n=_(n,T,T,s)),u.texImage2D(t,r,a,T,T,0,i,e,n)}}this._bindTextureDirectly(u.TEXTURE_CUBE_MAP,null)}else this.updateRawCubeTexture(g,r,T,s,R);g.isReady=!0,i?.removePendingData(g),g.onLoadedObservable.notifyObservers(g),g.onLoadedObservable.clear(),h&&h()}};return this._loadFile(e,(e=>{p(e)}),void 0,i?.offlineProvider,!0,((e,t)=>{i?.removePendingData(g),l&&e&&l(e.status+" "+e.statusText,t)})),g},e.prototype.createRawTexture2DArray=a(!1),e.prototype.createRawTexture3D=a(!0),e.prototype.updateRawTexture2DArray=E(!1),e.prototype.updateRawTexture3D=E(!0);class n extends s{constructor(e,i,r,T,_,a=!0,E=!1,n=t.TEXTURE_TRILINEAR_SAMPLINGMODE,h=t.TEXTURETYPE_UNSIGNED_INT,l,o){super(null,_,!a,E,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),this.format=T,this._engine&&(this._engine._caps.textureFloatLinearFiltering||h!==t.TEXTURETYPE_FLOAT||(n=t.TEXTURE_NEAREST_SAMPLINGMODE),this._engine._caps.textureHalfFloatLinearFiltering||h!==t.TEXTURETYPE_HALF_FLOAT||(n=t.TEXTURE_NEAREST_SAMPLINGMODE),this._texture=this._engine.createRawTexture(e,i,r,T,a,E,n,null,h,l??0,o??!1),this.wrapU=s.CLAMP_ADDRESSMODE,this.wrapV=s.CLAMP_ADDRESSMODE)}update(e){this._getEngine().updateRawTexture(this._texture,e,this._texture.format,this._texture.invertY,null,this._texture.type,this._texture._useSRGBBuffer)}clone(){if(!this._texture)return super.clone();const e=new n(null,this.getSize().width,this.getSize().height,this.format,this.getScene(),this._texture.generateMipMaps,this._invertY,this.samplingMode,this._texture.type,this._texture._creationFlags,this._useSRGBBuffer);return e._texture=this._texture,this._texture.incrementReferences(),e}static CreateLuminanceTexture(e,i,r,T,s=!0,_=!1,a=t.TEXTURE_TRILINEAR_SAMPLINGMODE){return new n(e,i,r,t.TEXTUREFORMAT_LUMINANCE,T,s,_,a)}static CreateLuminanceAlphaTexture(e,i,r,T,s=!0,_=!1,a=t.TEXTURE_TRILINEAR_SAMPLINGMODE){return new n(e,i,r,t.TEXTUREFORMAT_LUMINANCE_ALPHA,T,s,_,a)}static CreateAlphaTexture(e,i,r,T,s=!0,_=!1,a=t.TEXTURE_TRILINEAR_SAMPLINGMODE){return new n(e,i,r,t.TEXTUREFORMAT_ALPHA,T,s,_,a)}static CreateRGBTexture(e,i,r,T,s=!0,_=!1,a=t.TEXTURE_TRILINEAR_SAMPLINGMODE,E=t.TEXTURETYPE_UNSIGNED_INT,h=0,l=!1){return new n(e,i,r,t.TEXTUREFORMAT_RGB,T,s,_,a,E,h,l)}static CreateRGBATexture(e,i,r,T,s=!0,_=!1,a=t.TEXTURE_TRILINEAR_SAMPLINGMODE,E=t.TEXTURETYPE_UNSIGNED_INT,h=0,l=!1){return new n(e,i,r,t.TEXTUREFORMAT_RGBA,T,s,_,a,E,h,l)}static CreateRGBAStorageTexture(e,i,r,T,s=!0,_=!1,a=t.TEXTURE_TRILINEAR_SAMPLINGMODE,E=t.TEXTURETYPE_UNSIGNED_INT,h=!1){return new n(e,i,r,t.TEXTUREFORMAT_RGBA,T,s,_,a,E,t.TEXTURE_CREATIONFLAG_STORAGE,h)}static CreateRTexture(e,i,r,T,_=!0,a=!1,E=s.TRILINEAR_SAMPLINGMODE,h=t.TEXTURETYPE_FLOAT){return new n(e,i,r,t.TEXTUREFORMAT_R,T,_,a,E,h)}static CreateRStorageTexture(e,i,r,T,_=!0,a=!1,E=s.TRILINEAR_SAMPLINGMODE,h=t.TEXTURETYPE_FLOAT){return new n(e,i,r,t.TEXTUREFORMAT_R,T,_,a,E,h,t.TEXTURE_CREATIONFLAG_STORAGE)}}export{n as R};
|
|
2
|
+
//# sourceMappingURL=rawTexture-Bmw0auoS.esm.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rawTexture-Bmw0auoS.esm.min.js","sources":["../../../../../dev/core/dist/Engines/Extensions/engine.rawTexture.js","../../../../../dev/core/dist/Materials/Textures/rawTexture.js"],"sourcesContent":["import { InternalTexture } from \"../../Materials/Textures/internalTexture\";\nimport { Logger } from \"../../Misc/logger\";\nimport { Constants } from \"../constants\";\nimport { ThinEngine } from \"../thinEngine\";\nimport { IsExponentOfTwo } from \"../../Misc/tools.functions\";\nThinEngine.prototype.updateRawTexture = function (texture, data, format, invertY, compression = null, type = Constants.TEXTURETYPE_UNSIGNED_INT, useSRGBBuffer = false) {\n if (!texture) {\n return;\n }\n // Babylon's internalSizedFomat but gl's texImage2D internalFormat\n const internalSizedFomat = this._getRGBABufferInternalSizedFormat(type, format, useSRGBBuffer);\n // Babylon's internalFormat but gl's texImage2D format\n const internalFormat = this._getInternalFormat(format);\n const textureType = this._getWebGLTextureType(type);\n this._bindTextureDirectly(this._gl.TEXTURE_2D, texture, true);\n this._unpackFlipY(invertY === undefined ? true : invertY ? true : false);\n if (!this._doNotHandleContextLost) {\n texture._bufferView = data;\n texture.format = format;\n texture.type = type;\n texture.invertY = invertY;\n texture._compression = compression;\n }\n if (texture.width % 4 !== 0) {\n this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT, 1);\n }\n if (compression && data) {\n this._gl.compressedTexImage2D(this._gl.TEXTURE_2D, 0, this.getCaps().s3tc[compression], texture.width, texture.height, 0, data);\n }\n else {\n this._gl.texImage2D(this._gl.TEXTURE_2D, 0, internalSizedFomat, texture.width, texture.height, 0, internalFormat, textureType, data);\n }\n if (texture.generateMipMaps) {\n this._gl.generateMipmap(this._gl.TEXTURE_2D);\n }\n this._bindTextureDirectly(this._gl.TEXTURE_2D, null);\n // this.resetTextureCache();\n texture.isReady = true;\n};\nThinEngine.prototype.createRawTexture = function (data, width, height, format, generateMipMaps, invertY, samplingMode, compression = null, type = Constants.TEXTURETYPE_UNSIGNED_INT, \n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ncreationFlags = 0, useSRGBBuffer = false) {\n const texture = new InternalTexture(this, 3 /* InternalTextureSource.Raw */);\n texture.baseWidth = width;\n texture.baseHeight = height;\n texture.width = width;\n texture.height = height;\n texture.format = format;\n texture.generateMipMaps = generateMipMaps;\n texture.samplingMode = samplingMode;\n texture.invertY = invertY;\n texture._compression = compression;\n texture.type = type;\n texture._useSRGBBuffer = this._getUseSRGBBuffer(useSRGBBuffer, !generateMipMaps);\n if (!this._doNotHandleContextLost) {\n texture._bufferView = data;\n }\n this.updateRawTexture(texture, data, format, invertY, compression, type, texture._useSRGBBuffer);\n this._bindTextureDirectly(this._gl.TEXTURE_2D, texture, true);\n // Filters\n const filters = this._getSamplingParameters(samplingMode, generateMipMaps);\n this._gl.texParameteri(this._gl.TEXTURE_2D, this._gl.TEXTURE_MAG_FILTER, filters.mag);\n this._gl.texParameteri(this._gl.TEXTURE_2D, this._gl.TEXTURE_MIN_FILTER, filters.min);\n if (generateMipMaps) {\n this._gl.generateMipmap(this._gl.TEXTURE_2D);\n }\n this._bindTextureDirectly(this._gl.TEXTURE_2D, null);\n this._internalTexturesCache.push(texture);\n return texture;\n};\nThinEngine.prototype.createRawCubeTexture = function (data, size, format, type, generateMipMaps, invertY, samplingMode, compression = null) {\n const gl = this._gl;\n const texture = new InternalTexture(this, 8 /* InternalTextureSource.CubeRaw */);\n texture.isCube = true;\n texture.format = format;\n texture.type = type;\n if (!this._doNotHandleContextLost) {\n texture._bufferViewArray = data;\n }\n const textureType = this._getWebGLTextureType(type);\n let internalFormat = this._getInternalFormat(format);\n if (internalFormat === gl.RGB) {\n internalFormat = gl.RGBA;\n }\n // Mipmap generation needs a sized internal format that is both color-renderable and texture-filterable\n if (textureType === gl.FLOAT && !this._caps.textureFloatLinearFiltering) {\n generateMipMaps = false;\n samplingMode = Constants.TEXTURE_NEAREST_SAMPLINGMODE;\n Logger.Warn(\"Float texture filtering is not supported. Mipmap generation and sampling mode are forced to false and TEXTURE_NEAREST_SAMPLINGMODE, respectively.\");\n }\n else if (textureType === this._gl.HALF_FLOAT_OES && !this._caps.textureHalfFloatLinearFiltering) {\n generateMipMaps = false;\n samplingMode = Constants.TEXTURE_NEAREST_SAMPLINGMODE;\n Logger.Warn(\"Half float texture filtering is not supported. Mipmap generation and sampling mode are forced to false and TEXTURE_NEAREST_SAMPLINGMODE, respectively.\");\n }\n else if (textureType === gl.FLOAT && !this._caps.textureFloatRender) {\n generateMipMaps = false;\n Logger.Warn(\"Render to float textures is not supported. Mipmap generation forced to false.\");\n }\n else if (textureType === gl.HALF_FLOAT && !this._caps.colorBufferFloat) {\n generateMipMaps = false;\n Logger.Warn(\"Render to half float textures is not supported. Mipmap generation forced to false.\");\n }\n const width = size;\n const height = width;\n texture.width = width;\n texture.height = height;\n texture.invertY = invertY;\n texture._compression = compression;\n // Double check on POT to generate Mips.\n const isPot = !this.needPOTTextures || (IsExponentOfTwo(texture.width) && IsExponentOfTwo(texture.height));\n if (!isPot) {\n generateMipMaps = false;\n }\n // Upload data if needed. The texture won't be ready until then.\n if (data) {\n this.updateRawCubeTexture(texture, data, format, type, invertY, compression);\n }\n else {\n const internalSizedFomat = this._getRGBABufferInternalSizedFormat(type);\n const level = 0;\n this._bindTextureDirectly(gl.TEXTURE_CUBE_MAP, texture, true);\n for (let faceIndex = 0; faceIndex < 6; faceIndex++) {\n if (compression) {\n gl.compressedTexImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, level, this.getCaps().s3tc[compression], texture.width, texture.height, 0, undefined);\n }\n else {\n gl.texImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, level, internalSizedFomat, texture.width, texture.height, 0, internalFormat, textureType, null);\n }\n }\n this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP, null);\n }\n this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP, texture, true);\n // Filters\n if (data && generateMipMaps) {\n this._gl.generateMipmap(this._gl.TEXTURE_CUBE_MAP);\n }\n const filters = this._getSamplingParameters(samplingMode, generateMipMaps);\n gl.texParameteri(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_MAG_FILTER, filters.mag);\n gl.texParameteri(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_MIN_FILTER, filters.min);\n gl.texParameteri(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n this._bindTextureDirectly(gl.TEXTURE_CUBE_MAP, null);\n texture.generateMipMaps = generateMipMaps;\n texture.samplingMode = samplingMode;\n texture.isReady = true;\n return texture;\n};\nThinEngine.prototype.updateRawCubeTexture = function (texture, data, format, type, invertY, compression = null, level = 0) {\n texture._bufferViewArray = data;\n texture.format = format;\n texture.type = type;\n texture.invertY = invertY;\n texture._compression = compression;\n const gl = this._gl;\n const textureType = this._getWebGLTextureType(type);\n let internalFormat = this._getInternalFormat(format);\n const internalSizedFomat = this._getRGBABufferInternalSizedFormat(type);\n let needConversion = false;\n if (internalFormat === gl.RGB) {\n internalFormat = gl.RGBA;\n needConversion = true;\n }\n this._bindTextureDirectly(gl.TEXTURE_CUBE_MAP, texture, true);\n this._unpackFlipY(invertY === undefined ? true : invertY ? true : false);\n if (texture.width % 4 !== 0) {\n gl.pixelStorei(gl.UNPACK_ALIGNMENT, 1);\n }\n // Data are known to be in +X +Y +Z -X -Y -Z\n for (let faceIndex = 0; faceIndex < 6; faceIndex++) {\n let faceData = data[faceIndex];\n if (compression) {\n gl.compressedTexImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, level, this.getCaps().s3tc[compression], texture.width, texture.height, 0, faceData);\n }\n else {\n if (needConversion) {\n faceData = _convertRGBtoRGBATextureData(faceData, texture.width, texture.height, type);\n }\n gl.texImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, level, internalSizedFomat, texture.width, texture.height, 0, internalFormat, textureType, faceData);\n }\n }\n const isPot = !this.needPOTTextures || (IsExponentOfTwo(texture.width) && IsExponentOfTwo(texture.height));\n if (isPot && texture.generateMipMaps && level === 0) {\n this._gl.generateMipmap(this._gl.TEXTURE_CUBE_MAP);\n }\n this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP, null);\n // this.resetTextureCache();\n texture.isReady = true;\n};\nThinEngine.prototype.createRawCubeTextureFromUrl = function (url, scene, size, format, type, noMipmap, callback, mipmapGenerator, onLoad = null, onError = null, samplingMode = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE, invertY = false) {\n const gl = this._gl;\n const texture = this.createRawCubeTexture(null, size, format, type, !noMipmap, invertY, samplingMode, null);\n scene?.addPendingData(texture);\n texture.url = url;\n texture.isReady = false;\n this._internalTexturesCache.push(texture);\n const onerror = (request, exception) => {\n scene?.removePendingData(texture);\n if (onError && request) {\n onError(request.status + \" \" + request.statusText, exception);\n }\n };\n const internalCallback = (data) => {\n const width = texture.width;\n const faceDataArrays = callback(data);\n if (!faceDataArrays) {\n return;\n }\n if (mipmapGenerator) {\n const textureType = this._getWebGLTextureType(type);\n let internalFormat = this._getInternalFormat(format);\n const internalSizedFomat = this._getRGBABufferInternalSizedFormat(type);\n let needConversion = false;\n if (internalFormat === gl.RGB) {\n internalFormat = gl.RGBA;\n needConversion = true;\n }\n this._bindTextureDirectly(gl.TEXTURE_CUBE_MAP, texture, true);\n this._unpackFlipY(false);\n const mipData = mipmapGenerator(faceDataArrays);\n for (let level = 0; level < mipData.length; level++) {\n const mipSize = width >> level;\n for (let faceIndex = 0; faceIndex < 6; faceIndex++) {\n let mipFaceData = mipData[level][faceIndex];\n if (needConversion) {\n mipFaceData = _convertRGBtoRGBATextureData(mipFaceData, mipSize, mipSize, type);\n }\n gl.texImage2D(faceIndex, level, internalSizedFomat, mipSize, mipSize, 0, internalFormat, textureType, mipFaceData);\n }\n }\n this._bindTextureDirectly(gl.TEXTURE_CUBE_MAP, null);\n }\n else {\n this.updateRawCubeTexture(texture, faceDataArrays, format, type, invertY);\n }\n texture.isReady = true;\n // this.resetTextureCache();\n scene?.removePendingData(texture);\n texture.onLoadedObservable.notifyObservers(texture);\n texture.onLoadedObservable.clear();\n if (onLoad) {\n onLoad();\n }\n };\n this._loadFile(url, (data) => {\n internalCallback(data);\n }, undefined, scene?.offlineProvider, true, onerror);\n return texture;\n};\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nfunction _convertRGBtoRGBATextureData(rgbData, width, height, textureType) {\n // Create new RGBA data container.\n let rgbaData;\n let val1 = 1;\n if (textureType === Constants.TEXTURETYPE_FLOAT) {\n rgbaData = new Float32Array(width * height * 4);\n }\n else if (textureType === Constants.TEXTURETYPE_HALF_FLOAT) {\n rgbaData = new Uint16Array(width * height * 4);\n val1 = 15360; // 15360 is the encoding of 1 in half float\n }\n else if (textureType === Constants.TEXTURETYPE_UNSIGNED_INTEGER) {\n rgbaData = new Uint32Array(width * height * 4);\n }\n else {\n rgbaData = new Uint8Array(width * height * 4);\n }\n // Convert each pixel.\n for (let x = 0; x < width; x++) {\n for (let y = 0; y < height; y++) {\n const index = (y * width + x) * 3;\n const newIndex = (y * width + x) * 4;\n // Map Old Value to new value.\n rgbaData[newIndex + 0] = rgbData[index + 0];\n rgbaData[newIndex + 1] = rgbData[index + 1];\n rgbaData[newIndex + 2] = rgbData[index + 2];\n // Add fully opaque alpha channel.\n rgbaData[newIndex + 3] = val1;\n }\n }\n return rgbaData;\n}\n/**\n * Create a function for createRawTexture3D/createRawTexture2DArray\n * @param is3D true for TEXTURE_3D and false for TEXTURE_2D_ARRAY\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nfunction _makeCreateRawTextureFunction(is3D) {\n return function (data, width, height, depth, format, generateMipMaps, invertY, samplingMode, compression = null, textureType = Constants.TEXTURETYPE_UNSIGNED_INT) {\n const target = is3D ? this._gl.TEXTURE_3D : this._gl.TEXTURE_2D_ARRAY;\n const source = is3D ? 10 /* InternalTextureSource.Raw3D */ : 11 /* InternalTextureSource.Raw2DArray */;\n const texture = new InternalTexture(this, source);\n texture.baseWidth = width;\n texture.baseHeight = height;\n texture.baseDepth = depth;\n texture.width = width;\n texture.height = height;\n texture.depth = depth;\n texture.format = format;\n texture.type = textureType;\n texture.generateMipMaps = generateMipMaps;\n texture.samplingMode = samplingMode;\n if (is3D) {\n texture.is3D = true;\n }\n else {\n texture.is2DArray = true;\n }\n if (!this._doNotHandleContextLost) {\n texture._bufferView = data;\n }\n if (is3D) {\n this.updateRawTexture3D(texture, data, format, invertY, compression, textureType);\n }\n else {\n this.updateRawTexture2DArray(texture, data, format, invertY, compression, textureType);\n }\n this._bindTextureDirectly(target, texture, true);\n // Filters\n const filters = this._getSamplingParameters(samplingMode, generateMipMaps);\n this._gl.texParameteri(target, this._gl.TEXTURE_MAG_FILTER, filters.mag);\n this._gl.texParameteri(target, this._gl.TEXTURE_MIN_FILTER, filters.min);\n if (generateMipMaps) {\n this._gl.generateMipmap(target);\n }\n this._bindTextureDirectly(target, null);\n this._internalTexturesCache.push(texture);\n return texture;\n };\n}\nThinEngine.prototype.createRawTexture2DArray = _makeCreateRawTextureFunction(false);\nThinEngine.prototype.createRawTexture3D = _makeCreateRawTextureFunction(true);\n/**\n * Create a function for updateRawTexture3D/updateRawTexture2DArray\n * @param is3D true for TEXTURE_3D and false for TEXTURE_2D_ARRAY\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nfunction _makeUpdateRawTextureFunction(is3D) {\n return function (texture, data, format, invertY, compression = null, textureType = Constants.TEXTURETYPE_UNSIGNED_INT) {\n const target = is3D ? this._gl.TEXTURE_3D : this._gl.TEXTURE_2D_ARRAY;\n const internalType = this._getWebGLTextureType(textureType);\n const internalFormat = this._getInternalFormat(format);\n const internalSizedFomat = this._getRGBABufferInternalSizedFormat(textureType, format);\n this._bindTextureDirectly(target, texture, true);\n this._unpackFlipY(invertY === undefined ? true : invertY ? true : false);\n if (!this._doNotHandleContextLost) {\n texture._bufferView = data;\n texture.format = format;\n texture.invertY = invertY;\n texture._compression = compression;\n }\n if (texture.width % 4 !== 0) {\n this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT, 1);\n }\n if (compression && data) {\n this._gl.compressedTexImage3D(target, 0, this.getCaps().s3tc[compression], texture.width, texture.height, texture.depth, 0, data);\n }\n else {\n this._gl.texImage3D(target, 0, internalSizedFomat, texture.width, texture.height, texture.depth, 0, internalFormat, internalType, data);\n }\n if (texture.generateMipMaps) {\n this._gl.generateMipmap(target);\n }\n this._bindTextureDirectly(target, null);\n // this.resetTextureCache();\n texture.isReady = true;\n };\n}\nThinEngine.prototype.updateRawTexture2DArray = _makeUpdateRawTextureFunction(false);\nThinEngine.prototype.updateRawTexture3D = _makeUpdateRawTextureFunction(true);\n//# sourceMappingURL=engine.rawTexture.js.map","import { Texture } from \"./texture\";\nimport { Constants } from \"../../Engines/constants\";\nimport \"../../Engines/Extensions/engine.rawTexture\";\n/**\n * Raw texture can help creating a texture directly from an array of data.\n * This can be super useful if you either get the data from an uncompressed source or\n * if you wish to create your texture pixel by pixel.\n */\nexport class RawTexture extends Texture {\n /**\n * Instantiates a new RawTexture.\n * Raw texture can help creating a texture directly from an array of data.\n * This can be super useful if you either get the data from an uncompressed source or\n * if you wish to create your texture pixel by pixel.\n * @param data define the array of data to use to create the texture (null to create an empty texture)\n * @param width define the width of the texture\n * @param height define the height of the texture\n * @param format define the format of the data (RGB, RGBA... Engine.TEXTUREFORMAT_xxx)\n * @param sceneOrEngine defines the scene or engine the texture will belong to\n * @param generateMipMaps define whether mip maps should be generated or not\n * @param invertY define if the data should be flipped on Y when uploaded to the GPU\n * @param samplingMode define the texture sampling mode (Texture.xxx_SAMPLINGMODE)\n * @param type define the format of the data (int, float... Engine.TEXTURETYPE_xxx)\n * @param creationFlags specific flags to use when creating the texture (Constants.TEXTURE_CREATIONFLAG_STORAGE for storage textures, for eg)\n * @param useSRGBBuffer defines if the texture must be loaded in a sRGB GPU buffer (if supported by the GPU).\n */\n constructor(data, width, height, \n /**\n * Define the format of the data (RGB, RGBA... Engine.TEXTUREFORMAT_xxx)\n */\n format, sceneOrEngine, generateMipMaps = true, invertY = false, samplingMode = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE, type = Constants.TEXTURETYPE_UNSIGNED_INT, creationFlags, useSRGBBuffer) {\n super(null, sceneOrEngine, !generateMipMaps, invertY, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, creationFlags);\n this.format = format;\n if (!this._engine) {\n return;\n }\n if (!this._engine._caps.textureFloatLinearFiltering && type === Constants.TEXTURETYPE_FLOAT) {\n samplingMode = Constants.TEXTURE_NEAREST_SAMPLINGMODE;\n }\n if (!this._engine._caps.textureHalfFloatLinearFiltering && type === Constants.TEXTURETYPE_HALF_FLOAT) {\n samplingMode = Constants.TEXTURE_NEAREST_SAMPLINGMODE;\n }\n this._texture = this._engine.createRawTexture(data, width, height, format, generateMipMaps, invertY, samplingMode, null, type, creationFlags ?? 0, useSRGBBuffer ?? false);\n this.wrapU = Texture.CLAMP_ADDRESSMODE;\n this.wrapV = Texture.CLAMP_ADDRESSMODE;\n }\n /**\n * Updates the texture underlying data.\n * @param data Define the new data of the texture\n */\n update(data) {\n this._getEngine().updateRawTexture(this._texture, data, this._texture.format, this._texture.invertY, null, this._texture.type, this._texture._useSRGBBuffer);\n }\n /**\n * Clones the texture.\n * @returns the cloned texture\n */\n clone() {\n if (!this._texture) {\n return super.clone();\n }\n const rawTexture = new RawTexture(null, this.getSize().width, this.getSize().height, this.format, this.getScene(), this._texture.generateMipMaps, this._invertY, this.samplingMode, this._texture.type, this._texture._creationFlags, this._useSRGBBuffer);\n rawTexture._texture = this._texture;\n this._texture.incrementReferences();\n return rawTexture;\n }\n /**\n * Creates a luminance texture from some data.\n * @param data Define the texture data\n * @param width Define the width of the texture\n * @param height Define the height of the texture\n * @param sceneOrEngine defines the scene or engine the texture will belong to\n * @param generateMipMaps Define whether or not to create mip maps for the texture\n * @param invertY define if the data should be flipped on Y when uploaded to the GPU\n * @param samplingMode define the texture sampling mode (Texture.xxx_SAMPLINGMODE)\n * @returns the luminance texture\n */\n static CreateLuminanceTexture(data, width, height, sceneOrEngine, generateMipMaps = true, invertY = false, samplingMode = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE) {\n return new RawTexture(data, width, height, Constants.TEXTUREFORMAT_LUMINANCE, sceneOrEngine, generateMipMaps, invertY, samplingMode);\n }\n /**\n * Creates a luminance alpha texture from some data.\n * @param data Define the texture data\n * @param width Define the width of the texture\n * @param height Define the height of the texture\n * @param sceneOrEngine defines the scene or engine the texture will belong to\n * @param generateMipMaps Define whether or not to create mip maps for the texture\n * @param invertY define if the data should be flipped on Y when uploaded to the GPU\n * @param samplingMode define the texture sampling mode (Texture.xxx_SAMPLINGMODE)\n * @returns the luminance alpha texture\n */\n static CreateLuminanceAlphaTexture(data, width, height, sceneOrEngine, generateMipMaps = true, invertY = false, samplingMode = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE) {\n return new RawTexture(data, width, height, Constants.TEXTUREFORMAT_LUMINANCE_ALPHA, sceneOrEngine, generateMipMaps, invertY, samplingMode);\n }\n /**\n * Creates an alpha texture from some data.\n * @param data Define the texture data\n * @param width Define the width of the texture\n * @param height Define the height of the texture\n * @param sceneOrEngine defines the scene or engine the texture will belong to\n * @param generateMipMaps Define whether or not to create mip maps for the texture\n * @param invertY define if the data should be flipped on Y when uploaded to the GPU\n * @param samplingMode define the texture sampling mode (Texture.xxx_SAMPLINGMODE)\n * @returns the alpha texture\n */\n static CreateAlphaTexture(data, width, height, sceneOrEngine, generateMipMaps = true, invertY = false, samplingMode = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE) {\n return new RawTexture(data, width, height, Constants.TEXTUREFORMAT_ALPHA, sceneOrEngine, generateMipMaps, invertY, samplingMode);\n }\n /**\n * Creates a RGB texture from some data.\n * @param data Define the texture data\n * @param width Define the width of the texture\n * @param height Define the height of the texture\n * @param sceneOrEngine defines the scene or engine the texture will belong to\n * @param generateMipMaps Define whether or not to create mip maps for the texture\n * @param invertY define if the data should be flipped on Y when uploaded to the GPU\n * @param samplingMode define the texture sampling mode (Texture.xxx_SAMPLINGMODE)\n * @param type define the format of the data (int, float... Engine.TEXTURETYPE_xxx)\n * @param creationFlags specific flags to use when creating the texture (Constants.TEXTURE_CREATIONFLAG_STORAGE for storage textures, for eg)\n * @param useSRGBBuffer defines if the texture must be loaded in a sRGB GPU buffer (if supported by the GPU).\n * @returns the RGB alpha texture\n */\n static CreateRGBTexture(data, width, height, sceneOrEngine, generateMipMaps = true, invertY = false, samplingMode = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE, type = Constants.TEXTURETYPE_UNSIGNED_INT, creationFlags = 0, useSRGBBuffer = false) {\n return new RawTexture(data, width, height, Constants.TEXTUREFORMAT_RGB, sceneOrEngine, generateMipMaps, invertY, samplingMode, type, creationFlags, useSRGBBuffer);\n }\n /**\n * Creates a RGBA texture from some data.\n * @param data Define the texture data\n * @param width Define the width of the texture\n * @param height Define the height of the texture\n * @param sceneOrEngine defines the scene or engine the texture will belong to\n * @param generateMipMaps Define whether or not to create mip maps for the texture\n * @param invertY define if the data should be flipped on Y when uploaded to the GPU\n * @param samplingMode define the texture sampling mode (Texture.xxx_SAMPLINGMODE)\n * @param type define the format of the data (int, float... Engine.TEXTURETYPE_xxx)\n * @param creationFlags specific flags to use when creating the texture (Constants.TEXTURE_CREATIONFLAG_STORAGE for storage textures, for eg)\n * @param useSRGBBuffer defines if the texture must be loaded in a sRGB GPU buffer (if supported by the GPU).\n * @returns the RGBA texture\n */\n static CreateRGBATexture(data, width, height, sceneOrEngine, generateMipMaps = true, invertY = false, samplingMode = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE, type = Constants.TEXTURETYPE_UNSIGNED_INT, creationFlags = 0, useSRGBBuffer = false) {\n return new RawTexture(data, width, height, Constants.TEXTUREFORMAT_RGBA, sceneOrEngine, generateMipMaps, invertY, samplingMode, type, creationFlags, useSRGBBuffer);\n }\n /**\n * Creates a RGBA storage texture from some data.\n * @param data Define the texture data\n * @param width Define the width of the texture\n * @param height Define the height of the texture\n * @param sceneOrEngine defines the scene or engine the texture will belong to\n * @param generateMipMaps Define whether or not to create mip maps for the texture\n * @param invertY define if the data should be flipped on Y when uploaded to the GPU\n * @param samplingMode define the texture sampling mode (Texture.xxx_SAMPLINGMODE)\n * @param type define the format of the data (int, float... Engine.TEXTURETYPE_xxx)\n * @param useSRGBBuffer defines if the texture must be loaded in a sRGB GPU buffer (if supported by the GPU).\n * @returns the RGBA texture\n */\n static CreateRGBAStorageTexture(data, width, height, sceneOrEngine, generateMipMaps = true, invertY = false, samplingMode = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE, type = Constants.TEXTURETYPE_UNSIGNED_INT, useSRGBBuffer = false) {\n return new RawTexture(data, width, height, Constants.TEXTUREFORMAT_RGBA, sceneOrEngine, generateMipMaps, invertY, samplingMode, type, Constants.TEXTURE_CREATIONFLAG_STORAGE, useSRGBBuffer);\n }\n /**\n * Creates a R texture from some data.\n * @param data Define the texture data\n * @param width Define the width of the texture\n * @param height Define the height of the texture\n * @param sceneOrEngine defines the scene or engine the texture will belong to\n * @param generateMipMaps Define whether or not to create mip maps for the texture\n * @param invertY define if the data should be flipped on Y when uploaded to the GPU\n * @param samplingMode define the texture sampling mode (Texture.xxx_SAMPLINGMODE)\n * @param type define the format of the data (int, float... Engine.TEXTURETYPE_xxx)\n * @returns the R texture\n */\n static CreateRTexture(data, width, height, sceneOrEngine, generateMipMaps = true, invertY = false, samplingMode = Texture.TRILINEAR_SAMPLINGMODE, type = Constants.TEXTURETYPE_FLOAT) {\n return new RawTexture(data, width, height, Constants.TEXTUREFORMAT_R, sceneOrEngine, generateMipMaps, invertY, samplingMode, type);\n }\n /**\n * Creates a R storage texture from some data.\n * @param data Define the texture data\n * @param width Define the width of the texture\n * @param height Define the height of the texture\n * @param sceneOrEngine defines the scene or engine the texture will belong to\n * @param generateMipMaps Define whether or not to create mip maps for the texture\n * @param invertY define if the data should be flipped on Y when uploaded to the GPU\n * @param samplingMode define the texture sampling mode (Texture.xxx_SAMPLINGMODE)\n * @param type define the format of the data (int, float... Engine.TEXTURETYPE_xxx)\n * @returns the R texture\n */\n static CreateRStorageTexture(data, width, height, sceneOrEngine, generateMipMaps = true, invertY = false, samplingMode = Texture.TRILINEAR_SAMPLINGMODE, type = Constants.TEXTURETYPE_FLOAT) {\n return new RawTexture(data, width, height, Constants.TEXTUREFORMAT_R, sceneOrEngine, generateMipMaps, invertY, samplingMode, type, Constants.TEXTURE_CREATIONFLAG_STORAGE);\n }\n}\n//# sourceMappingURL=rawTexture.js.map"],"names":["_convertRGBtoRGBATextureData","rgbData","width","height","textureType","rgbaData","val1","Constants","TEXTURETYPE_FLOAT","Float32Array","TEXTURETYPE_HALF_FLOAT","Uint16Array","TEXTURETYPE_UNSIGNED_INTEGER","Uint32Array","Uint8Array","x","y","index","newIndex","_makeCreateRawTextureFunction","is3D","data","depth","format","generateMipMaps","invertY","samplingMode","compression","TEXTURETYPE_UNSIGNED_INT","target","this","_gl","TEXTURE_3D","TEXTURE_2D_ARRAY","texture","InternalTexture","baseWidth","baseHeight","baseDepth","type","is2DArray","_doNotHandleContextLost","_bufferView","updateRawTexture3D","updateRawTexture2DArray","_bindTextureDirectly","filters","_getSamplingParameters","texParameteri","TEXTURE_MAG_FILTER","mag","TEXTURE_MIN_FILTER","min","generateMipmap","_internalTexturesCache","push","_makeUpdateRawTextureFunction","internalType","_getWebGLTextureType","internalFormat","_getInternalFormat","internalSizedFomat","_getRGBABufferInternalSizedFormat","_unpackFlipY","undefined","_compression","pixelStorei","UNPACK_ALIGNMENT","compressedTexImage3D","getCaps","s3tc","texImage3D","isReady","ThinEngine","prototype","updateRawTexture","useSRGBBuffer","TEXTURE_2D","compressedTexImage2D","texImage2D","createRawTexture","creationFlags","_useSRGBBuffer","_getUseSRGBBuffer","createRawCubeTexture","size","gl","isCube","_bufferViewArray","RGB","RGBA","FLOAT","_caps","textureFloatLinearFiltering","HALF_FLOAT_OES","textureHalfFloatLinearFiltering","textureFloatRender","HALF_FLOAT","colorBufferFloat","Logger","Warn","TEXTURE_NEAREST_SAMPLINGMODE","needPOTTextures","IsExponentOfTwo","updateRawCubeTexture","level","TEXTURE_CUBE_MAP","faceIndex","TEXTURE_CUBE_MAP_POSITIVE_X","TEXTURE_WRAP_S","CLAMP_TO_EDGE","TEXTURE_WRAP_T","needConversion","faceData","createRawCubeTextureFromUrl","url","scene","noMipmap","callback","mipmapGenerator","onLoad","onError","TEXTURE_TRILINEAR_SAMPLINGMODE","addPendingData","internalCallback","faceDataArrays","mipData","length","mipSize","mipFaceData","removePendingData","onLoadedObservable","notifyObservers","clear","_loadFile","offlineProvider","request","exception","status","statusText","createRawTexture2DArray","createRawTexture3D","RawTexture","Texture","constructor","sceneOrEngine","super","_engine","_texture","wrapU","CLAMP_ADDRESSMODE","wrapV","update","_getEngine","clone","rawTexture","getSize","getScene","_invertY","_creationFlags","incrementReferences","CreateLuminanceTexture","TEXTUREFORMAT_LUMINANCE","CreateLuminanceAlphaTexture","TEXTUREFORMAT_LUMINANCE_ALPHA","CreateAlphaTexture","TEXTUREFORMAT_ALPHA","CreateRGBTexture","TEXTUREFORMAT_RGB","CreateRGBATexture","TEXTUREFORMAT_RGBA","CreateRGBAStorageTexture","TEXTURE_CREATIONFLAG_STORAGE","CreateRTexture","TRILINEAR_SAMPLINGMODE","TEXTUREFORMAT_R","CreateRStorageTexture"],"mappings":"oFA6PA,SAASA,EAA6BC,EAASC,EAAOC,EAAQC,GAE1D,IAAIC,EACAC,EAAO,EACPF,IAAgBG,EAAUC,kBAC1BH,EAAW,IAAII,aAAaP,EAAQC,EAAS,GAExCC,IAAgBG,EAAUG,wBAC/BL,EAAW,IAA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