@babylonjs/viewer 7.38.0-alpha → 7.39.0
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/configuration/configuration.d.ts +107 -0
- package/configuration/configuration.js +16 -0
- package/configuration/configuration.js.map +1 -0
- package/configuration/configurationCompatibility.d.ts +8 -0
- package/configuration/configurationCompatibility.js +66 -0
- package/configuration/configurationCompatibility.js.map +1 -0
- package/configuration/configurationContainer.d.ts +10 -0
- package/configuration/configurationContainer.js +10 -0
- package/configuration/configurationContainer.js.map +1 -0
- package/configuration/globals.d.ts +6 -0
- package/configuration/globals.js +18 -0
- package/configuration/globals.js.map +1 -0
- package/configuration/index.d.ts +2 -0
- package/configuration/index.js +4 -0
- package/configuration/index.js.map +1 -0
- package/configuration/interfaces/cameraConfiguration.d.ts +31 -0
- package/configuration/interfaces/cameraConfiguration.js +2 -0
- package/configuration/interfaces/cameraConfiguration.js.map +1 -0
- package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -0
- package/configuration/interfaces/colorGradingConfiguration.js +2 -0
- package/configuration/interfaces/colorGradingConfiguration.js.map +1 -0
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -0
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +2 -0
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +1 -0
- package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -0
- package/configuration/interfaces/environmentMapConfiguration.js +2 -0
- package/configuration/interfaces/environmentMapConfiguration.js.map +1 -0
- package/configuration/interfaces/groundConfiguration.d.ts +24 -0
- package/configuration/interfaces/groundConfiguration.js +2 -0
- package/configuration/interfaces/groundConfiguration.js.map +1 -0
- package/configuration/interfaces/imageProcessingConfiguration.d.ts +45 -0
- package/configuration/interfaces/imageProcessingConfiguration.js +2 -0
- package/configuration/interfaces/imageProcessingConfiguration.js.map +1 -0
- package/configuration/interfaces/index.d.ts +15 -0
- package/configuration/interfaces/index.js +16 -0
- package/configuration/interfaces/index.js.map +1 -0
- package/configuration/interfaces/lightConfiguration.d.ts +60 -0
- package/configuration/interfaces/lightConfiguration.js +2 -0
- package/configuration/interfaces/lightConfiguration.js.map +1 -0
- package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -0
- package/configuration/interfaces/modelAnimationConfiguration.js +2 -0
- package/configuration/interfaces/modelAnimationConfiguration.js.map +1 -0
- package/configuration/interfaces/modelConfiguration.d.ts +65 -0
- package/configuration/interfaces/modelConfiguration.js +2 -0
- package/configuration/interfaces/modelConfiguration.js.map +1 -0
- package/configuration/interfaces/observersConfiguration.d.ts +5 -0
- package/configuration/interfaces/observersConfiguration.js +2 -0
- package/configuration/interfaces/observersConfiguration.js.map +1 -0
- package/configuration/interfaces/sceneConfiguration.d.ts +48 -0
- package/configuration/interfaces/sceneConfiguration.js +2 -0
- package/configuration/interfaces/sceneConfiguration.js.map +1 -0
- package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -0
- package/configuration/interfaces/sceneOptimizerConfiguration.js +2 -0
- package/configuration/interfaces/sceneOptimizerConfiguration.js.map +1 -0
- package/configuration/interfaces/skyboxConfiguration.d.ts +21 -0
- package/configuration/interfaces/skyboxConfiguration.js +2 -0
- package/configuration/interfaces/skyboxConfiguration.js.map +1 -0
- package/configuration/interfaces/templateConfiguration.d.ts +67 -0
- package/configuration/interfaces/templateConfiguration.js +2 -0
- package/configuration/interfaces/templateConfiguration.js.map +1 -0
- package/configuration/interfaces/vrConfiguration.d.ts +16 -0
- package/configuration/interfaces/vrConfiguration.js +2 -0
- package/configuration/interfaces/vrConfiguration.js.map +1 -0
- package/configuration/loader.d.ts +4 -0
- package/configuration/loader.js +17 -0
- package/configuration/loader.js.map +1 -0
- package/configuration/mappers.d.ts +43 -0
- package/configuration/mappers.js +193 -0
- package/configuration/mappers.js.map +1 -0
- package/configuration/renderOnlyLoader.d.ts +33 -0
- package/configuration/renderOnlyLoader.js +162 -0
- package/configuration/renderOnlyLoader.js.map +1 -0
- package/configuration/types/default.d.ts +6 -0
- package/configuration/types/default.js +121 -0
- package/configuration/types/default.js.map +1 -0
- package/configuration/types/environmentMap.d.ts +5 -0
- package/configuration/types/environmentMap.js +14 -0
- package/configuration/types/environmentMap.js.map +1 -0
- package/configuration/types/extended.d.ts +6 -0
- package/configuration/types/extended.js +317 -0
- package/configuration/types/extended.js.map +1 -0
- package/configuration/types/index.d.ts +14 -0
- package/configuration/types/index.js +51 -0
- package/configuration/types/index.js.map +1 -0
- package/configuration/types/minimal.d.ts +6 -0
- package/configuration/types/minimal.js +43 -0
- package/configuration/types/minimal.js.map +1 -0
- package/configuration/types/renderOnlyDefault.d.ts +30 -0
- package/configuration/types/renderOnlyDefault.js +31 -0
- package/configuration/types/renderOnlyDefault.js.map +1 -0
- package/configuration/types/shadowLight.d.ts +9 -0
- package/configuration/types/shadowLight.js +64 -0
- package/configuration/types/shadowLight.js.map +1 -0
- package/helper/index.d.ts +29 -0
- package/helper/index.js +66 -0
- package/helper/index.js.map +1 -0
- package/index.d.ts +30 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/initializer.d.ts +11 -0
- package/initializer.js +35 -0
- package/initializer.js.map +1 -0
- package/interfaces.d.ts +5 -0
- package/interfaces.js +7 -0
- package/interfaces.js.map +1 -0
- package/labs/environmentSerializer.d.ts +126 -0
- package/labs/environmentSerializer.js +191 -0
- package/labs/environmentSerializer.js.map +1 -0
- package/labs/texture.d.ts +183 -0
- package/labs/texture.js +351 -0
- package/labs/texture.js.map +1 -0
- package/labs/viewerLabs.d.ts +51 -0
- package/labs/viewerLabs.js +134 -0
- package/labs/viewerLabs.js.map +1 -0
- package/loader/modelLoader.d.ts +56 -0
- package/loader/modelLoader.js +202 -0
- package/loader/modelLoader.js.map +1 -0
- package/loader/plugins/applyMaterialConfig.d.ts +12 -0
- package/loader/plugins/applyMaterialConfig.js +16 -0
- package/loader/plugins/applyMaterialConfig.js.map +1 -0
- package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -0
- package/loader/plugins/extendedMaterialLoaderPlugin.js +16 -0
- package/loader/plugins/extendedMaterialLoaderPlugin.js.map +1 -0
- package/loader/plugins/index.d.ts +19 -0
- package/loader/plugins/index.js +44 -0
- package/loader/plugins/index.js.map +1 -0
- package/loader/plugins/loaderPlugin.d.ts +24 -0
- package/loader/plugins/loaderPlugin.js +2 -0
- package/loader/plugins/loaderPlugin.js.map +1 -0
- package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -0
- package/loader/plugins/msftLodLoaderPlugin.js +21 -0
- package/loader/plugins/msftLodLoaderPlugin.js.map +1 -0
- package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -0
- package/loader/plugins/telemetryLoaderPlugin.js +36 -0
- package/loader/plugins/telemetryLoaderPlugin.js.map +1 -0
- package/managers/observablesManager.d.ts +66 -0
- package/managers/observablesManager.js +35 -0
- package/managers/observablesManager.js.map +1 -0
- package/managers/sceneManager.d.ts +245 -0
- package/managers/sceneManager.js +1375 -0
- package/managers/sceneManager.js.map +1 -0
- package/managers/telemetryManager.d.ts +78 -0
- package/managers/telemetryManager.js +117 -0
- package/managers/telemetryManager.js.map +1 -0
- package/model/modelAnimation.d.ts +215 -0
- package/model/modelAnimation.js +237 -0
- package/model/modelAnimation.js.map +1 -0
- package/model/viewerModel.d.ts +233 -0
- package/model/viewerModel.js +673 -0
- package/model/viewerModel.js.map +1 -0
- package/optimizer/custom/extended.d.ts +13 -0
- package/optimizer/custom/extended.js +101 -0
- package/optimizer/custom/extended.js.map +1 -0
- package/optimizer/custom/index.d.ts +9 -0
- package/optimizer/custom/index.js +26 -0
- package/optimizer/custom/index.js.map +1 -0
- package/package.json +27 -18
- package/readme.md +21 -145
- package/renderOnlyIndex.d.ts +11 -0
- package/renderOnlyIndex.js +18 -0
- package/renderOnlyIndex.js.map +1 -0
- package/templating/eventManager.d.ts +35 -0
- package/templating/eventManager.js +66 -0
- package/templating/eventManager.js.map +1 -0
- package/templating/plugins/hdButtonPlugin.d.ts +9 -0
- package/templating/plugins/hdButtonPlugin.js +22 -0
- package/templating/plugins/hdButtonPlugin.js.map +1 -0
- package/templating/plugins/printButton.d.ts +9 -0
- package/templating/plugins/printButton.js +41 -0
- package/templating/plugins/printButton.js.map +1 -0
- package/templating/templateManager.d.ts +197 -0
- package/templating/templateManager.js +561 -0
- package/templating/templateManager.js.map +1 -0
- package/templating/viewerTemplatePlugin.d.ts +21 -0
- package/templating/viewerTemplatePlugin.js +69 -0
- package/templating/viewerTemplatePlugin.js.map +1 -0
- package/viewer/defaultViewer.d.ts +130 -0
- package/viewer/defaultViewer.js +672 -0
- package/viewer/defaultViewer.js.map +1 -0
- package/viewer/renderOnlyViewer.d.ts +9 -0
- package/viewer/renderOnlyViewer.js +46 -0
- package/viewer/renderOnlyViewer.js.map +1 -0
- package/viewer/viewer.d.ts +258 -0
- package/viewer/viewer.js +783 -0
- package/viewer/viewer.js.map +1 -0
- package/viewer/viewerManager.d.ts +58 -0
- package/viewer/viewerManager.js +91 -0
- package/viewer/viewerManager.js.map +1 -0
- package/viewer/viewerWithTemplate.d.ts +9 -0
- package/viewer/viewerWithTemplate.js +20 -0
- package/viewer/viewerWithTemplate.js.map +1 -0
- package/assets/photoStudio.env +0 -0
- package/dist/babylon-viewer.esm.js +0 -2
- package/dist/babylon-viewer.esm.js.map +0 -1
- package/dist/babylon-viewer.esm.min.js +0 -2
- package/dist/babylon-viewer.esm.min.js.map +0 -1
- package/dist/chunks/EXT_lights_image_based-CtTmxflP.esm.min.js +0 -2
- package/dist/chunks/EXT_lights_image_based-CtTmxflP.esm.min.js.map +0 -1
- package/dist/chunks/EXT_lights_image_based-DxdJ75Vh.esm.js +0 -171
- package/dist/chunks/EXT_lights_image_based-DxdJ75Vh.esm.js.map +0 -1
- package/dist/chunks/EXT_mesh_gpu_instancing-Ct2Bx4PM.esm.js +0 -86
- package/dist/chunks/EXT_mesh_gpu_instancing-Ct2Bx4PM.esm.js.map +0 -1
- package/dist/chunks/EXT_mesh_gpu_instancing-M7Gz7MhO.esm.min.js +0 -2
- package/dist/chunks/EXT_mesh_gpu_instancing-M7Gz7MhO.esm.min.js.map +0 -1
- package/dist/chunks/EXT_meshopt_compression-Cyn--p6_.esm.min.js +0 -2
- package/dist/chunks/EXT_meshopt_compression-Cyn--p6_.esm.min.js.map +0 -1
- package/dist/chunks/EXT_meshopt_compression-yhAZH-Pp.esm.js +0 -134
- package/dist/chunks/EXT_meshopt_compression-yhAZH-Pp.esm.js.map +0 -1
- package/dist/chunks/EXT_texture_avif-ChzVvnzn.esm.min.js +0 -2
- package/dist/chunks/EXT_texture_avif-ChzVvnzn.esm.min.js.map +0 -1
- package/dist/chunks/EXT_texture_avif-kf6cO5i2.esm.js +0 -44
- package/dist/chunks/EXT_texture_avif-kf6cO5i2.esm.js.map +0 -1
- package/dist/chunks/EXT_texture_webp-DThCSm4A.esm.js +0 -43
- package/dist/chunks/EXT_texture_webp-DThCSm4A.esm.js.map +0 -1
- package/dist/chunks/EXT_texture_webp-cGxajBb2.esm.min.js +0 -2
- package/dist/chunks/EXT_texture_webp-cGxajBb2.esm.min.js.map +0 -1
- package/dist/chunks/ExtrasAsMetadata-CFb-ZHm4.esm.js +0 -64
- package/dist/chunks/ExtrasAsMetadata-CFb-ZHm4.esm.js.map +0 -1
- package/dist/chunks/ExtrasAsMetadata-DbBAtN0v.esm.min.js +0 -2
- package/dist/chunks/ExtrasAsMetadata-DbBAtN0v.esm.min.js.map +0 -1
- package/dist/chunks/KHR_animation_pointer-9NEomZda.esm.js +0 -343
- package/dist/chunks/KHR_animation_pointer-9NEomZda.esm.js.map +0 -1
- package/dist/chunks/KHR_animation_pointer-LTcasRZl.esm.min.js +0 -2
- package/dist/chunks/KHR_animation_pointer-LTcasRZl.esm.min.js.map +0 -1
- package/dist/chunks/KHR_draco_mesh_compression-Bph7X4Na.esm.min.js +0 -2
- package/dist/chunks/KHR_draco_mesh_compression-Bph7X4Na.esm.min.js.map +0 -1
- package/dist/chunks/KHR_draco_mesh_compression-Bt96ryNv.esm.js +0 -617
- package/dist/chunks/KHR_draco_mesh_compression-Bt96ryNv.esm.js.map +0 -1
- package/dist/chunks/KHR_interactivity-DOTBcI_U.esm.js +0 -4033
- package/dist/chunks/KHR_interactivity-DOTBcI_U.esm.js.map +0 -1
- package/dist/chunks/KHR_interactivity-DxgFXUw7.esm.min.js +0 -2
- package/dist/chunks/KHR_interactivity-DxgFXUw7.esm.min.js.map +0 -1
- package/dist/chunks/KHR_lights_punctual-CQr6drzF.esm.js +0 -1253
- package/dist/chunks/KHR_lights_punctual-CQr6drzF.esm.js.map +0 -1
- package/dist/chunks/KHR_lights_punctual-Ehfkpasf.esm.min.js +0 -2
- package/dist/chunks/KHR_lights_punctual-Ehfkpasf.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_anisotropy-BxO4PQVz.esm.js +0 -65
- package/dist/chunks/KHR_materials_anisotropy-BxO4PQVz.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_anisotropy-DBn9Shqv.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_anisotropy-DBn9Shqv.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_clearcoat-Ba4YQg1H.esm.js +0 -96
- package/dist/chunks/KHR_materials_clearcoat-Ba4YQg1H.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_clearcoat-JK2b7sFJ.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_clearcoat-JK2b7sFJ.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_diffuse_transmission-DApSwWKf.esm.js +0 -97
- package/dist/chunks/KHR_materials_diffuse_transmission-DApSwWKf.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_diffuse_transmission-bVzBmVfS.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_diffuse_transmission-bVzBmVfS.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_dispersion-BHwE2Zuq.esm.js +0 -62
- package/dist/chunks/KHR_materials_dispersion-BHwE2Zuq.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_dispersion-DGnPLyh8.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_dispersion-DGnPLyh8.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_emissive_strength-Gt6fUiEq.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_emissive_strength-Gt6fUiEq.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_emissive_strength-lAx8FBj1.esm.js +0 -55
- package/dist/chunks/KHR_materials_emissive_strength-lAx8FBj1.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_ior-BPBE1bfb.esm.js +0 -64
- package/dist/chunks/KHR_materials_ior-BPBE1bfb.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_ior-CVLjHo_d.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_ior-CVLjHo_d.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_iridescence-CS0J-SHj.esm.js +0 -72
- package/dist/chunks/KHR_materials_iridescence-CS0J-SHj.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_iridescence-HDqTC5c6.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_iridescence-HDqTC5c6.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-C_4MAuDj.esm.js +0 -81
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-C_4MAuDj.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-pWJRVA-C.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-pWJRVA-C.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_sheen-BrzXyxI9.esm.js +0 -85
- package/dist/chunks/KHR_materials_sheen-BrzXyxI9.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_sheen-vYnhqBGA.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_sheen-vYnhqBGA.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_specular-Blup6EfD.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_specular-Blup6EfD.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_specular-Dl2VI7fY.esm.js +0 -75
- package/dist/chunks/KHR_materials_specular-Dl2VI7fY.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_transmission-C0KlwPCn.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_transmission-C0KlwPCn.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_transmission-C8oapAD3.esm.js +0 -307
- package/dist/chunks/KHR_materials_transmission-C8oapAD3.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_unlit-B0fpQ4zR.esm.js +0 -74
- package/dist/chunks/KHR_materials_unlit-B0fpQ4zR.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_unlit-DTHggpW9.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_unlit-DTHggpW9.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_variants-BwBEEg3F.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_variants-BwBEEg3F.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_variants-kqYAN68R.esm.js +0 -262
- package/dist/chunks/KHR_materials_variants-kqYAN68R.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_volume-Bv-dIh0a.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_volume-Bv-dIh0a.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_volume-ti6cJURc.esm.js +0 -87
- package/dist/chunks/KHR_materials_volume-ti6cJURc.esm.js.map +0 -1
- package/dist/chunks/KHR_mesh_quantization-nNbC_EwK.esm.js +0 -26
- package/dist/chunks/KHR_mesh_quantization-nNbC_EwK.esm.js.map +0 -1
- package/dist/chunks/KHR_mesh_quantization-vSwEFku8.esm.min.js +0 -2
- package/dist/chunks/KHR_mesh_quantization-vSwEFku8.esm.min.js.map +0 -1
- package/dist/chunks/KHR_node_visibility-DLtO1RxY.esm.js +0 -46
- package/dist/chunks/KHR_node_visibility-DLtO1RxY.esm.js.map +0 -1
- package/dist/chunks/KHR_node_visibility-Hxj5EM8p.esm.min.js +0 -2
- package/dist/chunks/KHR_node_visibility-Hxj5EM8p.esm.min.js.map +0 -1
- package/dist/chunks/KHR_texture_basisu-CqMHceY7.esm.min.js +0 -2
- package/dist/chunks/KHR_texture_basisu-CqMHceY7.esm.min.js.map +0 -1
- package/dist/chunks/KHR_texture_basisu-lMocQO9p.esm.js +0 -43
- package/dist/chunks/KHR_texture_basisu-lMocQO9p.esm.js.map +0 -1
- package/dist/chunks/KHR_texture_transform-CgdcLEoa.esm.min.js +0 -2
- package/dist/chunks/KHR_texture_transform-CgdcLEoa.esm.min.js.map +0 -1
- package/dist/chunks/KHR_texture_transform-n58ZXRS4.esm.js +0 -63
- package/dist/chunks/KHR_texture_transform-n58ZXRS4.esm.js.map +0 -1
- package/dist/chunks/KHR_xmp_json_ld-B7jCJySU.esm.js +0 -51
- package/dist/chunks/KHR_xmp_json_ld-B7jCJySU.esm.js.map +0 -1
- package/dist/chunks/KHR_xmp_json_ld-D1U6cvWk.esm.min.js +0 -2
- package/dist/chunks/KHR_xmp_json_ld-D1U6cvWk.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_audio_emitter-BzxTfMT_.esm.min.js +0 -2
- package/dist/chunks/MSFT_audio_emitter-BzxTfMT_.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_audio_emitter-LEhFqqYK.esm.js +0 -2207
- package/dist/chunks/MSFT_audio_emitter-LEhFqqYK.esm.js.map +0 -1
- package/dist/chunks/MSFT_lod-BM-YMVLd.esm.min.js +0 -2
- package/dist/chunks/MSFT_lod-BM-YMVLd.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_lod-D2q1R8JN.esm.js +0 -337
- package/dist/chunks/MSFT_lod-D2q1R8JN.esm.js.map +0 -1
- package/dist/chunks/MSFT_minecraftMesh-DC1fcmHe.esm.js +0 -46
- package/dist/chunks/MSFT_minecraftMesh-DC1fcmHe.esm.js.map +0 -1
- package/dist/chunks/MSFT_minecraftMesh-XCJ5CDu9.esm.min.js +0 -2
- package/dist/chunks/MSFT_minecraftMesh-XCJ5CDu9.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_sRGBFactors-Bd7tUhaC.esm.min.js +0 -2
- package/dist/chunks/MSFT_sRGBFactors-Bd7tUhaC.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_sRGBFactors-DmtVowk1.esm.js +0 -47
- package/dist/chunks/MSFT_sRGBFactors-DmtVowk1.esm.js.map +0 -1
- package/dist/chunks/animationGroup-BbuLg7k8.esm.min.js +0 -2
- package/dist/chunks/animationGroup-BbuLg7k8.esm.min.js.map +0 -1
- package/dist/chunks/animationGroup-CUTGQiZ_.esm.js +0 -2482
- package/dist/chunks/animationGroup-CUTGQiZ_.esm.js.map +0 -1
- package/dist/chunks/assetContainer-C6ncSoIo.esm.js +0 -1720
- package/dist/chunks/assetContainer-C6ncSoIo.esm.js.map +0 -1
- package/dist/chunks/assetContainer-UT1ioCCO.esm.min.js +0 -2
- package/dist/chunks/assetContainer-UT1ioCCO.esm.min.js.map +0 -1
- package/dist/chunks/audioEngine-DoYHGumM.esm.min.js +0 -2
- package/dist/chunks/audioEngine-DoYHGumM.esm.min.js.map +0 -1
- package/dist/chunks/audioEngine-DyDIVcOT.esm.js +0 -305
- package/dist/chunks/audioEngine-DyDIVcOT.esm.js.map +0 -1
- package/dist/chunks/bakedVertexAnimation-C2uRoeRk.esm.min.js +0 -2
- package/dist/chunks/bakedVertexAnimation-C2uRoeRk.esm.min.js.map +0 -1
- package/dist/chunks/bakedVertexAnimation-D_-fGGra.esm.js +0 -114
- package/dist/chunks/bakedVertexAnimation-D_-fGGra.esm.js.map +0 -1
- package/dist/chunks/basisTextureLoader-B-Qq9Phl.esm.min.js +0 -2
- package/dist/chunks/basisTextureLoader-B-Qq9Phl.esm.min.js.map +0 -1
- package/dist/chunks/basisTextureLoader-DUlYrghk.esm.js +0 -600
- package/dist/chunks/basisTextureLoader-DUlYrghk.esm.js.map +0 -1
- package/dist/chunks/dds-D7BAf2ic.esm.min.js +0 -2
- package/dist/chunks/dds-D7BAf2ic.esm.min.js.map +0 -1
- package/dist/chunks/dds-ZmhdYHuo.esm.js +0 -540
- package/dist/chunks/dds-ZmhdYHuo.esm.js.map +0 -1
- package/dist/chunks/ddsTextureLoader-BUSqGvB5.esm.min.js +0 -2
- package/dist/chunks/ddsTextureLoader-BUSqGvB5.esm.min.js.map +0 -1
- package/dist/chunks/ddsTextureLoader-lyR7HTBM.esm.js +0 -88
- package/dist/chunks/ddsTextureLoader-lyR7HTBM.esm.js.map +0 -1
- package/dist/chunks/decalFragment-C2QiN6EX.esm.js +0 -18
- package/dist/chunks/decalFragment-C2QiN6EX.esm.js.map +0 -1
- package/dist/chunks/decalFragment-CRRYl1jQ.esm.min.js +0 -2
- package/dist/chunks/decalFragment-CRRYl1jQ.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-CH_Cf0sg.esm.min.js +0 -2
- package/dist/chunks/default.fragment-CH_Cf0sg.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-CeJlEO99.esm.js +0 -497
- package/dist/chunks/default.fragment-CeJlEO99.esm.js.map +0 -1
- package/dist/chunks/default.fragment-D6wAQMB6.esm.js +0 -433
- package/dist/chunks/default.fragment-D6wAQMB6.esm.js.map +0 -1
- package/dist/chunks/default.fragment-Eu9BdybI.esm.min.js +0 -2
- package/dist/chunks/default.fragment-Eu9BdybI.esm.min.js.map +0 -1
- package/dist/chunks/default.vertex-BOe-Kjvn.esm.js +0 -181
- package/dist/chunks/default.vertex-BOe-Kjvn.esm.js.map +0 -1
- package/dist/chunks/default.vertex-C65fzv7q.esm.min.js +0 -2
- package/dist/chunks/default.vertex-C65fzv7q.esm.min.js.map +0 -1
- package/dist/chunks/default.vertex-DA6OA-ns.esm.min.js +0 -2
- package/dist/chunks/default.vertex-DA6OA-ns.esm.min.js.map +0 -1
- package/dist/chunks/default.vertex-wQDPvDxP.esm.js +0 -201
- package/dist/chunks/default.vertex-wQDPvDxP.esm.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-C3dmsgEl.esm.min.js +0 -2
- package/dist/chunks/defaultUboDeclaration-C3dmsgEl.esm.min.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-DpFhcCJ9.esm.js +0 -13
- package/dist/chunks/defaultUboDeclaration-DpFhcCJ9.esm.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-g0TiNDph.esm.min.js +0 -2
- package/dist/chunks/defaultUboDeclaration-g0TiNDph.esm.min.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-oUV2JdnL.esm.js +0 -15
- package/dist/chunks/defaultUboDeclaration-oUV2JdnL.esm.js.map +0 -1
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +0 -11
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +0 -1
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +0 -2
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +0 -1
- package/dist/chunks/dumpTools-B6MNdEIl.esm.min.js +0 -2
- package/dist/chunks/dumpTools-B6MNdEIl.esm.min.js.map +0 -1
- package/dist/chunks/dumpTools-BU3EvlD1.esm.js +0 -200
- package/dist/chunks/dumpTools-BU3EvlD1.esm.js.map +0 -1
- package/dist/chunks/engine-NQcIyL-Q.esm.min.js +0 -2
- package/dist/chunks/engine-NQcIyL-Q.esm.min.js.map +0 -1
- package/dist/chunks/engine-cANzfga8.esm.js +0 -2216
- package/dist/chunks/engine-cANzfga8.esm.js.map +0 -1
- package/dist/chunks/engine.common-CgTYVFKn.esm.min.js +0 -2
- package/dist/chunks/engine.common-CgTYVFKn.esm.min.js.map +0 -1
- package/dist/chunks/engine.common-NSpwQjFN.esm.js +0 -1162
- package/dist/chunks/engine.common-NSpwQjFN.esm.js.map +0 -1
- package/dist/chunks/envTextureLoader-C84j5KQb.esm.min.js +0 -2
- package/dist/chunks/envTextureLoader-C84j5KQb.esm.min.js.map +0 -1
- package/dist/chunks/envTextureLoader-RyHxf-NC.esm.js +0 -64
- package/dist/chunks/envTextureLoader-RyHxf-NC.esm.js.map +0 -1
- package/dist/chunks/environmentTextureTools-ZC_2VGoT.esm.js +0 -382
- package/dist/chunks/environmentTextureTools-ZC_2VGoT.esm.js.map +0 -1
- package/dist/chunks/environmentTextureTools-xEIMmgGs.esm.min.js +0 -2
- package/dist/chunks/environmentTextureTools-xEIMmgGs.esm.min.js.map +0 -1
- package/dist/chunks/exrTextureLoader-CIM4Pp17.esm.min.js +0 -2
- package/dist/chunks/exrTextureLoader-CIM4Pp17.esm.min.js.map +0 -1
- package/dist/chunks/exrTextureLoader-Cat_WsXp.esm.js +0 -1682
- package/dist/chunks/exrTextureLoader-Cat_WsXp.esm.js.map +0 -1
- package/dist/chunks/fogFragment-BEbpV0WH.esm.js +0 -101
- package/dist/chunks/fogFragment-BEbpV0WH.esm.js.map +0 -1
- package/dist/chunks/fogFragment-CyuTAIv1.esm.js +0 -102
- package/dist/chunks/fogFragment-CyuTAIv1.esm.js.map +0 -1
- package/dist/chunks/fogFragment-ORdMXcVF.esm.min.js +0 -2
- package/dist/chunks/fogFragment-ORdMXcVF.esm.min.js.map +0 -1
- package/dist/chunks/fogFragment-t5lYMUuM.esm.min.js +0 -2
- package/dist/chunks/fogFragment-t5lYMUuM.esm.min.js.map +0 -1
- package/dist/chunks/fresnelFunction-Duq-aY9I.esm.js +0 -12
- package/dist/chunks/fresnelFunction-Duq-aY9I.esm.js.map +0 -1
- package/dist/chunks/fresnelFunction-Nl3qJzpP.esm.min.js +0 -2
- package/dist/chunks/fresnelFunction-Nl3qJzpP.esm.min.js.map +0 -1
- package/dist/chunks/glTFLoader-C-9RyvaX.esm.min.js +0 -2
- package/dist/chunks/glTFLoader-C-9RyvaX.esm.min.js.map +0 -1
- package/dist/chunks/glTFLoader-CykTOmbH.esm.js +0 -7586
- package/dist/chunks/glTFLoader-CykTOmbH.esm.js.map +0 -1
- package/dist/chunks/glTFLoaderAnimation-CuAlGu9L.esm.min.js +0 -2
- package/dist/chunks/glTFLoaderAnimation-CuAlGu9L.esm.min.js.map +0 -1
- package/dist/chunks/glTFLoaderAnimation-D-9sO0SL.esm.js +0 -77
- package/dist/chunks/glTFLoaderAnimation-D-9sO0SL.esm.js.map +0 -1
- package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +0 -2
- package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +0 -1
- package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +0 -67
- package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-63iSgVvj.esm.js +0 -35
- package/dist/chunks/harmonicsFunctions-63iSgVvj.esm.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-Bii0v1dl.esm.js +0 -34
- package/dist/chunks/harmonicsFunctions-Bii0v1dl.esm.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-ClUsZp0R.esm.min.js +0 -2
- package/dist/chunks/harmonicsFunctions-ClUsZp0R.esm.min.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-CtfPmn2Q.esm.min.js +0 -2
- package/dist/chunks/harmonicsFunctions-CtfPmn2Q.esm.min.js.map +0 -1
- package/dist/chunks/hdrTextureLoader-BN6Y1Lut.esm.js +0 -252
- package/dist/chunks/hdrTextureLoader-BN6Y1Lut.esm.js.map +0 -1
- package/dist/chunks/hdrTextureLoader-D7RuoX9t.esm.min.js +0 -2
- package/dist/chunks/hdrTextureLoader-D7RuoX9t.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-BEzjtVd_.esm.js +0 -108
- package/dist/chunks/helperFunctions-BEzjtVd_.esm.js.map +0 -1
- package/dist/chunks/helperFunctions-C_Q-8JFf.esm.min.js +0 -2
- package/dist/chunks/helperFunctions-C_Q-8JFf.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-V-OksA1t.esm.min.js +0 -2
- package/dist/chunks/helperFunctions-V-OksA1t.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-uqYfkFNG.esm.js +0 -80
- package/dist/chunks/helperFunctions-uqYfkFNG.esm.js.map +0 -1
- package/dist/chunks/iesTextureLoader-BnDWgC_d.esm.js +0 -189
- package/dist/chunks/iesTextureLoader-BnDWgC_d.esm.js.map +0 -1
- package/dist/chunks/iesTextureLoader-Dd9uqoDf.esm.min.js +0 -2
- package/dist/chunks/iesTextureLoader-Dd9uqoDf.esm.min.js.map +0 -1
- package/dist/chunks/index-Byr0e55i.esm.min.js +0 -57
- package/dist/chunks/index-Byr0e55i.esm.min.js.map +0 -1
- package/dist/chunks/index-D2PRSJU-.esm.js +0 -74617
- package/dist/chunks/index-D2PRSJU-.esm.js.map +0 -1
- package/dist/chunks/ktxTextureLoader-Bedd6RF1.esm.js +0 -814
- package/dist/chunks/ktxTextureLoader-Bedd6RF1.esm.js.map +0 -1
- package/dist/chunks/ktxTextureLoader-ChbvKkT1.esm.min.js +0 -2
- package/dist/chunks/ktxTextureLoader-ChbvKkT1.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-Bwk-jsOX.esm.js +0 -35
- package/dist/chunks/logDepthDeclaration-Bwk-jsOX.esm.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-C36eoW9x.esm.min.js +0 -2
- package/dist/chunks/logDepthDeclaration-C36eoW9x.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-D_W5O6rS.esm.min.js +0 -2
- package/dist/chunks/logDepthDeclaration-D_W5O6rS.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-DoIMFd5A.esm.js +0 -11
- package/dist/chunks/logDepthDeclaration-DoIMFd5A.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-BWGbf5vd.esm.js +0 -77
- package/dist/chunks/logDepthVertex-BWGbf5vd.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-BXDRiqLA.esm.min.js +0 -2
- package/dist/chunks/logDepthVertex-BXDRiqLA.esm.min.js.map +0 -1
- package/dist/chunks/logDepthVertex-B_gpAch8.esm.js +0 -77
- package/dist/chunks/logDepthVertex-B_gpAch8.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-D1HEmqMB.esm.min.js +0 -2
- package/dist/chunks/logDepthVertex-D1HEmqMB.esm.min.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-D8J40nds.esm.min.js +0 -2
- package/dist/chunks/mainUVVaryingDeclaration-D8J40nds.esm.min.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-DbkJ4skP.esm.js +0 -11
- package/dist/chunks/mainUVVaryingDeclaration-DbkJ4skP.esm.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-DyHSx4Dw.esm.min.js +0 -2
- package/dist/chunks/mainUVVaryingDeclaration-DyHSx4Dw.esm.min.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-MPfCNdn8.esm.js +0 -11
- package/dist/chunks/mainUVVaryingDeclaration-MPfCNdn8.esm.js.map +0 -1
- package/dist/chunks/meshUboDeclaration-BVXOzRuY.esm.js +0 -24
- package/dist/chunks/meshUboDeclaration-BVXOzRuY.esm.js.map +0 -1
- package/dist/chunks/meshUboDeclaration-Ddel-wFh.esm.min.js +0 -2
- package/dist/chunks/meshUboDeclaration-Ddel-wFh.esm.min.js.map +0 -1
- package/dist/chunks/objFileLoader-CXbhBn7S.esm.min.js +0 -2
- package/dist/chunks/objFileLoader-CXbhBn7S.esm.min.js.map +0 -1
- package/dist/chunks/objFileLoader-CoVXAnQJ.esm.js +0 -1338
- package/dist/chunks/objFileLoader-CoVXAnQJ.esm.js.map +0 -1
- package/dist/chunks/oitFragment-BD3r8JAq.esm.min.js +0 -2
- package/dist/chunks/oitFragment-BD3r8JAq.esm.min.js.map +0 -1
- package/dist/chunks/oitFragment-BbXBMuId.esm.js +0 -1051
- package/dist/chunks/oitFragment-BbXBMuId.esm.js.map +0 -1
- package/dist/chunks/oitFragment-C2GwnhPD.esm.min.js +0 -2
- package/dist/chunks/oitFragment-C2GwnhPD.esm.min.js.map +0 -1
- package/dist/chunks/oitFragment-CRPgfH4O.esm.js +0 -1210
- package/dist/chunks/oitFragment-CRPgfH4O.esm.js.map +0 -1
- package/dist/chunks/pass.fragment-BcR_nZ4s.esm.js +0 -15
- package/dist/chunks/pass.fragment-BcR_nZ4s.esm.js.map +0 -1
- package/dist/chunks/pass.fragment-CRhtnpSG.esm.min.js +0 -2
- package/dist/chunks/pass.fragment-CRhtnpSG.esm.min.js.map +0 -1
- package/dist/chunks/pass.fragment-Cey15cSC.esm.min.js +0 -2
- package/dist/chunks/pass.fragment-Cey15cSC.esm.min.js.map +0 -1
- package/dist/chunks/pass.fragment-DHOBi3Wt.esm.js +0 -15
- package/dist/chunks/pass.fragment-DHOBi3Wt.esm.js.map +0 -1
- package/dist/chunks/pbr.fragment-BxuhEQ7D.esm.min.js +0 -2
- package/dist/chunks/pbr.fragment-BxuhEQ7D.esm.min.js.map +0 -1
- package/dist/chunks/pbr.fragment-CC-b5JTF.esm.min.js +0 -2
- package/dist/chunks/pbr.fragment-CC-b5JTF.esm.min.js.map +0 -1
- package/dist/chunks/pbr.fragment-DmzKiwUI.esm.js +0 -3270
- package/dist/chunks/pbr.fragment-DmzKiwUI.esm.js.map +0 -1
- package/dist/chunks/pbr.fragment-gRf3Ac1s.esm.js +0 -3230
- package/dist/chunks/pbr.fragment-gRf3Ac1s.esm.js.map +0 -1
- package/dist/chunks/pbr.vertex-55OushdY.esm.min.js +0 -2
- package/dist/chunks/pbr.vertex-55OushdY.esm.min.js.map +0 -1
- package/dist/chunks/pbr.vertex-BGZL1vqU.esm.js +0 -214
- package/dist/chunks/pbr.vertex-BGZL1vqU.esm.js.map +0 -1
- package/dist/chunks/pbr.vertex-BhHlxTgg.esm.min.js +0 -2
- package/dist/chunks/pbr.vertex-BhHlxTgg.esm.min.js.map +0 -1
- package/dist/chunks/pbr.vertex-D_ImdfjS.esm.js +0 -338
- package/dist/chunks/pbr.vertex-D_ImdfjS.esm.js.map +0 -1
- package/dist/chunks/postprocess.vertex-BvTgsCF2.esm.js +0 -20
- package/dist/chunks/postprocess.vertex-BvTgsCF2.esm.js.map +0 -1
- package/dist/chunks/postprocess.vertex-DejxEyI8.esm.min.js +0 -2
- package/dist/chunks/postprocess.vertex-DejxEyI8.esm.min.js.map +0 -1
- package/dist/chunks/rawTexture-CtZPcsCK.esm.js +0 -191
- package/dist/chunks/rawTexture-CtZPcsCK.esm.js.map +0 -1
- package/dist/chunks/rawTexture-DiLjtdps.esm.min.js +0 -2
- package/dist/chunks/rawTexture-DiLjtdps.esm.min.js.map +0 -1
- package/dist/chunks/ray-CUy1_LbY.esm.js +0 -946
- package/dist/chunks/ray-CUy1_LbY.esm.js.map +0 -1
- package/dist/chunks/ray-CyeV6FXS.esm.min.js +0 -2
- package/dist/chunks/ray-CyeV6FXS.esm.min.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-9u3cq_-K.esm.min.js +0 -2
- package/dist/chunks/rgbdDecode.fragment-9u3cq_-K.esm.min.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-DuoYEzSR.esm.min.js +0 -2
- package/dist/chunks/rgbdDecode.fragment-DuoYEzSR.esm.min.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-gOeaxG0m.esm.js +0 -17
- package/dist/chunks/rgbdDecode.fragment-gOeaxG0m.esm.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-w-H1DVHn.esm.js +0 -17
- package/dist/chunks/rgbdDecode.fragment-w-H1DVHn.esm.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-CUhBDVEY.esm.js +0 -17
- package/dist/chunks/rgbdEncode.fragment-CUhBDVEY.esm.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-CtTGJV2i.esm.js +0 -17
- package/dist/chunks/rgbdEncode.fragment-CtTGJV2i.esm.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-DN2pQGj8.esm.min.js +0 -2
- package/dist/chunks/rgbdEncode.fragment-DN2pQGj8.esm.min.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-DUTaQRsu.esm.min.js +0 -2
- package/dist/chunks/rgbdEncode.fragment-DUTaQRsu.esm.min.js.map +0 -1
- package/dist/chunks/splatFileLoader-CX6JcFzg.esm.min.js +0 -2
- package/dist/chunks/splatFileLoader-CX6JcFzg.esm.min.js.map +0 -1
- package/dist/chunks/splatFileLoader-CXNzuJGe.esm.js +0 -3371
- package/dist/chunks/splatFileLoader-CXNzuJGe.esm.js.map +0 -1
- package/dist/chunks/standardMaterial-BpN5HUFh.esm.js +0 -1805
- package/dist/chunks/standardMaterial-BpN5HUFh.esm.js.map +0 -1
- package/dist/chunks/standardMaterial-DeIP1NOH.esm.min.js +0 -2
- package/dist/chunks/standardMaterial-DeIP1NOH.esm.min.js.map +0 -1
- package/dist/chunks/stlFileLoader-CfoonZSR.esm.min.js +0 -2
- package/dist/chunks/stlFileLoader-CfoonZSR.esm.min.js.map +0 -1
- package/dist/chunks/stlFileLoader-wSWgG8JA.esm.js +0 -238
- package/dist/chunks/stlFileLoader-wSWgG8JA.esm.js.map +0 -1
- package/dist/chunks/tgaTextureLoader-BYE4YDgZ.esm.js +0 -349
- package/dist/chunks/tgaTextureLoader-BYE4YDgZ.esm.js.map +0 -1
- package/dist/chunks/tgaTextureLoader-B_XpR0K4.esm.min.js +0 -2
- package/dist/chunks/tgaTextureLoader-B_XpR0K4.esm.min.js.map +0 -1
- package/dist/chunks/thinEngine-8iySwqjd.esm.js +0 -3842
- package/dist/chunks/thinEngine-8iySwqjd.esm.js.map +0 -1
- package/dist/chunks/thinEngine-Du1ndWJI.esm.min.js +0 -2
- package/dist/chunks/thinEngine-Du1ndWJI.esm.min.js.map +0 -1
- package/dist/chunks/thinInstanceMesh-DtDpOkPl.esm.js +0 -314
- package/dist/chunks/thinInstanceMesh-DtDpOkPl.esm.js.map +0 -1
- package/dist/chunks/thinInstanceMesh-t0q7wKPC.esm.min.js +0 -2
- package/dist/chunks/thinInstanceMesh-t0q7wKPC.esm.min.js.map +0 -1
- package/dist/chunks/vertexColorMixing-BN_Xutz8.esm.min.js +0 -2
- package/dist/chunks/vertexColorMixing-BN_Xutz8.esm.min.js.map +0 -1
- package/dist/chunks/vertexColorMixing-C5mIujwe.esm.js +0 -412
- package/dist/chunks/vertexColorMixing-C5mIujwe.esm.js.map +0 -1
- package/dist/chunks/vertexColorMixing-CiQhM5F5.esm.js +0 -522
- package/dist/chunks/vertexColorMixing-CiQhM5F5.esm.js.map +0 -1
- package/dist/chunks/vertexColorMixing-CvT4MVXg.esm.min.js +0 -2
- package/dist/chunks/vertexColorMixing-CvT4MVXg.esm.min.js.map +0 -1
- package/dist/chunks/webgpuEngine-DN2E-dsv.esm.min.js +0 -2
- package/dist/chunks/webgpuEngine-DN2E-dsv.esm.min.js.map +0 -1
- package/dist/chunks/webgpuEngine-D_dRHnWD.esm.js +0 -11533
- package/dist/chunks/webgpuEngine-D_dRHnWD.esm.js.map +0 -1
- package/dist/chunks/workerPool-BUOov2K1.esm.js +0 -122
- package/dist/chunks/workerPool-BUOov2K1.esm.js.map +0 -1
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +0 -2
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +0 -1
- package/docs/ViewerDefault.jpg +0 -0
- package/docs/ViewerParts.jpg +0 -0
- package/docs/ViewerSlots.jpg +0 -0
- package/docs/ViewerStyled.jpg +0 -0
- package/lib/index.d.ts +0 -568
- package/lib/index.js +0 -2067
- package/lib/index.js.map +0 -1
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { a_ as PBRMaterial, aP as unregisterGLTFExtension, aQ as registerGLTFExtension } from './index-D2PRSJU-.esm.js';
|
|
2
|
-
import { G as GLTFLoader } from './glTFLoader-CykTOmbH.esm.js';
|
|
3
|
-
import './rawTexture-CtZPcsCK.esm.js';
|
|
4
|
-
import './assetContainer-C6ncSoIo.esm.js';
|
|
5
|
-
import './glTFLoaderAnimation-D-9sO0SL.esm.js';
|
|
6
|
-
|
|
7
|
-
const NAME = "KHR_materials_iridescence";
|
|
8
|
-
/**
|
|
9
|
-
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_iridescence/README.md)
|
|
10
|
-
*/
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
12
|
-
class KHR_materials_iridescence {
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
constructor(loader) {
|
|
17
|
-
/**
|
|
18
|
-
* The name of this extension.
|
|
19
|
-
*/
|
|
20
|
-
this.name = NAME;
|
|
21
|
-
/**
|
|
22
|
-
* Defines a number that determines the order the extensions are applied.
|
|
23
|
-
*/
|
|
24
|
-
this.order = 195;
|
|
25
|
-
this._loader = loader;
|
|
26
|
-
this.enabled = this._loader.isExtensionUsed(NAME);
|
|
27
|
-
}
|
|
28
|
-
/** @internal */
|
|
29
|
-
dispose() {
|
|
30
|
-
this._loader = null;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
|
-
loadMaterialPropertiesAsync(context, material, babylonMaterial) {
|
|
36
|
-
return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
|
|
37
|
-
const promises = new Array();
|
|
38
|
-
promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));
|
|
39
|
-
promises.push(this._loadIridescencePropertiesAsync(extensionContext, extension, babylonMaterial));
|
|
40
|
-
return Promise.all(promises).then(() => { });
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
_loadIridescencePropertiesAsync(context, properties, babylonMaterial) {
|
|
44
|
-
if (!(babylonMaterial instanceof PBRMaterial)) {
|
|
45
|
-
throw new Error(`${context}: Material type not supported`);
|
|
46
|
-
}
|
|
47
|
-
const promises = new Array();
|
|
48
|
-
babylonMaterial.iridescence.isEnabled = true;
|
|
49
|
-
babylonMaterial.iridescence.intensity = properties.iridescenceFactor ?? 0;
|
|
50
|
-
babylonMaterial.iridescence.indexOfRefraction = properties.iridescenceIor ?? properties.iridescenceIOR ?? 1.3;
|
|
51
|
-
babylonMaterial.iridescence.minimumThickness = properties.iridescenceThicknessMinimum ?? 100;
|
|
52
|
-
babylonMaterial.iridescence.maximumThickness = properties.iridescenceThicknessMaximum ?? 400;
|
|
53
|
-
if (properties.iridescenceTexture) {
|
|
54
|
-
promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceTexture`, properties.iridescenceTexture, (texture) => {
|
|
55
|
-
texture.name = `${babylonMaterial.name} (Iridescence)`;
|
|
56
|
-
babylonMaterial.iridescence.texture = texture;
|
|
57
|
-
}));
|
|
58
|
-
}
|
|
59
|
-
if (properties.iridescenceThicknessTexture) {
|
|
60
|
-
promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceThicknessTexture`, properties.iridescenceThicknessTexture, (texture) => {
|
|
61
|
-
texture.name = `${babylonMaterial.name} (Iridescence Thickness)`;
|
|
62
|
-
babylonMaterial.iridescence.thicknessTexture = texture;
|
|
63
|
-
}));
|
|
64
|
-
}
|
|
65
|
-
return Promise.all(promises).then(() => { });
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
unregisterGLTFExtension(NAME);
|
|
69
|
-
registerGLTFExtension(NAME, true, (loader) => new KHR_materials_iridescence(loader));
|
|
70
|
-
|
|
71
|
-
export { KHR_materials_iridescence };
|
|
72
|
-
//# sourceMappingURL=KHR_materials_iridescence-CS0J-SHj.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KHR_materials_iridescence-CS0J-SHj.esm.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_iridescence.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_iridescence\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_iridescence/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_iridescence {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 195;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadIridescencePropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadIridescencePropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.iridescence.isEnabled = true;\n babylonMaterial.iridescence.intensity = properties.iridescenceFactor ?? 0;\n babylonMaterial.iridescence.indexOfRefraction = properties.iridescenceIor ?? properties.iridescenceIOR ?? 1.3;\n babylonMaterial.iridescence.minimumThickness = properties.iridescenceThicknessMinimum ?? 100;\n babylonMaterial.iridescence.maximumThickness = properties.iridescenceThicknessMaximum ?? 400;\n if (properties.iridescenceTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceTexture`, properties.iridescenceTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Iridescence)`;\n babylonMaterial.iridescence.texture = texture;\n }));\n }\n if (properties.iridescenceThicknessTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceThicknessTexture`, properties.iridescenceThicknessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Iridescence Thickness)`;\n babylonMaterial.iridescence.thicknessTexture = texture;\n }));\n }\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_iridescence(loader));\n//# sourceMappingURL=KHR_materials_iridescence.js.map"],"names":[],"mappings":";;;;;;AAGA,MAAM,IAAI,GAAG,2BAA2B;AACxC;AACA;AACA;AACA;AACO,MAAM,yBAAyB,CAAC;AACvC;AACA;AACA;AACA,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,KAAK,GAAG,GAAG;AACxB,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM;AAC7B,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;AACzD;AACA;AACA,IAAI,OAAO,GAAG;AACd,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI;AAC3B;AACA;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE;AACpE,QAAQ,OAAO,UAAU,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,gBAAgB,EAAE,SAAS,KAAK;AAC5G,YAAY,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE;AACxC,YAAY,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC;AACvG,YAAY,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,gBAAgB,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC;AAC7G,YAAY,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI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AAO,CAAC,4BAA4B,CAAC,EAAE,UAAU,CAAC,2BAA2B,EAAE,CAAC,OAAO,KAAK;AAC3J,gBAAgB,OAAO,CAAC,IAAI,GAAG,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,wBAAwB,CAAC;AAChF,gBAAgB,eAAe,CAAC,WAAW,CAAC,gBAAgB,GAAG,OAAO;AACtE,aAAa,CAAC,CAAC;AACf;AACA,QAAQ,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;AACpD;AACA;AACA,uBAAuB,CAAC,IAAI,CAAC;AAC7B,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,KAAK,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a_ as e,aP as i,aQ as s}from"./index-Byr0e55i.esm.min.js";import{G as r}from"./glTFLoader-C-9RyvaX.esm.min.js";import"./rawTexture-DiLjtdps.esm.min.js";import"./assetContainer-UT1ioCCO.esm.min.js";import"./glTFLoaderAnimation-CuAlGu9L.esm.min.js";const n="KHR_materials_iridescence";class c{constructor(e){this.name=n,this.order=195,this._loader=e,this.enabled=this._loader.isExtensionUsed(n)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,i,s){return r.LoadExtensionAsync(e,i,this.name,((r,n)=>{const c=new Array;return c.push(this._loader.loadMaterialPropertiesAsync(e,i,s)),c.push(this._loadIridescencePropertiesAsync(r,n,s)),Promise.all(c).then((()=>{}))}))}_loadIridescencePropertiesAsync(i,s,r){if(!(r instanceof e))throw new Error(`${i}: Material type not supported`);const n=new Array;return r.iridescence.isEnabled=!0,r.iridescence.intensity=s.iridescenceFactor??0,r.iridescence.indexOfRefraction=s.iridescenceIor??s.iridescenceIOR??1.3,r.iridescence.minimumThickness=s.iridescenceThicknessMinimum??100,r.iridescence.maximumThickness=s.iridescenceThicknessMaximum??400,s.iridescenceTexture&&n.push(this._loader.loadTextureInfoAsync(`${i}/iridescenceTexture`,s.iridescenceTexture,(e=>{e.name=`${r.name} (Iridescence)`,r.iridescence.texture=e}))),s.iridescenceThicknessTexture&&n.push(this._loader.loadTextureInfoAsync(`${i}/iridescenceThicknessTexture`,s.iridescenceThicknessTexture,(e=>{e.name=`${r.name} (Iridescence Thickness)`,r.iridescence.thicknessTexture=e}))),Promise.all(n).then((()=>{}))}}i(n),s(n,!0,(e=>new c(e)));export{c as KHR_materials_iridescence};
|
|
2
|
-
//# sourceMappingURL=KHR_materials_iridescence-HDqTC5c6.esm.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KHR_materials_iridescence-HDqTC5c6.esm.min.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_iridescence.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_iridescence\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_iridescence/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_iridescence {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 195;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadIridescencePropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadIridescencePropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.iridescence.isEnabled = true;\n babylonMaterial.iridescence.intensity = properties.iridescenceFactor ?? 0;\n babylonMaterial.iridescence.indexOfRefraction = properties.iridescenceIor ?? properties.iridescenceIOR ?? 1.3;\n babylonMaterial.iridescence.minimumThickness = properties.iridescenceThicknessMinimum ?? 100;\n babylonMaterial.iridescence.maximumThickness = properties.iridescenceThicknessMaximum ?? 400;\n if (properties.iridescenceTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceTexture`, properties.iridescenceTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Iridescence)`;\n babylonMaterial.iridescence.texture = texture;\n }));\n }\n if (properties.iridescenceThicknessTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceThicknessTexture`, properties.iridescenceThicknessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Iridescence Thickness)`;\n babylonMaterial.iridescence.thicknessTexture = texture;\n }));\n }\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_iridescence(loader));\n//# sourceMappingURL=KHR_materials_iridescence.js.map"],"names":["NAME","KHR_materials_iridescence","constructor","loader","this","name","order","_loader","enabled","isExtensionUsed","dispose","loadMaterialPropertiesAsync","context","material","babylonMaterial","GLTFLoader","LoadExtensionAsync","extensionContext","extension","promises","Array","push","_loadIridescencePropertiesAsync","Promise","all","then","properties","PBRMaterial","Error","iridescence","isEnabled","intensity","iridescenceFactor","indexOfRefraction","iridescenceIor","iridescenceIOR","minimumThickness","iridescenceThicknessMinimum","maximumThickness","iridescenceThicknessMaximum","iridescenceTexture","loadTextureInfoAsync","texture","iridescenceThicknessTexture","thicknessTexture","unregisterGLTFExtension","registerGLTFExtension"],"mappings":"8PAGA,MAA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AGvDnB,QAAQC,IAAIL,GAAUM,MAAK,QAC1C,EAEAoB,EAAwB7C,GACxB8C,EAAsB9C,GAAM,GAAOG,GAAW,IAAIF,EAA0BE"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { a_ as PBRMaterial, s as Color3, aP as unregisterGLTFExtension, aQ as registerGLTFExtension } from './index-D2PRSJU-.esm.js';
|
|
2
|
-
import { G as GLTFLoader } from './glTFLoader-CykTOmbH.esm.js';
|
|
3
|
-
import './rawTexture-CtZPcsCK.esm.js';
|
|
4
|
-
import './assetContainer-C6ncSoIo.esm.js';
|
|
5
|
-
import './glTFLoaderAnimation-D-9sO0SL.esm.js';
|
|
6
|
-
|
|
7
|
-
const NAME = "KHR_materials_pbrSpecularGlossiness";
|
|
8
|
-
/**
|
|
9
|
-
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness/README.md)
|
|
10
|
-
*/
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
12
|
-
class KHR_materials_pbrSpecularGlossiness {
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
constructor(loader) {
|
|
17
|
-
/**
|
|
18
|
-
* The name of this extension.
|
|
19
|
-
*/
|
|
20
|
-
this.name = NAME;
|
|
21
|
-
/**
|
|
22
|
-
* Defines a number that determines the order the extensions are applied.
|
|
23
|
-
*/
|
|
24
|
-
this.order = 200;
|
|
25
|
-
this._loader = loader;
|
|
26
|
-
this.enabled = this._loader.isExtensionUsed(NAME);
|
|
27
|
-
}
|
|
28
|
-
/** @internal */
|
|
29
|
-
dispose() {
|
|
30
|
-
this._loader = null;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
|
-
loadMaterialPropertiesAsync(context, material, babylonMaterial) {
|
|
36
|
-
return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
|
|
37
|
-
const promises = new Array();
|
|
38
|
-
promises.push(this._loader.loadMaterialBasePropertiesAsync(context, material, babylonMaterial));
|
|
39
|
-
promises.push(this._loadSpecularGlossinessPropertiesAsync(extensionContext, extension, babylonMaterial));
|
|
40
|
-
this._loader.loadMaterialAlphaProperties(context, material, babylonMaterial);
|
|
41
|
-
return Promise.all(promises).then(() => { });
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
_loadSpecularGlossinessPropertiesAsync(context, properties, babylonMaterial) {
|
|
45
|
-
if (!(babylonMaterial instanceof PBRMaterial)) {
|
|
46
|
-
throw new Error(`${context}: Material type not supported`);
|
|
47
|
-
}
|
|
48
|
-
const promises = new Array();
|
|
49
|
-
babylonMaterial.metallic = null;
|
|
50
|
-
babylonMaterial.roughness = null;
|
|
51
|
-
if (properties.diffuseFactor) {
|
|
52
|
-
babylonMaterial.albedoColor = Color3.FromArray(properties.diffuseFactor);
|
|
53
|
-
babylonMaterial.alpha = properties.diffuseFactor[3];
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
babylonMaterial.albedoColor = Color3.White();
|
|
57
|
-
}
|
|
58
|
-
babylonMaterial.reflectivityColor = properties.specularFactor ? Color3.FromArray(properties.specularFactor) : Color3.White();
|
|
59
|
-
babylonMaterial.microSurface = properties.glossinessFactor == undefined ? 1 : properties.glossinessFactor;
|
|
60
|
-
if (properties.diffuseTexture) {
|
|
61
|
-
promises.push(this._loader.loadTextureInfoAsync(`${context}/diffuseTexture`, properties.diffuseTexture, (texture) => {
|
|
62
|
-
texture.name = `${babylonMaterial.name} (Diffuse)`;
|
|
63
|
-
babylonMaterial.albedoTexture = texture;
|
|
64
|
-
}));
|
|
65
|
-
}
|
|
66
|
-
if (properties.specularGlossinessTexture) {
|
|
67
|
-
promises.push(this._loader.loadTextureInfoAsync(`${context}/specularGlossinessTexture`, properties.specularGlossinessTexture, (texture) => {
|
|
68
|
-
texture.name = `${babylonMaterial.name} (Specular Glossiness)`;
|
|
69
|
-
babylonMaterial.reflectivityTexture = texture;
|
|
70
|
-
babylonMaterial.reflectivityTexture.hasAlpha = true;
|
|
71
|
-
}));
|
|
72
|
-
babylonMaterial.useMicroSurfaceFromReflectivityMapAlpha = true;
|
|
73
|
-
}
|
|
74
|
-
return Promise.all(promises).then(() => { });
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
unregisterGLTFExtension(NAME);
|
|
78
|
-
registerGLTFExtension(NAME, true, (loader) => new KHR_materials_pbrSpecularGlossiness(loader));
|
|
79
|
-
|
|
80
|
-
export { KHR_materials_pbrSpecularGlossiness };
|
|
81
|
-
//# sourceMappingURL=KHR_materials_pbrSpecularGlossiness-C_4MAuDj.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KHR_materials_pbrSpecularGlossiness-C_4MAuDj.esm.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js"],"sourcesContent":["import { Color3 } from \"core/Maths/math.color\";\nimport { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_pbrSpecularGlossiness\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_pbrSpecularGlossiness {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 200;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialBasePropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadSpecularGlossinessPropertiesAsync(extensionContext, extension, babylonMaterial));\n this._loader.loadMaterialAlphaProperties(context, material, babylonMaterial);\n return Promise.all(promises).then(() => { });\n });\n }\n _loadSpecularGlossinessPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.metallic = null;\n babylonMaterial.roughness = null;\n if (properties.diffuseFactor) {\n babylonMaterial.albedoColor = Color3.FromArray(properties.diffuseFactor);\n babylonMaterial.alpha = properties.diffuseFactor[3];\n }\n else {\n babylonMaterial.albedoColor = Color3.White();\n }\n babylonMaterial.reflectivityColor = properties.specularFactor ? Color3.FromArray(properties.specularFactor) : Color3.White();\n babylonMaterial.microSurface = properties.glossinessFactor == undefined ? 1 : properties.glossinessFactor;\n if (properties.diffuseTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/diffuseTexture`, properties.diffuseTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Diffuse)`;\n babylonMaterial.albedoTexture = texture;\n }));\n }\n if (properties.specularGlossinessTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/specularGlossinessTexture`, properties.specularGlossinessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Specular Glossiness)`;\n babylonMaterial.reflectivityTexture = texture;\n babylonMaterial.reflectivityTexture.hasAlpha = true;\n }));\n babylonMaterial.useMicroSurfaceFromReflectivityMapAlpha = true;\n }\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_pbrSpecularGlossiness(loader));\n//# sourceMappingURL=KHR_materials_pbrSpecularGlossiness.js.map"],"names":[],"mappings":";;;;;;AAIA,MAAM,IAAI,GAAG,qCAAqC;AAClD;AACA;AACA;AACA;AACO,MAAM,mC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,CAAC,EAAE,UAAU,CAAC,yBAAyB,EAAE,CAAC,OAAO,KAAK;AACvJ,gBAAgB,OAAO,CAAC,IAAI,GAAG,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC;AAC9E,gBAAgB,eAAe,CAAC,mBAAmB,GAAG,OAAO;AAC7D,gBAAgB,eAAe,CAAC,mBAAmB,CAAC,QAAQ,GAAG,IAAI;AACnE,aAAa,CAAC,CAAC;AACf,YAAY,eAAe,CAAC,uCAAuC,GAAG,IAAI;AAC1E;AACA,QAAQ,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;AACpD;AACA;AACA,uBAAuB,CAAC,IAAI,CAAC;AAC7B,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,KAAK,IAAI,mCAAmC,CAAC,MAAM,CAAC,CAAC;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a_ as e,s,aP as r,aQ as a}from"./index-Byr0e55i.esm.min.js";import{G as o}from"./glTFLoader-C-9RyvaX.esm.min.js";import"./rawTexture-DiLjtdps.esm.min.js";import"./assetContainer-UT1ioCCO.esm.min.js";import"./glTFLoaderAnimation-CuAlGu9L.esm.min.js";const t="KHR_materials_pbrSpecularGlossiness";class i{constructor(e){this.name=t,this.order=200,this._loader=e,this.enabled=this._loader.isExtensionUsed(t)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,s,r){return o.LoadExtensionAsync(e,s,this.name,((a,o)=>{const t=new Array;return t.push(this._loader.loadMaterialBasePropertiesAsync(e,s,r)),t.push(this._loadSpecularGlossinessPropertiesAsync(a,o,r)),this._loader.loadMaterialAlphaProperties(e,s,r),Promise.all(t).then((()=>{}))}))}_loadSpecularGlossinessPropertiesAsync(r,a,o){if(!(o instanceof e))throw new Error(`${r}: Material type not supported`);const t=new Array;return o.metallic=null,o.roughness=null,a.diffuseFactor?(o.albedoColor=s.FromArray(a.diffuseFactor),o.alpha=a.diffuseFactor[3]):o.albedoColor=s.White(),o.reflectivityColor=a.specularFactor?s.FromArray(a.specularFactor):s.White(),o.microSurface=null==a.glossinessFactor?1:a.glossinessFactor,a.diffuseTexture&&t.push(this._loader.loadTextureInfoAsync(`${r}/diffuseTexture`,a.diffuseTexture,(e=>{e.name=`${o.name} (Diffuse)`,o.albedoTexture=e}))),a.specularGlossinessTexture&&(t.push(this._loader.loadTextureInfoAsync(`${r}/specularGlossinessTexture`,a.specularGlossinessTexture,(e=>{e.name=`${o.name} (Specular Glossiness)`,o.reflectivityTexture=e,o.reflectivityTexture.hasAlpha=!0}))),o.useMicroSurfaceFromReflectivityMapAlpha=!0),Promise.all(t).then((()=>{}))}}r(t),a(t,!0,(e=>new i(e)));export{i as KHR_materials_pbrSpecularGlossiness};
|
|
2
|
-
//# sourceMappingURL=KHR_materials_pbrSpecularGlossiness-pWJRVA-C.esm.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KHR_materials_pbrSpecularGlossiness-pWJRVA-C.esm.min.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js"],"sourcesContent":["import { Color3 } from \"core/Maths/math.color\";\nimport { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_pbrSpecularGlossiness\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_pbrSpecularGlossiness {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 200;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialBasePropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadSpecularGlossinessPropertiesAsync(extensionContext, extension, babylonMaterial));\n this._loader.loadMaterialAlphaProperties(context, material, babylonMaterial);\n return Promise.all(promises).then(() => { });\n });\n }\n _loadSpecularGlossinessPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.metallic = null;\n babylonMaterial.roughness = null;\n if (properties.diffuseFactor) {\n babylonMaterial.albedoColor = Color3.FromArray(properties.diffuseFactor);\n babylonMaterial.alpha = properties.diffuseFactor[3];\n }\n else {\n babylonMaterial.albedoColor = Color3.White();\n }\n babylonMaterial.reflectivityColor = properties.specularFactor ? Color3.FromArray(properties.specularFactor) : Color3.White();\n babylonMaterial.microSurface = properties.glossinessFactor == undefined ? 1 : properties.glossinessFactor;\n if (properties.diffuseTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/diffuseTexture`, properties.diffuseTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Diffuse)`;\n babylonMaterial.albedoTexture = texture;\n }));\n }\n if (properties.specularGlossinessTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/specularGlossinessTexture`, properties.specularGlossinessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Specular Glossiness)`;\n babylonMaterial.reflectivityTexture = texture;\n babylonMaterial.reflectivityTexture.hasAlpha = true;\n }));\n babylonMaterial.useMicroSurfaceFromReflectivityMapAlpha = true;\n }\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_pbrSpecularGlossiness(loader));\n//# sourceMappingURL=KHR_materials_pbrSpecularGlossiness.js.map"],"names":["NAME","KHR_materials_pbrSpecularGlossiness","constructor","loader","this","name","order","_loader","enabled","isExtensionUsed","dispose","loadMaterialPropertiesAsync","context","material","babylonMaterial","GLTFLoader","LoadExtensionAsync","extensionContext","extension","promises","Array","push","loadMaterialBasePropertiesAsync","_loadSpecularGlossinessPropertiesAsync","loadMaterialAlphaProperties","Promise","all","then","properties","PBRMaterial","Error","metallic","roughness","diffuseFactor","albedoColor","Color3","FromArray","alpha","White","reflectivityColor","specularFactor","microSurface","undefined","glossinessFactor","diffuseTexture","loadTextureInfoAsync","texture","albedoTexture","specularGlossinessTexture","reflectivityTexture","hasAlpha","useMicroSurfaceFromReflectivityMapAlpha","unregisterGLTFExtension","registerGLTFExtension"],"mappings":"gQAIA,MAAMA,EAAO,sCAKN,MAAMC,EAIT,WAAAC,CAAYC,GAIRC,KAAKC,KAAOL,EAIZI,KAAKE,MAAQ,IACbF,KAAKG,QAAUJ,EACfC,KAAKI,QAAUJ,KAAKG,QAAQE,gBAAgBT,EACpD,CAEI,OAAAU,GACIN,KAAKG,QAAU,IACvB,CAII,2BAAAI,CAA4BC,EAASC,EAAUC,GAC3C,OAAOC,EAAWC,mBAAmBJ,EAASC,EAAUT,KAAKC,MAAM,CAACY,EAAkBC,KAClF,MAAMC,EAAW,IAAIC,MAIrB,OAHAD,EAASE,KAAKjB,KAAKG,QAAQe,gCAAgCV,EAASC,EAAUC,IAC9EK,EAASE,KAAKjB,KAAKmB,uCAAuCN,EAAkBC,EAAWJ,IACvFV,KAAKG,QAAQiB,4BAA4BZ,EAASC,EAAUC,GACrDW,QAAQC,IAAIP,GAAUQ,MAAK,QAAU,GAExD,CACI,sCAAAJ,CAAuCX,EAASgB,EAAYd,GACxD,KAAMA,aAA2Be,GAC7B,MAAM,IAAIC,MAAM,GAAGlB,kCAEvB,MAAMO,EAAW,IAAIC,MA0BrB,OAzBAN,EAAgBiB,SAAW,KAC3BjB,EAAgBkB,UAAY,KACxBJ,EAAWK,eACXnB,EAAgBoB,YAAcC,EAAOC,UAAUR,EAAWK,eAC1DnB,EAAgBuB,MAAQT,EAAWK,cAAc,IAGjDnB,EAAgBoB,YAAcC,EAAOG,QAEzCxB,EAAgByB,kBAAoBX,EAAWY,eAAiBL,EAAOC,UAAUR,EAAWY,gBAAkBL,EAAOG,QACrHxB,EAAgB2B,aAA8CC,MAA/Bd,EAAWe,iBAAgC,EAAIf,EAAWe,iBACrFf,EAAWgB,gBACXzB,EAASE,KAAKjB,KAAKG,QAAQsC,qBAAqB,GAAGjC,mBAA0BgB,EAAWgB,gBAAiBE,IACrGA,EAAQzC,KAAO,GAAGS,EAAgBT,iBAClCS,EAAgBiC,cAAgBD,CAAO,KAG3ClB,EAAWoB,4BACX7B,EAASE,KAAKjB,KAAKG,QAAQsC,qBAAqB,GAAGjC,8BAAqCgB,EAAWoB,2BAA4BF,IAC3HA,EAAQzC,KAAO,GAAGS,EAAgBT,6BAClCS,EAAgBmC,oBAAsBH,EACtChC,EAAgBmC,oBAAoBC,UAAW,CAAI,KAEvDpC,EAAgBqC,yCAA0C,GAEvD1B,QAAQC,IAAIP,GAAUQ,MAAK,QAC1C,EAEAyB,EAAwBpD,GACxBqD,EAAsBrD,GAAM,GAAOG,GAAW,IAAIF,EAAoCE"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { a_ as PBRMaterial, s as Color3, aP as unregisterGLTFExtension, aQ as registerGLTFExtension } from './index-D2PRSJU-.esm.js';
|
|
2
|
-
import { G as GLTFLoader } from './glTFLoader-CykTOmbH.esm.js';
|
|
3
|
-
import './rawTexture-CtZPcsCK.esm.js';
|
|
4
|
-
import './assetContainer-C6ncSoIo.esm.js';
|
|
5
|
-
import './glTFLoaderAnimation-D-9sO0SL.esm.js';
|
|
6
|
-
|
|
7
|
-
const NAME = "KHR_materials_sheen";
|
|
8
|
-
/**
|
|
9
|
-
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_sheen/README.md)
|
|
10
|
-
* [Playground Sample](https://www.babylonjs-playground.com/frame.html#BNIZX6#4)
|
|
11
|
-
*/
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13
|
-
class KHR_materials_sheen {
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
constructor(loader) {
|
|
18
|
-
/**
|
|
19
|
-
* The name of this extension.
|
|
20
|
-
*/
|
|
21
|
-
this.name = NAME;
|
|
22
|
-
/**
|
|
23
|
-
* Defines a number that determines the order the extensions are applied.
|
|
24
|
-
*/
|
|
25
|
-
this.order = 190;
|
|
26
|
-
this._loader = loader;
|
|
27
|
-
this.enabled = this._loader.isExtensionUsed(NAME);
|
|
28
|
-
}
|
|
29
|
-
/** @internal */
|
|
30
|
-
dispose() {
|
|
31
|
-
this._loader = null;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
|
-
loadMaterialPropertiesAsync(context, material, babylonMaterial) {
|
|
37
|
-
return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
|
|
38
|
-
const promises = new Array();
|
|
39
|
-
promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));
|
|
40
|
-
promises.push(this._loadSheenPropertiesAsync(extensionContext, extension, babylonMaterial));
|
|
41
|
-
return Promise.all(promises).then(() => { });
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
_loadSheenPropertiesAsync(context, properties, babylonMaterial) {
|
|
45
|
-
if (!(babylonMaterial instanceof PBRMaterial)) {
|
|
46
|
-
throw new Error(`${context}: Material type not supported`);
|
|
47
|
-
}
|
|
48
|
-
const promises = new Array();
|
|
49
|
-
babylonMaterial.sheen.isEnabled = true;
|
|
50
|
-
babylonMaterial.sheen.intensity = 1;
|
|
51
|
-
if (properties.sheenColorFactor != undefined) {
|
|
52
|
-
babylonMaterial.sheen.color = Color3.FromArray(properties.sheenColorFactor);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
babylonMaterial.sheen.color = Color3.Black();
|
|
56
|
-
}
|
|
57
|
-
if (properties.sheenColorTexture) {
|
|
58
|
-
promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenColorTexture`, properties.sheenColorTexture, (texture) => {
|
|
59
|
-
texture.name = `${babylonMaterial.name} (Sheen Color)`;
|
|
60
|
-
babylonMaterial.sheen.texture = texture;
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
if (properties.sheenRoughnessFactor !== undefined) {
|
|
64
|
-
babylonMaterial.sheen.roughness = properties.sheenRoughnessFactor;
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
babylonMaterial.sheen.roughness = 0;
|
|
68
|
-
}
|
|
69
|
-
if (properties.sheenRoughnessTexture) {
|
|
70
|
-
properties.sheenRoughnessTexture.nonColorData = true;
|
|
71
|
-
promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenRoughnessTexture`, properties.sheenRoughnessTexture, (texture) => {
|
|
72
|
-
texture.name = `${babylonMaterial.name} (Sheen Roughness)`;
|
|
73
|
-
babylonMaterial.sheen.textureRoughness = texture;
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
babylonMaterial.sheen.albedoScaling = true;
|
|
77
|
-
babylonMaterial.sheen.useRoughnessFromMainTexture = false;
|
|
78
|
-
return Promise.all(promises).then(() => { });
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
unregisterGLTFExtension(NAME);
|
|
82
|
-
registerGLTFExtension(NAME, true, (loader) => new KHR_materials_sheen(loader));
|
|
83
|
-
|
|
84
|
-
export { KHR_materials_sheen };
|
|
85
|
-
//# sourceMappingURL=KHR_materials_sheen-BrzXyxI9.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KHR_materials_sheen-BrzXyxI9.esm.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_sheen.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { Color3 } from \"core/Maths/math.color\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_sheen\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_sheen/README.md)\n * [Playground Sample](https://www.babylonjs-playground.com/frame.html#BNIZX6#4)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_sheen {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 190;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadSheenPropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadSheenPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.sheen.isEnabled = true;\n babylonMaterial.sheen.intensity = 1;\n if (properties.sheenColorFactor != undefined) {\n babylonMaterial.sheen.color = Color3.FromArray(properties.sheenColorFactor);\n }\n else {\n babylonMaterial.sheen.color = Color3.Black();\n }\n if (properties.sheenColorTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenColorTexture`, properties.sheenColorTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Sheen Color)`;\n babylonMaterial.sheen.texture = texture;\n }));\n }\n if (properties.sheenRoughnessFactor !== undefined) {\n babylonMaterial.sheen.roughness = properties.sheenRoughnessFactor;\n }\n else {\n babylonMaterial.sheen.roughness = 0;\n }\n if (properties.sheenRoughnessTexture) {\n properties.sheenRoughnessTexture.nonColorData = true;\n promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenRoughnessTexture`, properties.sheenRoughnessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Sheen Roughness)`;\n babylonMaterial.sheen.textureRoughness = texture;\n }));\n }\n babylonMaterial.sheen.albedoScaling = true;\n babylonMaterial.sheen.useRoughnessFromMainTexture = false;\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_sheen(loader));\n//# sourceMappingURL=KHR_materials_sheen.js.map"],"names":[],"mappings":";;;;;;AAIA,MAAM,IAAI,GAAG,qBAAqB;AAClC;AACA;AACA;AACA;AACA;AACO,MAAM,mBAAmB,CAAC;AACjC;AACA;AACA;AACA,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,KAAK,GAAG,GAAG;AACxB,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM;AAC7B,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;AACzD;AACA;AACA,IAAI,OAAO,GAAG;AACd,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI;AAC3B;AACA;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE;AACpE,QAAQ,OAAO,UAAU,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,gBAAgB,EAAE,SAAS,KAAK;AAC5G,YAAY,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esm.min.js";import{G as r}from"./glTFLoader-C-9RyvaX.esm.min.js";import"./rawTexture-DiLjtdps.esm.min.js";import"./assetContainer-UT1ioCCO.esm.min.js";import"./glTFLoaderAnimation-CuAlGu9L.esm.min.js";const t="KHR_materials_sheen";class a{constructor(e){this.name=t,this.order=190,this._loader=e,this.enabled=this._loader.isExtensionUsed(t)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,s,n){return r.LoadExtensionAsync(e,s,this.name,((o,r)=>{const t=new Array;return t.push(this._loader.loadMaterialPropertiesAsync(e,s,n)),t.push(this._loadSheenPropertiesAsync(o,r,n)),Promise.all(t).then((()=>{}))}))}_loadSheenPropertiesAsync(n,o,r){if(!(r instanceof e))throw new Error(`${n}: Material type not supported`);const t=new Array;return r.sheen.isEnabled=!0,r.sheen.intensity=1,null!=o.sheenColorFactor?r.sheen.color=s.FromArray(o.sheenColorFactor):r.sheen.color=s.Black(),o.sheenColorTexture&&t.push(this._loader.loadTextureInfoAsync(`${n}/sheenColorTexture`,o.sheenColorTexture,(e=>{e.name=`${r.name} (Sheen Color)`,r.sheen.texture=e}))),void 0!==o.sheenRoughnessFactor?r.sheen.roughness=o.sheenRoughnessFactor:r.sheen.roughness=0,o.sheenRoughnessTexture&&(o.sheenRoughnessTexture.nonColorData=!0,t.push(this._loader.loadTextureInfoAsync(`${n}/sheenRoughnessTexture`,o.sheenRoughnessTexture,(e=>{e.name=`${r.name} (Sheen Roughness)`,r.sheen.textureRoughness=e})))),r.sheen.albedoScaling=!0,r.sheen.useRoughnessFromMainTexture=!1,Promise.all(t).then((()=>{}))}}n(t),o(t,!0,(e=>new a(e)));export{a as KHR_materials_sheen};
|
|
2
|
-
//# sourceMappingURL=KHR_materials_sheen-vYnhqBGA.esm.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KHR_materials_sheen-vYnhqBGA.esm.min.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_sheen.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { Color3 } from \"core/Maths/math.color\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_sheen\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_sheen/README.md)\n * [Playground Sample](https://www.babylonjs-playground.com/frame.html#BNIZX6#4)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_sheen {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 190;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadSheenPropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadSheenPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n babylonMaterial.sheen.isEnabled = true;\n babylonMaterial.sheen.intensity = 1;\n if (properties.sheenColorFactor != undefined) {\n babylonMaterial.sheen.color = Color3.FromArray(properties.sheenColorFactor);\n }\n else {\n babylonMaterial.sheen.color = Color3.Black();\n }\n if (properties.sheenColorTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenColorTexture`, properties.sheenColorTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Sheen Color)`;\n babylonMaterial.sheen.texture = texture;\n }));\n }\n if (properties.sheenRoughnessFactor !== undefined) {\n babylonMaterial.sheen.roughness = properties.sheenRoughnessFactor;\n }\n else {\n babylonMaterial.sheen.roughness = 0;\n }\n if (properties.sheenRoughnessTexture) {\n properties.sheenRoughnessTexture.nonColorData = true;\n promises.push(this._loader.loadTextureInfoAsync(`${context}/sheenRoughnessTexture`, properties.sheenRoughnessTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Sheen Roughness)`;\n babylonMaterial.sheen.textureRoughness = texture;\n }));\n }\n babylonMaterial.sheen.albedoScaling = true;\n babylonMaterial.sheen.useRoughnessFromMainTexture = false;\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_sheen(loader));\n//# sourceMappingURL=KHR_materials_sheen.js.map"],"names":["NAME","KHR_materials_sheen","constructor","loader","this","name","order","_loader","enabled","isExtensionUsed","dispose","loadMaterialPropertiesAsync","context","material","babylonMaterial","GLTFLoader","LoadExtensionAsync","extensionContext","extension","promises","Array","push","_loadSheenPropertiesAsync","Promise","all","then","properties","PBRMaterial","Error","sheen","isEnabled","intensity","undefined","sheenColorFactor","color","Color3","FromArray","Black","sheenColorTexture","loadTextureInfoAsync","texture","sheenRoughnessFactor","roughness","sheenRoughnessTexture","nonColorData","textureRoughness","albedoScaling","useRoughnessFromMainTexture","unregisterGLTFExtension","registerGLTFExtension"],"mappings":"gQAIA,MAAMA,EAAO,sBAMN,MAAMC,EAIT,WAAAC,CAAYC,GAIRC,KAAKC,KAAOL,EAIZI,KAAKE,MAAQ,IACbF,KAAKG,QAAUJ,EACfC,KAAKI,QAAUJ,KAAKG,QAAQE,gBAAgBT,EACpD,CAEI,OAAAU,GACIN,KAAKG,QAAU,IACvB,CAII,2BAAAI,CAA4BC,EAASC,EAAUC,GAC3C,OAAOC,EAAWC,mBAAmBJ,EAASC,EAAUT,KAAKC,MAAM,CAACY,EAAkBC,KAClF,MAAMC,EAAW,IAAIC,MAGrB,OAFAD,EAASE,KAAK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m.min.js";import"./rawTexture-DiLjtdps.esm.min.js";import"./assetContainer-UT1ioCCO.esm.min.js";import"./glTFLoaderAnimation-CuAlGu9L.esm.min.js";const t="KHR_materials_specular";class l{constructor(e){this.name=t,this.order=190,this._loader=e,this.enabled=this._loader.isExtensionUsed(t)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,r,a){return o.LoadExtensionAsync(e,r,this.name,((s,o)=>{const t=new Array;return t.push(this._loader.loadMaterialPropertiesAsync(e,r,a)),t.push(this._loadSpecularPropertiesAsync(s,o,a)),Promise.all(t).then((()=>{}))}))}_loadSpecularPropertiesAsync(a,s,o){if(!(o instanceof e))throw new Error(`${a}: Material type not supported`);const t=new Array;return void 0!==s.specularFactor&&(o.metallicF0Factor=s.specularFactor),void 0!==s.specularColorFactor&&(o.metallicReflectanceColor=r.FromArray(s.specularColorFactor)),s.specularTexture&&(s.specularTexture.nonColorData=!0,t.push(this._loader.loadTextureInfoAsync(`${a}/specularTexture`,s.specularTexture,(e=>{e.name=`${o.name} (Specular)`,o.metallicReflectanceTexture=e,o.useOnlyMetallicFromMetallicReflectanceTexture=!0})))),s.specularColorTexture&&t.push(this._loader.loadTextureInfoAsync(`${a}/specularColorTexture`,s.specularColorTexture,(e=>{e.name=`${o.name} (Specular Color)`,o.reflectanceTexture=e}))),Promise.all(t).then((()=>{}))}}a(t),s(t,!0,(e=>new l(e)));export{l as KHR_materials_specular};
|
|
2
|
-
//# sourceMappingURL=KHR_materials_specular-Blup6EfD.esm.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KHR_materials_specular-Blup6EfD.esm.min.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_specular.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { Color3 } from \"core/Maths/math.color\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_specular\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_specular/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_specular {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 190;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadSpecularPropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadSpecularPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n if (properties.specularFactor !== undefined) {\n babylonMaterial.metallicF0Factor = properties.specularFactor;\n }\n if (properties.specularColorFactor !== undefined) {\n babylonMaterial.metallicReflectanceColor = Color3.FromArray(properties.specularColorFactor);\n }\n if (properties.specularTexture) {\n properties.specularTexture.nonColorData = true;\n promises.push(this._loader.loadTextureInfoAsync(`${context}/specularTexture`, properties.specularTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Specular)`;\n babylonMaterial.metallicReflectanceTexture = texture;\n babylonMaterial.useOnlyMetallicFromMetallicReflectanceTexture = true;\n }));\n }\n if (properties.specularColorTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/specularColorTexture`, properties.specularColorTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Specular Color)`;\n babylonMaterial.reflectanceTexture = texture;\n }));\n }\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_specular(loader));\n//# sourceMappingURL=KHR_materials_specular.js.map"],"names":["NAME","KHR_materials_specular","constructor","loader","this","name","order","_loader","enabled","isExtensionUsed","dispose","loadMaterialPropertiesAsync","context","material","babylonMaterial","GLTFLoader","LoadExtensionAsync","extensionContext","extension","promises","Array","push","_loadSpecularPropertiesAsync","Promise","all","then","properties","PBRMaterial","Error","undefined","specularFactor","metallicF0Factor","specularColorFactor","metallicReflectanceColor","Color3","FromArray","specularTexture","nonColorData","loadTextureInfoAsync","texture","metallicReflectanceTexture","useOnlyMetallicFromMetallicReflectanceTexture","specularColorTexture","reflectanceTexture","unregisterGLTFExtension","registerGLTFExtension"],"mappings":"qQAIA,MAAMA,EAAO,yBAKN,MAAMC,EAIT,WAAAC,CAAYC,GAIRC,KAAKC,KAAOL,EAIZI,KAAKE,MAAQ,IACbF,KAAKG,QAAUJ,EACfC,KAAKI,QAAUJ,KAAKG,QAAQE,gBAAgBT,EACpD,CAEI,OAAAU,GACIN,KAAKG,QAAU,IACvB,CAII,2BAAAI,CAA4BC,EAASC,EAAUC,GAC3C,OAAOC,EAAWC,mBAAmBJ,EAASC,EAAUT,KAAKC,MAAM,CAACY,EAAkBC,KAClF,MAAMC,EAAW,IAAIC,MAGrB,OAFAD,EAASE,KAAKjB,KAAKG,QAAQI,4BAA4BC,EAASC,EAAUC,IAC1EK,EAASE,KAAKjB,KAAKkB,6BAA6BL,EAAkBC,EAAWJ,IACtES,QAAQC,IAAIL,GAAUM,MAAK,QAAU,GAExD,CACI,4BAAAH,CAA6BV,EAASc,EAAYZ,GAC9C,KAAMA,aAA2Ba,GAC7B,MAAM,IAAIC,MAAM,GAAGhB,kCAEvB,MAAMO,EAAW,IAAIC,MAqBrB,YApBkCS,IAA9BH,EAAWI,iBACXhB,EAAgBiB,iBAAmBL,EAAWI,qBAEXD,IAAnCH,EAAWM,sBACXlB,EAAgBmB,yBAA2BC,EAAOC,UAAUT,EAAWM,sBAEvEN,EAAWU,kBACXV,EAAWU,gBAAgBC,cAAe,EAC1ClB,EAASE,KAAKjB,KAAKG,QAAQ+B,qBAAqB,GAAG1B,oBAA2Bc,EAAWU,iBAAkBG,IACvGA,EAAQlC,KAAO,GAAGS,EAAgBT,kBAClCS,EAAgB0B,2BAA6BD,EAC7CzB,EAAgB2B,+CAAgD,CAAI,MAGxEf,EAAWgB,sBACXvB,EAASE,KAAKjB,KAAKG,QAAQ+B,qBAAqB,GAAG1B,yBAAgCc,EAAWgB,sBAAuBH,IACjHA,EAAQlC,KAAO,GAAGS,EAAgBT,wBAClCS,EAAgB6B,mBAAqBJ,CAAO,KAG7ChB,QAAQC,IAAIL,GAAUM,MAAK,QAC1C,EAEAmB,EAAwB5C,GACxB6C,EAAsB7C,GAAM,GAAOG,GAAW,IAAIF,EAAuBE"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { a_ as PBRMaterial, s as Color3, aP as unregisterGLTFExtension, aQ as registerGLTFExtension } from './index-D2PRSJU-.esm.js';
|
|
2
|
-
import { G as GLTFLoader } from './glTFLoader-CykTOmbH.esm.js';
|
|
3
|
-
import './rawTexture-CtZPcsCK.esm.js';
|
|
4
|
-
import './assetContainer-C6ncSoIo.esm.js';
|
|
5
|
-
import './glTFLoaderAnimation-D-9sO0SL.esm.js';
|
|
6
|
-
|
|
7
|
-
const NAME = "KHR_materials_specular";
|
|
8
|
-
/**
|
|
9
|
-
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_specular/README.md)
|
|
10
|
-
*/
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
12
|
-
class KHR_materials_specular {
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
constructor(loader) {
|
|
17
|
-
/**
|
|
18
|
-
* The name of this extension.
|
|
19
|
-
*/
|
|
20
|
-
this.name = NAME;
|
|
21
|
-
/**
|
|
22
|
-
* Defines a number that determines the order the extensions are applied.
|
|
23
|
-
*/
|
|
24
|
-
this.order = 190;
|
|
25
|
-
this._loader = loader;
|
|
26
|
-
this.enabled = this._loader.isExtensionUsed(NAME);
|
|
27
|
-
}
|
|
28
|
-
/** @internal */
|
|
29
|
-
dispose() {
|
|
30
|
-
this._loader = null;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
|
-
loadMaterialPropertiesAsync(context, material, babylonMaterial) {
|
|
36
|
-
return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
|
|
37
|
-
const promises = new Array();
|
|
38
|
-
promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));
|
|
39
|
-
promises.push(this._loadSpecularPropertiesAsync(extensionContext, extension, babylonMaterial));
|
|
40
|
-
return Promise.all(promises).then(() => { });
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
_loadSpecularPropertiesAsync(context, properties, babylonMaterial) {
|
|
44
|
-
if (!(babylonMaterial instanceof PBRMaterial)) {
|
|
45
|
-
throw new Error(`${context}: Material type not supported`);
|
|
46
|
-
}
|
|
47
|
-
const promises = new Array();
|
|
48
|
-
if (properties.specularFactor !== undefined) {
|
|
49
|
-
babylonMaterial.metallicF0Factor = properties.specularFactor;
|
|
50
|
-
}
|
|
51
|
-
if (properties.specularColorFactor !== undefined) {
|
|
52
|
-
babylonMaterial.metallicReflectanceColor = Color3.FromArray(properties.specularColorFactor);
|
|
53
|
-
}
|
|
54
|
-
if (properties.specularTexture) {
|
|
55
|
-
properties.specularTexture.nonColorData = true;
|
|
56
|
-
promises.push(this._loader.loadTextureInfoAsync(`${context}/specularTexture`, properties.specularTexture, (texture) => {
|
|
57
|
-
texture.name = `${babylonMaterial.name} (Specular)`;
|
|
58
|
-
babylonMaterial.metallicReflectanceTexture = texture;
|
|
59
|
-
babylonMaterial.useOnlyMetallicFromMetallicReflectanceTexture = true;
|
|
60
|
-
}));
|
|
61
|
-
}
|
|
62
|
-
if (properties.specularColorTexture) {
|
|
63
|
-
promises.push(this._loader.loadTextureInfoAsync(`${context}/specularColorTexture`, properties.specularColorTexture, (texture) => {
|
|
64
|
-
texture.name = `${babylonMaterial.name} (Specular Color)`;
|
|
65
|
-
babylonMaterial.reflectanceTexture = texture;
|
|
66
|
-
}));
|
|
67
|
-
}
|
|
68
|
-
return Promise.all(promises).then(() => { });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
unregisterGLTFExtension(NAME);
|
|
72
|
-
registerGLTFExtension(NAME, true, (loader) => new KHR_materials_specular(loader));
|
|
73
|
-
|
|
74
|
-
export { KHR_materials_specular };
|
|
75
|
-
//# sourceMappingURL=KHR_materials_specular-Dl2VI7fY.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KHR_materials_specular-Dl2VI7fY.esm.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_specular.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { Color3 } from \"core/Maths/math.color\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"KHR_materials_specular\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_specular/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_specular {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 190;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadSpecularPropertiesAsync(extensionContext, extension, babylonMaterial));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadSpecularPropertiesAsync(context, properties, babylonMaterial) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const promises = new Array();\n if (properties.specularFactor !== undefined) {\n babylonMaterial.metallicF0Factor = properties.specularFactor;\n }\n if (properties.specularColorFactor !== undefined) {\n babylonMaterial.metallicReflectanceColor = Color3.FromArray(properties.specularColorFactor);\n }\n if (properties.specularTexture) {\n properties.specularTexture.nonColorData = true;\n promises.push(this._loader.loadTextureInfoAsync(`${context}/specularTexture`, properties.specularTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Specular)`;\n babylonMaterial.metallicReflectanceTexture = texture;\n babylonMaterial.useOnlyMetallicFromMetallicReflectanceTexture = true;\n }));\n }\n if (properties.specularColorTexture) {\n promises.push(this._loader.loadTextureInfoAsync(`${context}/specularColorTexture`, properties.specularColorTexture, (texture) => {\n texture.name = `${babylonMaterial.name} (Specular Color)`;\n babylonMaterial.reflectanceTexture = texture;\n }));\n }\n return Promise.all(promises).then(() => { });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_specular(loader));\n//# sourceMappingURL=KHR_materials_specular.js.map"],"names":[],"mappings":";;;;;;AAIA,MAAM,IAAI,GAAG,wBAAwB;AACrC;AACA;AACA;AACA;AACO,MAAM,sBAAsB,CAAC;AACpC;AACA;AACA;AACA,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,KAAK,GAAG,GAAG;AACxB,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM;AAC7B,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI,CA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RyvaX.esm.min.js";import"./rawTexture-DiLjtdps.esm.min.js";import"./assetContainer-UT1ioCCO.esm.min.js";import"./glTFLoaderAnimation-CuAlGu9L.esm.min.js";class h{static _GetDefaultOptions(){return{renderSize:1024,samples:4,lodGenerationScale:1,lodGenerationOffset:-4,renderTargetTextureType:r.TEXTURETYPE_HALF_FLOAT,generateMipmaps:!0}}constructor(e,s){this._opaqueRenderTarget=null,this._opaqueMeshesCache=[],this._transparentMeshesCache=[],this._materialObservers={},this._options={...h._GetDefaultOptions(),...e},this._scene=s,this._scene._transmissionHelper=this,this.onErrorObservable=new a,this._scene.onDisposeObservable.addOnce((()=>{this.dispose()})),this._parseScene(),this._setupRenderTargets()}updateOptions(e){if(!Object.keys(e).filter((s=>this._options[s]!==e[s])).length)return;const s={...this._options,...e},t=this._options;this._options=s,s.renderSize===t.renderSize&&s.renderTargetTextureType===t.renderTargetTextureType&&s.generateMipmaps===t.generateMipmaps&&this._opaqueRenderTarget?(this._opaqueRenderTarget.samples=s.samples,this._opaqueRenderTarget.lodGenerationScale=s.lodGenerationScale,this._opaqueRenderTarget.lodGenerationOffset=s.lodGenerationOffset):this._setupRenderTargets()}getOpaqueTarget(){return this._opaqueRenderTarget}_shouldRenderAsTransmission(s){return!!s&&!!(s instanceof e&&s.subSurface.isRefractionEnabled)}_addMesh(e){this._materialObservers[e.uniqueId]=e.onMaterialChangedObservable.add(this._onMeshMaterialChanged.bind(this)),n.SetImmediate((()=>{this._shouldRenderAsTransmission(e.material)?(e.material.refractionTexture=this._opaqueRenderTarget,-1===this._transparentMeshesCache.indexOf(e)&&this._transparentMeshesCache.push(e)):-1===this._opaqueMeshesCache.indexOf(e)&&this._opaqueMeshesCache.push(e)}))}_removeMesh(e){e.onMaterialChangedObservable.remove(this._materialObservers[e.uniqueId]),delete this._materialObservers[e.uniqueId];let s=this._transparentMeshesCache.indexOf(e);-1!==s&&this._transparentMeshesCache.splice(s,1),s=this._opaqueMeshesCache.indexOf(e),-1!==s&&this._opaqueMeshesCache.splice(s,1)}_parseScene(){this._scene.meshes.forEach(this._addMesh.bind(this)),this._scene.onNewMeshAddedObservable.add(this._addMesh.bind(this)),this._scene.onMeshRemovedObservable.add(this._removeMesh.bind(this))}_onMeshMaterialChanged(s){const t=this._transparentMeshesCache.indexOf(s),r=this._opaqueMeshesCache.indexOf(s);this._shouldRenderAsTransmission(s.material)?(s.material instanceof e&&(s.material.subSurface.refractionTexture=this._opaqueRenderTarget),-1!==r?(this._opaqueMeshesCache.splice(r,1),this._transparentMeshesCache.push(s)):-1===t&&this._transparentMeshesCache.push(s)):-1!==t?(this._transparentMeshesCache.splice(t,1),this._opaqueMeshesCache.push(s)):-1===r&&this._opaqueMeshesCache.push(s)}_isRenderTargetValid(){return null!==this._opaqueRenderTarget?.getInternalTexture()}_setupRenderTargets(){let e,s;this._opaqueRenderTarget&&this._opaqueRenderTarget.dispose(),this._opaqueRenderTarget=new i("opaqueSceneTexture",this._options.renderSize,this._scene,this._options.generateMipmaps,void 0,this._options.renderTargetTextureType),this._opaqueRenderTarget.ignoreCameraViewport=!0,this._opaqueRenderTarget.renderList=this._opaqueMeshesCache,this._opaqueRenderTarget.clearColor=this._options.clearColor?.clone()??this._scene.clearColor.clone(),this._opaqueRenderTarget.gammaSpace=!1,this._opaqueRenderTarget.lodGenerationScale=this._options.lodGenerationScale,this._opaqueRenderTarget.lodGenerationOffset=this._options.lodGenerationOffset,this._opaqueRenderTarget.samples=this._options.samples,this._opaqueRenderTarget.renderSprites=!0,this._opaqueRenderTarget.renderParticles=!0,this._opaqueRenderTarget.onBeforeBindObservable.add((t=>{s=this._scene.environmentIntensity,this._scene.environmentIntensity=1,e=this._scene.imageProcessingConfiguration.applyByPostProcess,this._options.clearColor?t.clearColor.copyFrom(this._options.clearColor):this._scene.clearColor.toLinearSpaceToRef(t.clearColor,this._scene.getEngine().useExactSrgbConversions),this._scene.imageProcessingConfiguration._applyByPostProcess=!0})),this._opaqueRenderTarget.onAfterUnbindObservable.add((()=>{this._scene.environmentIntensity=s,this._scene.imageProcessingConfiguration._applyByPostProcess=e})),this._transparentMeshesCache.forEach((e=>{this._shouldRenderAsTransmission(e.material)&&(e.material.refractionTexture=this._opaqueRenderTarget)}))}dispose(){this._scene._transmissionHelper=void 0,this._opaqueRenderTarget&&(this._opaqueRenderTarget.dispose(),this._opaqueRenderTarget=null),this._transparentMeshesCache=[],this._opaqueMeshesCache=[]}}const p="KHR_materials_transmission";class d{constructor(e){this.name=p,this.order=175,this._loader=e,this.enabled=this._loader.isExtensionUsed(p),this.enabled&&(e.parent.transparencyAsCoverage=!0)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,s,t){return o.LoadExtensionAsync(e,s,this.name,((r,a)=>{const n=new Array;return n.push(this._loader.loadMaterialPropertiesAsync(e,s,t)),n.push(this._loadTransparentPropertiesAsync(r,s,t,a)),Promise.all(n).then((()=>{}))}))}_loadTransparentPropertiesAsync(s,t,r,a){if(!(r instanceof e))throw new Error(`${s}: Material type not supported`);const n=r;if(n.subSurface.isRefractionEnabled=!0,n.subSurface.volumeIndexOfRefraction=1,n.subSurface.useAlbedoToTintRefraction=!0,void 0===a.transmissionFactor)return n.subSurface.refractionIntensity=0,n.subSurface.isRefractionEnabled=!1,Promise.resolve();{n.subSurface.refractionIntensity=a.transmissionFactor;const e=n.getScene();n.subSurface.refractionIntensity&&!e._transmissionHelper?new h({},n.getScene()):n.subSurface.refractionIntensity&&!e._transmissionHelper?._isRenderTargetValid()&&e._transmissionHelper?._setupRenderTargets()}return n.subSurface.minimumThickness=0,n.subSurface.maximumThickness=0,a.transmissionTexture?(a.transmissionTexture.nonColorData=!0,this._loader.loadTextureInfoAsync(`${s}/transmissionTexture`,a.transmissionTexture,void 0).then((e=>{e.name=`${r.name} (Transmission)`,n.subSurface.refractionIntensityTexture=e,n.subSurface.useGltfStyleTextures=!0}))):Promise.resolve()}}s(p),t(p,!0,(e=>new d(e)));export{d as KHR_materials_transmission};
|
|
2
|
-
//# sourceMappingURL=KHR_materials_transmission-C0KlwPCn.esm.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KHR_materials_transmission-C0KlwPCn.esm.min.js","sources":["../../../../../dev/loaders/dist/glTF/2.0/Extensions/KHR_materials_transmission.js"],"sourcesContent":["import { PBRMaterial } from \"core/Materials/PBR/pbrMaterial\";\nimport { GLTFLoader } from \"../glTFLoader\";\nimport { RenderTargetTexture } from \"core/Materials/Textures/renderTargetTexture\";\nimport { Observable } from \"core/Misc/observable\";\nimport { Constants } from \"core/Engines/constants\";\nimport { Tools } from \"core/Misc/tools\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\n/**\n * A class to handle setting up the rendering of opaque objects to be shown through transmissive objects.\n */\nclass TransmissionHelper {\n /**\n * Creates the default options for the helper.\n * @returns the default options\n */\n static _GetDefaultOptions() {\n return {\n renderSize: 1024,\n samples: 4,\n lodGenerationScale: 1,\n lodGenerationOffset: -4,\n renderTargetTextureType: Constants.TEXTURETYPE_HALF_FLOAT,\n generateMipmaps: true,\n };\n }\n /**\n * constructor\n * @param options Defines the options we want to customize the helper\n * @param scene The scene to add the material to\n */\n constructor(options, scene) {\n this._opaqueRenderTarget = null;\n this._opaqueMeshesCache = [];\n this._transparentMeshesCache = [];\n this._materialObservers = {};\n this._options = {\n ...TransmissionHelper._GetDefaultOptions(),\n ...options,\n };\n this._scene = scene;\n this._scene._transmissionHelper = this;\n this.onErrorObservable = new Observable();\n this._scene.onDisposeObservable.addOnce(() => {\n this.dispose();\n });\n this._parseScene();\n this._setupRenderTargets();\n }\n /**\n * Updates the background according to the new options\n * @param options\n */\n updateOptions(options) {\n // First check if any options are actually being changed. If not, exit.\n const newValues = Object.keys(options).filter((key) => this._options[key] !== options[key]);\n if (!newValues.length) {\n return;\n }\n const newOptions = {\n ...this._options,\n ...options,\n };\n const oldOptions = this._options;\n this._options = newOptions;\n // If size changes, recreate everything\n if (newOptions.renderSize !== oldOptions.renderSize ||\n newOptions.renderTargetTextureType !== oldOptions.renderTargetTextureType ||\n newOptions.generateMipmaps !== oldOptions.generateMipmaps ||\n !this._opaqueRenderTarget) {\n this._setupRenderTargets();\n }\n else {\n this._opaqueRenderTarget.samples = newOptions.samples;\n this._opaqueRenderTarget.lodGenerationScale = newOptions.lodGenerationScale;\n this._opaqueRenderTarget.lodGenerationOffset = newOptions.lodGenerationOffset;\n }\n }\n /**\n * @returns the opaque render target texture or null if not available.\n */\n getOpaqueTarget() {\n return this._opaqueRenderTarget;\n }\n _shouldRenderAsTransmission(material) {\n if (!material) {\n return false;\n }\n if (material instanceof PBRMaterial && material.subSurface.isRefractionEnabled) {\n return true;\n }\n return false;\n }\n _addMesh(mesh) {\n this._materialObservers[mesh.uniqueId] = mesh.onMaterialChangedObservable.add(this._onMeshMaterialChanged.bind(this));\n // we need to defer the processing because _addMesh may be called as part as an instance mesh creation, in which case some\n // internal properties are not setup yet, like _sourceMesh (needed when doing mesh.material below)\n Tools.SetImmediate(() => {\n if (this._shouldRenderAsTransmission(mesh.material)) {\n mesh.material.refractionTexture = this._opaqueRenderTarget;\n if (this._transparentMeshesCache.indexOf(mesh) === -1) {\n this._transparentMeshesCache.push(mesh);\n }\n }\n else {\n if (this._opaqueMeshesCache.indexOf(mesh) === -1) {\n this._opaqueMeshesCache.push(mesh);\n }\n }\n });\n }\n _removeMesh(mesh) {\n mesh.onMaterialChangedObservable.remove(this._materialObservers[mesh.uniqueId]);\n delete this._materialObservers[mesh.uniqueId];\n let idx = this._transparentMeshesCache.indexOf(mesh);\n if (idx !== -1) {\n this._transparentMeshesCache.splice(idx, 1);\n }\n idx = this._opaqueMeshesCache.indexOf(mesh);\n if (idx !== -1) {\n this._opaqueMeshesCache.splice(idx, 1);\n }\n }\n _parseScene() {\n this._scene.meshes.forEach(this._addMesh.bind(this));\n // Listen for when a mesh is added to the scene and add it to our cache lists.\n this._scene.onNewMeshAddedObservable.add(this._addMesh.bind(this));\n // Listen for when a mesh is removed from to the scene and remove it from our cache lists.\n this._scene.onMeshRemovedObservable.add(this._removeMesh.bind(this));\n }\n // When one of the meshes in the scene has its material changed, make sure that it's in the correct cache list.\n _onMeshMaterialChanged(mesh) {\n const transparentIdx = this._transparentMeshesCache.indexOf(mesh);\n const opaqueIdx = this._opaqueMeshesCache.indexOf(mesh);\n // If the material is transparent, make sure that it's added to the transparent list and removed from the opaque list\n const useTransmission = this._shouldRenderAsTransmission(mesh.material);\n if (useTransmission) {\n if (mesh.material instanceof PBRMaterial) {\n mesh.material.subSurface.refractionTexture = this._opaqueRenderTarget;\n }\n if (opaqueIdx !== -1) {\n this._opaqueMeshesCache.splice(opaqueIdx, 1);\n this._transparentMeshesCache.push(mesh);\n }\n else if (transparentIdx === -1) {\n this._transparentMeshesCache.push(mesh);\n }\n // If the material is opaque, make sure that it's added to the opaque list and removed from the transparent list\n }\n else {\n if (transparentIdx !== -1) {\n this._transparentMeshesCache.splice(transparentIdx, 1);\n this._opaqueMeshesCache.push(mesh);\n }\n else if (opaqueIdx === -1) {\n this._opaqueMeshesCache.push(mesh);\n }\n }\n }\n /**\n * @internal\n * Check if the opaque render target has not been disposed and can still be used.\n * @returns\n */\n _isRenderTargetValid() {\n return this._opaqueRenderTarget?.getInternalTexture() !== null;\n }\n /**\n * @internal\n * Setup the render targets according to the specified options.\n */\n _setupRenderTargets() {\n if (this._opaqueRenderTarget) {\n this._opaqueRenderTarget.dispose();\n }\n this._opaqueRenderTarget = new RenderTargetTexture(\"opaqueSceneTexture\", this._options.renderSize, this._scene, this._options.generateMipmaps, undefined, this._options.renderTargetTextureType);\n this._opaqueRenderTarget.ignoreCameraViewport = true;\n this._opaqueRenderTarget.renderList = this._opaqueMeshesCache;\n this._opaqueRenderTarget.clearColor = this._options.clearColor?.clone() ?? this._scene.clearColor.clone();\n this._opaqueRenderTarget.gammaSpace = false;\n this._opaqueRenderTarget.lodGenerationScale = this._options.lodGenerationScale;\n this._opaqueRenderTarget.lodGenerationOffset = this._options.lodGenerationOffset;\n this._opaqueRenderTarget.samples = this._options.samples;\n this._opaqueRenderTarget.renderSprites = true;\n this._opaqueRenderTarget.renderParticles = true;\n let sceneImageProcessingapplyByPostProcess;\n let saveSceneEnvIntensity;\n this._opaqueRenderTarget.onBeforeBindObservable.add((opaqueRenderTarget) => {\n saveSceneEnvIntensity = this._scene.environmentIntensity;\n this._scene.environmentIntensity = 1.0;\n sceneImageProcessingapplyByPostProcess = this._scene.imageProcessingConfiguration.applyByPostProcess;\n if (!this._options.clearColor) {\n this._scene.clearColor.toLinearSpaceToRef(opaqueRenderTarget.clearColor, this._scene.getEngine().useExactSrgbConversions);\n }\n else {\n opaqueRenderTarget.clearColor.copyFrom(this._options.clearColor);\n }\n // we do not use the applyByPostProcess setter to avoid flagging all the materials as \"image processing dirty\"!\n this._scene.imageProcessingConfiguration._applyByPostProcess = true;\n });\n this._opaqueRenderTarget.onAfterUnbindObservable.add(() => {\n this._scene.environmentIntensity = saveSceneEnvIntensity;\n this._scene.imageProcessingConfiguration._applyByPostProcess = sceneImageProcessingapplyByPostProcess;\n });\n this._transparentMeshesCache.forEach((mesh) => {\n if (this._shouldRenderAsTransmission(mesh.material)) {\n mesh.material.refractionTexture = this._opaqueRenderTarget;\n }\n });\n }\n /**\n * Dispose all the elements created by the Helper.\n */\n dispose() {\n this._scene._transmissionHelper = undefined;\n if (this._opaqueRenderTarget) {\n this._opaqueRenderTarget.dispose();\n this._opaqueRenderTarget = null;\n }\n this._transparentMeshesCache = [];\n this._opaqueMeshesCache = [];\n }\n}\nconst NAME = \"KHR_materials_transmission\";\n/**\n * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_transmission/README.md)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class KHR_materials_transmission {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n /**\n * Defines a number that determines the order the extensions are applied.\n */\n this.order = 175;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n if (this.enabled) {\n loader.parent.transparencyAsCoverage = true;\n }\n }\n /** @internal */\n dispose() {\n this._loader = null;\n }\n /**\n * @internal\n */\n loadMaterialPropertiesAsync(context, material, babylonMaterial) {\n return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial));\n promises.push(this._loadTransparentPropertiesAsync(extensionContext, material, babylonMaterial, extension));\n return Promise.all(promises).then(() => { });\n });\n }\n _loadTransparentPropertiesAsync(context, material, babylonMaterial, extension) {\n if (!(babylonMaterial instanceof PBRMaterial)) {\n throw new Error(`${context}: Material type not supported`);\n }\n const pbrMaterial = babylonMaterial;\n // Enables \"refraction\" texture which represents transmitted light.\n pbrMaterial.subSurface.isRefractionEnabled = true;\n // Since this extension models thin-surface transmission only, we must make IOR = 1.0\n pbrMaterial.subSurface.volumeIndexOfRefraction = 1.0;\n // Albedo colour will tint transmission.\n pbrMaterial.subSurface.useAlbedoToTintRefraction = true;\n if (extension.transmissionFactor !== undefined) {\n pbrMaterial.subSurface.refractionIntensity = extension.transmissionFactor;\n const scene = pbrMaterial.getScene();\n if (pbrMaterial.subSurface.refractionIntensity && !scene._transmissionHelper) {\n new TransmissionHelper({}, pbrMaterial.getScene());\n }\n else if (pbrMaterial.subSurface.refractionIntensity && !scene._transmissionHelper?._isRenderTargetValid()) {\n // If the render target is not valid, recreate it.\n scene._transmissionHelper?._setupRenderTargets();\n }\n }\n else {\n pbrMaterial.subSurface.refractionIntensity = 0.0;\n pbrMaterial.subSurface.isRefractionEnabled = false;\n return Promise.resolve();\n }\n pbrMaterial.subSurface.minimumThickness = 0.0;\n pbrMaterial.subSurface.maximumThickness = 0.0;\n if (extension.transmissionTexture) {\n extension.transmissionTexture.nonColorData = true;\n return this._loader.loadTextureInfoAsync(`${context}/transmissionTexture`, extension.transmissionTexture, undefined).then((texture) => {\n texture.name = `${babylonMaterial.name} (Transmission)`;\n pbrMaterial.subSurface.refractionIntensityTexture = texture;\n pbrMaterial.subSurface.useGltfStyleTextures = true;\n });\n }\n else {\n return Promise.resolve();\n }\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new KHR_materials_transmission(loader));\n//# sourceMappingURL=KHR_materials_transmission.js.map"],"names":["TransmissionHelper","_GetDefaultOptions","renderSize","samples","lodGenerationScale","lodGenerationOffset","renderTargetTextureType","Constants","TEXTURETYPE_HALF_FLOAT","generateMipmaps","constructor","options","scene","this","_opaqueRenderTarget","_opaqueMeshesCache","_transparentMeshesCache","_materialObservers","_options","_scene","_transmissionHelper","onErrorObservable","Observable","onDisposeObservable","addOnce","dispose","_parseScene","_setupRenderTargets","updateOptions","Object","keys","filter","key","length","newOptions","oldOptions","getOpaqueTarget","_shouldRenderAsTransmission","material","PBRMaterial","subSurface","isRefractionEnabled","_addMesh","mesh","uniqueId","onMaterialChangedObservable","add","_onMeshMaterialChanged","bind","Tools","SetImmediate","refractionTexture","indexOf","push","_removeMesh","remove","idx","splice","meshes","forEach","onNewMeshAddedObservable","onMeshRemovedObservable","transparentIdx","opaqueIdx","_isRenderTargetValid","getInternalTexture","sceneImageProcessingapplyByPostProcess","saveSceneEnvIntensity","RenderTargetTexture","undefined","ignoreCameraViewport","renderList","clearColor","clone","gammaSpace","renderSprites","renderParticles","onBeforeBindObservable","opaqueRenderTarget","environmentIntensity","imageProcessingConfiguration","applyByPostProcess","copyFrom","toLinearSpaceToRef","getEngine","useExactSrgbConversions","_applyByPostProcess","onAfterUnbindObservable","NAME","KHR_materials_transmission","loader","name","order","_loader","enabled","isExtensionUsed","parent","transparencyAsCoverage","loadMaterialPropertiesAsync","context","babylonMaterial","GLTFLoader","LoadExtensionAsync","extensionContext","extension","promises","Array","_loadTransparentPropertiesAsync","Promise","all","then","Error","pbrMaterial","volumeIndexOfRefraction","useAlbedoToTintRefraction","transmissionFactor","refractionIntensity","resolve","getScene","minimumThickness","maximumThickness","transmissionTexture","nonColorData","loadTextureInfoAsync","texture","refractionIntensityTexture","useGltfStyleTextures","unregisterGLTFExtension","registerGLTFExtension"],"mappings":"4RAUA,MAAMA,EAKF,yBAAOC,GACH,MAAO,CACHC,WAAY,KACZC,QAAS,EACTC,mBAAoB,EACpBC,qBAAsB,EACtBC,wBAAyBC,EAAUC,uBACnCC,iBAAiB,EAE7B,CAMI,WAAAC,CAAYC,EAASC,GACjBC,KAAKC,oBAAsB,KAC3BD,KAAKE,mBAAqB,GAC1BF,KAAKG,wBAA0B,GAC/BH,KAAKI,mBAAqB,CAAE,EAC5BJ,KAAKK,SAAW,IACTlB,EAAmBC,wBACnBU,GAEPE,KAAKM,OAASP,EACdC,KAAKM,OAAOC,oBAAsBP,KAClCA,KAAKQ,kBAAoB,IAAIC,EAC7BT,KAAKM,OAAOI,oBAAoBC,SAAQ,KACpCX,KAAKY,SAAS,IAElBZ,KAAKa,cACLb,KAAKc,qBACb,CAKI,aAAAC,CAAcjB,GAGV,IADkBkB,OAAOC,KAAKnB,GAASoB,QAAQC,GAAQnB,KAAKK,SAASc,KAASrB,EAAQqB,KACvEC,OACX,OAEJ,MAAMC,EAAa,IACZrB,KAAKK,YACLP,GAEDwB,EAAatB,KAAKK,SACxBL,KAAKK,SAAWgB,EAEZA,EAAWhC,aAAeiC,EAAWjC,YACrCgC,EAAW5B,0BAA4B6B,EAAW7B,yBAClD4B,EAAWzB,kBAAoB0B,EAAW1B,iBACzCI,KAAKC,qBAIND,KAAKC,oBAAoBX,QAAU+B,EAAW/B,QAC9CU,KAAKC,oBAAoBV,mBAAqB8B,EAAW9B,mBACzDS,KAAKC,oBAAoBT,oBAAsB6B,EAAW7B,qBAL1DQ,KAAKc,qBAOjB,CAII,eAAAS,GACI,OAAOvB,KAAKC,mBACpB,CACI,2BAAAuB,CAA4BC,GACxB,QAAKA,MAGDA,aAAoBC,GAAeD,EAASE,WAAWC,oBAInE,CACI,QAAAC,CAASC,GACL9B,KAAKI,mBAAm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