@babylonjs/viewer 7.25.2-alpha → 7.25.2
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 +192 -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 +350 -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 +199 -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 -17
- package/readme.md +21 -35
- 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 +21 -0
- package/templating/plugins/hdButtonPlugin.js.map +1 -0
- package/templating/plugins/printButton.d.ts +9 -0
- package/templating/plugins/printButton.js +40 -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 +675 -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/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-BH3hZg5O.esm.min.js +0 -2
- package/dist/chunks/EXT_lights_image_based-BH3hZg5O.esm.min.js.map +0 -1
- package/dist/chunks/EXT_lights_image_based-DzfllwXH.esm.js +0 -170
- package/dist/chunks/EXT_lights_image_based-DzfllwXH.esm.js.map +0 -1
- package/dist/chunks/EXT_mesh_gpu_instancing-C9OEhnvW.esm.js +0 -86
- package/dist/chunks/EXT_mesh_gpu_instancing-C9OEhnvW.esm.js.map +0 -1
- package/dist/chunks/EXT_mesh_gpu_instancing-CXIBSaqJ.esm.min.js +0 -2
- package/dist/chunks/EXT_mesh_gpu_instancing-CXIBSaqJ.esm.min.js.map +0 -1
- package/dist/chunks/EXT_meshopt_compression-FHhysyRP.esm.min.js +0 -2
- package/dist/chunks/EXT_meshopt_compression-FHhysyRP.esm.min.js.map +0 -1
- package/dist/chunks/EXT_meshopt_compression-MDnzeuix.esm.js +0 -134
- package/dist/chunks/EXT_meshopt_compression-MDnzeuix.esm.js.map +0 -1
- package/dist/chunks/EXT_texture_avif-DYg5PN0r.esm.js +0 -44
- package/dist/chunks/EXT_texture_avif-DYg5PN0r.esm.js.map +0 -1
- package/dist/chunks/EXT_texture_avif-aYOG80m1.esm.min.js +0 -2
- package/dist/chunks/EXT_texture_avif-aYOG80m1.esm.min.js.map +0 -1
- package/dist/chunks/EXT_texture_webp-C4SoS8oM.esm.min.js +0 -2
- package/dist/chunks/EXT_texture_webp-C4SoS8oM.esm.min.js.map +0 -1
- package/dist/chunks/EXT_texture_webp-CFXwdFPL.esm.js +0 -43
- package/dist/chunks/EXT_texture_webp-CFXwdFPL.esm.js.map +0 -1
- package/dist/chunks/ExtrasAsMetadata-0irOjN40.esm.min.js +0 -2
- package/dist/chunks/ExtrasAsMetadata-0irOjN40.esm.min.js.map +0 -1
- package/dist/chunks/ExtrasAsMetadata-CMMGMmGq.esm.js +0 -64
- package/dist/chunks/ExtrasAsMetadata-CMMGMmGq.esm.js.map +0 -1
- package/dist/chunks/KHR_animation_pointer-BP1GTrPy.esm.js +0 -343
- package/dist/chunks/KHR_animation_pointer-BP1GTrPy.esm.js.map +0 -1
- package/dist/chunks/KHR_animation_pointer-DYUHlqMb.esm.min.js +0 -2
- package/dist/chunks/KHR_animation_pointer-DYUHlqMb.esm.min.js.map +0 -1
- package/dist/chunks/KHR_draco_mesh_compression-1__XqV2v.esm.js +0 -610
- package/dist/chunks/KHR_draco_mesh_compression-1__XqV2v.esm.js.map +0 -1
- package/dist/chunks/KHR_draco_mesh_compression-DugkDX1-.esm.min.js +0 -2
- package/dist/chunks/KHR_draco_mesh_compression-DugkDX1-.esm.min.js.map +0 -1
- package/dist/chunks/KHR_interactivity-CG9wdbbE.esm.js +0 -4033
- package/dist/chunks/KHR_interactivity-CG9wdbbE.esm.js.map +0 -1
- package/dist/chunks/KHR_interactivity-DTEAfXZw.esm.min.js +0 -2
- package/dist/chunks/KHR_interactivity-DTEAfXZw.esm.min.js.map +0 -1
- package/dist/chunks/KHR_lights_punctual-BJoC3s-k.esm.js +0 -1253
- package/dist/chunks/KHR_lights_punctual-BJoC3s-k.esm.js.map +0 -1
- package/dist/chunks/KHR_lights_punctual-CJ8IXFIN.esm.min.js +0 -2
- package/dist/chunks/KHR_lights_punctual-CJ8IXFIN.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_anisotropy-D-JkJqtx.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_anisotropy-D-JkJqtx.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_anisotropy-vQUJOfyf.esm.js +0 -64
- package/dist/chunks/KHR_materials_anisotropy-vQUJOfyf.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_clearcoat-DGkjpld9.esm.js +0 -96
- package/dist/chunks/KHR_materials_clearcoat-DGkjpld9.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_clearcoat-D_sScrmJ.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_clearcoat-D_sScrmJ.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_diffuse_transmission-B-AVMVdy.esm.js +0 -97
- package/dist/chunks/KHR_materials_diffuse_transmission-B-AVMVdy.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_diffuse_transmission-D89RzboR.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_diffuse_transmission-D89RzboR.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_dispersion-B8b6MXDS.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_dispersion-B8b6MXDS.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_dispersion-Biijd7CZ.esm.js +0 -62
- package/dist/chunks/KHR_materials_dispersion-Biijd7CZ.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_emissive_strength-CphmP7Mx.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_emissive_strength-CphmP7Mx.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_emissive_strength-HYht21Ls.esm.js +0 -55
- package/dist/chunks/KHR_materials_emissive_strength-HYht21Ls.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_ior-CMHiVWXF.esm.js +0 -64
- package/dist/chunks/KHR_materials_ior-CMHiVWXF.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_ior-Dtd5Uruf.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_ior-Dtd5Uruf.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_iridescence-BPYqwadf.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_iridescence-BPYqwadf.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_iridescence-uiK5wAia.esm.js +0 -72
- package/dist/chunks/KHR_materials_iridescence-uiK5wAia.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-At-foveb.esm.js +0 -81
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-At-foveb.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-D-0vzv_p.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-D-0vzv_p.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_sheen-D9QlTIrL.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_sheen-D9QlTIrL.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_sheen-D_dNVJOm.esm.js +0 -85
- package/dist/chunks/KHR_materials_sheen-D_dNVJOm.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_specular-BoPxT-Mo.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_specular-BoPxT-Mo.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_specular-DQxjj2Cx.esm.js +0 -75
- package/dist/chunks/KHR_materials_specular-DQxjj2Cx.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_transmission-BFM7Cmhe.esm.js +0 -307
- package/dist/chunks/KHR_materials_transmission-BFM7Cmhe.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_transmission-Cmv46WbD.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_transmission-Cmv46WbD.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_unlit-5NSHSTuh.esm.js +0 -74
- package/dist/chunks/KHR_materials_unlit-5NSHSTuh.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_unlit-D0eVH4Om.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_unlit-D0eVH4Om.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_variants-DV9kQ9N0.esm.js +0 -238
- package/dist/chunks/KHR_materials_variants-DV9kQ9N0.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_variants-q_OSyG78.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_variants-q_OSyG78.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_volume-B-2guGwk.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_volume-B-2guGwk.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_volume-ByNJMyHb.esm.js +0 -87
- package/dist/chunks/KHR_materials_volume-ByNJMyHb.esm.js.map +0 -1
- package/dist/chunks/KHR_mesh_quantization-B-dDY2nG.esm.min.js +0 -2
- package/dist/chunks/KHR_mesh_quantization-B-dDY2nG.esm.min.js.map +0 -1
- package/dist/chunks/KHR_mesh_quantization-CtRIMI9n.esm.js +0 -26
- package/dist/chunks/KHR_mesh_quantization-CtRIMI9n.esm.js.map +0 -1
- package/dist/chunks/KHR_texture_basisu-Bpv_M6W8.esm.js +0 -43
- package/dist/chunks/KHR_texture_basisu-Bpv_M6W8.esm.js.map +0 -1
- package/dist/chunks/KHR_texture_basisu-CDZ_8ojt.esm.min.js +0 -2
- package/dist/chunks/KHR_texture_basisu-CDZ_8ojt.esm.min.js.map +0 -1
- package/dist/chunks/KHR_texture_transform-DR04vBMi.esm.js +0 -63
- package/dist/chunks/KHR_texture_transform-DR04vBMi.esm.js.map +0 -1
- package/dist/chunks/KHR_texture_transform-Dxlw1ALx.esm.min.js +0 -2
- package/dist/chunks/KHR_texture_transform-Dxlw1ALx.esm.min.js.map +0 -1
- package/dist/chunks/KHR_xmp_json_ld-BE7tnUAA.esm.js +0 -51
- package/dist/chunks/KHR_xmp_json_ld-BE7tnUAA.esm.js.map +0 -1
- package/dist/chunks/KHR_xmp_json_ld-Cba_e7FN.esm.min.js +0 -2
- package/dist/chunks/KHR_xmp_json_ld-Cba_e7FN.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_audio_emitter-C7N149TS.esm.min.js +0 -2
- package/dist/chunks/MSFT_audio_emitter-C7N149TS.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_audio_emitter-Dli0UATE.esm.js +0 -2236
- package/dist/chunks/MSFT_audio_emitter-Dli0UATE.esm.js.map +0 -1
- package/dist/chunks/MSFT_lod-B_XcOQr8.esm.min.js +0 -2
- package/dist/chunks/MSFT_lod-B_XcOQr8.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_lod-Ce-KRZp9.esm.js +0 -337
- package/dist/chunks/MSFT_lod-Ce-KRZp9.esm.js.map +0 -1
- package/dist/chunks/MSFT_minecraftMesh-C1iLB8-L.esm.min.js +0 -2
- package/dist/chunks/MSFT_minecraftMesh-C1iLB8-L.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_minecraftMesh-D7vFOPNh.esm.js +0 -46
- package/dist/chunks/MSFT_minecraftMesh-D7vFOPNh.esm.js.map +0 -1
- package/dist/chunks/MSFT_sRGBFactors-DCJApvhI.esm.js +0 -47
- package/dist/chunks/MSFT_sRGBFactors-DCJApvhI.esm.js.map +0 -1
- package/dist/chunks/MSFT_sRGBFactors-IRTTNK8h.esm.min.js +0 -2
- package/dist/chunks/MSFT_sRGBFactors-IRTTNK8h.esm.min.js.map +0 -1
- package/dist/chunks/assetContainer-9BV4w6Ec.esm.js +0 -1598
- package/dist/chunks/assetContainer-9BV4w6Ec.esm.js.map +0 -1
- package/dist/chunks/assetContainer-Cu6LKJHz.esm.min.js +0 -2
- package/dist/chunks/assetContainer-Cu6LKJHz.esm.min.js.map +0 -1
- package/dist/chunks/audioEngine-Bh-HZCai.esm.min.js +0 -2
- package/dist/chunks/audioEngine-Bh-HZCai.esm.min.js.map +0 -1
- package/dist/chunks/audioEngine-pydGAEd8.esm.js +0 -305
- package/dist/chunks/audioEngine-pydGAEd8.esm.js.map +0 -1
- package/dist/chunks/basisTextureLoader-BD8_wqQL.esm.min.js +0 -2
- package/dist/chunks/basisTextureLoader-BD8_wqQL.esm.min.js.map +0 -1
- package/dist/chunks/basisTextureLoader-JmRg1Sfn.esm.js +0 -600
- package/dist/chunks/basisTextureLoader-JmRg1Sfn.esm.js.map +0 -1
- package/dist/chunks/ddsTextureLoader-Bpjp8qSf.esm.js +0 -87
- package/dist/chunks/ddsTextureLoader-Bpjp8qSf.esm.js.map +0 -1
- package/dist/chunks/ddsTextureLoader-CEyJTB3O.esm.min.js +0 -2
- package/dist/chunks/ddsTextureLoader-CEyJTB3O.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-B11bdnrB.esm.min.js +0 -2
- package/dist/chunks/default.fragment-B11bdnrB.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-Bawtijue.esm.min.js +0 -2
- package/dist/chunks/default.fragment-Bawtijue.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-D3k4gvNV.esm.js +0 -456
- package/dist/chunks/default.fragment-D3k4gvNV.esm.js.map +0 -1
- package/dist/chunks/default.fragment-DL3qA9UG.esm.js +0 -515
- package/dist/chunks/default.fragment-DL3qA9UG.esm.js.map +0 -1
- package/dist/chunks/default.vertex-B7OOfc9A.esm.js +0 -178
- package/dist/chunks/default.vertex-B7OOfc9A.esm.js.map +0 -1
- package/dist/chunks/default.vertex-BKC2A0e0.esm.js +0 -199
- package/dist/chunks/default.vertex-BKC2A0e0.esm.js.map +0 -1
- package/dist/chunks/default.vertex-BRncvhAx.esm.min.js +0 -2
- package/dist/chunks/default.vertex-BRncvhAx.esm.min.js.map +0 -1
- package/dist/chunks/default.vertex-sJaJV_6d.esm.min.js +0 -2
- package/dist/chunks/default.vertex-sJaJV_6d.esm.min.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-C1JdSocs.esm.min.js +0 -2
- package/dist/chunks/defaultUboDeclaration-C1JdSocs.esm.min.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-Cszg1EQW.esm.js +0 -13
- package/dist/chunks/defaultUboDeclaration-Cszg1EQW.esm.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-DB7zHENU.esm.js +0 -15
- package/dist/chunks/defaultUboDeclaration-DB7zHENU.esm.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-XHlan1gc.esm.min.js +0 -2
- package/dist/chunks/defaultUboDeclaration-XHlan1gc.esm.min.js.map +0 -1
- package/dist/chunks/engine-DZrewcWP.esm.js +0 -1613
- package/dist/chunks/engine-DZrewcWP.esm.js.map +0 -1
- package/dist/chunks/engine-sFOTJhn4.esm.min.js +0 -2
- package/dist/chunks/engine-sFOTJhn4.esm.min.js.map +0 -1
- package/dist/chunks/envTextureLoader-DLAJXIl8.esm.min.js +0 -2
- package/dist/chunks/envTextureLoader-DLAJXIl8.esm.min.js.map +0 -1
- package/dist/chunks/envTextureLoader-DpLIoFjS.esm.js +0 -63
- package/dist/chunks/envTextureLoader-DpLIoFjS.esm.js.map +0 -1
- package/dist/chunks/environmentTextureTools-CiyJLBbf.esm.min.js +0 -2
- package/dist/chunks/environmentTextureTools-CiyJLBbf.esm.min.js.map +0 -1
- package/dist/chunks/environmentTextureTools-bPqq81in.esm.js +0 -381
- package/dist/chunks/environmentTextureTools-bPqq81in.esm.js.map +0 -1
- package/dist/chunks/exrTextureLoader-DJ7PbPlF.esm.min.js +0 -2
- package/dist/chunks/exrTextureLoader-DJ7PbPlF.esm.min.js.map +0 -1
- package/dist/chunks/exrTextureLoader-DYsBnFky.esm.js +0 -1682
- package/dist/chunks/exrTextureLoader-DYsBnFky.esm.js.map +0 -1
- package/dist/chunks/fogFragment-BLvD2fqs.esm.min.js +0 -2
- package/dist/chunks/fogFragment-BLvD2fqs.esm.min.js.map +0 -1
- package/dist/chunks/fogFragment-b0NlRwYe.esm.js +0 -102
- package/dist/chunks/fogFragment-b0NlRwYe.esm.js.map +0 -1
- package/dist/chunks/glTFLoader-BikrhFtn.esm.js +0 -7552
- package/dist/chunks/glTFLoader-BikrhFtn.esm.js.map +0 -1
- package/dist/chunks/glTFLoader-mZPFBYSM.esm.min.js +0 -2
- package/dist/chunks/glTFLoader-mZPFBYSM.esm.min.js.map +0 -1
- package/dist/chunks/glTFLoaderAnimation-BdwTR5Nl.esm.js +0 -77
- package/dist/chunks/glTFLoaderAnimation-BdwTR5Nl.esm.js.map +0 -1
- package/dist/chunks/glTFLoaderAnimation-CiKBDKnk.esm.min.js +0 -2
- package/dist/chunks/glTFLoaderAnimation-CiKBDKnk.esm.min.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-C12V8Ng1.esm.js +0 -35
- package/dist/chunks/harmonicsFunctions-C12V8Ng1.esm.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-CRoab7mv.esm.min.js +0 -2
- package/dist/chunks/harmonicsFunctions-CRoab7mv.esm.min.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-CZi4YSE7.esm.js +0 -34
- package/dist/chunks/harmonicsFunctions-CZi4YSE7.esm.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-GFzLo9xW.esm.min.js +0 -2
- package/dist/chunks/harmonicsFunctions-GFzLo9xW.esm.min.js.map +0 -1
- package/dist/chunks/hdrTextureLoader-CsWJNnG5.esm.js +0 -252
- package/dist/chunks/hdrTextureLoader-CsWJNnG5.esm.js.map +0 -1
- package/dist/chunks/hdrTextureLoader-Cwi3SM4o.esm.min.js +0 -2
- package/dist/chunks/hdrTextureLoader-Cwi3SM4o.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-21b9-yGo.esm.min.js +0 -2
- package/dist/chunks/helperFunctions-21b9-yGo.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-COVDWwPu.esm.js +0 -80
- package/dist/chunks/helperFunctions-COVDWwPu.esm.js.map +0 -1
- package/dist/chunks/helperFunctions-CQzJ5T38.esm.min.js +0 -2
- package/dist/chunks/helperFunctions-CQzJ5T38.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-CUKI67ax.esm.js +0 -108
- package/dist/chunks/helperFunctions-CUKI67ax.esm.js.map +0 -1
- package/dist/chunks/index-5EaMDaGg.esm.js +0 -79820
- package/dist/chunks/index-5EaMDaGg.esm.js.map +0 -1
- package/dist/chunks/index-RwQCgcf4.esm.min.js +0 -57
- package/dist/chunks/index-RwQCgcf4.esm.min.js.map +0 -1
- package/dist/chunks/ktxTextureLoader-34pzZN2D.esm.js +0 -814
- package/dist/chunks/ktxTextureLoader-34pzZN2D.esm.js.map +0 -1
- package/dist/chunks/ktxTextureLoader-Dj2b7tTw.esm.min.js +0 -2
- package/dist/chunks/ktxTextureLoader-Dj2b7tTw.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-BTOfKIR5.esm.min.js +0 -2
- package/dist/chunks/logDepthDeclaration-BTOfKIR5.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-Boz5U8vN.esm.min.js +0 -2
- package/dist/chunks/logDepthDeclaration-Boz5U8vN.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-Dc0_n0rX.esm.js +0 -42
- package/dist/chunks/logDepthDeclaration-Dc0_n0rX.esm.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-cImBekwl.esm.js +0 -35
- package/dist/chunks/logDepthDeclaration-cImBekwl.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-ABvK0V0R.esm.js +0 -77
- package/dist/chunks/logDepthVertex-ABvK0V0R.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-BA4bq6Km.esm.min.js +0 -2
- package/dist/chunks/logDepthVertex-BA4bq6Km.esm.min.js.map +0 -1
- package/dist/chunks/logDepthVertex-C7FgfYJH.esm.js +0 -605
- package/dist/chunks/logDepthVertex-C7FgfYJH.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-Da8gAKX-.esm.min.js +0 -2
- package/dist/chunks/logDepthVertex-Da8gAKX-.esm.min.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-B-9VKUsa.esm.js +0 -11
- package/dist/chunks/mainUVVaryingDeclaration-B-9VKUsa.esm.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-CNcp6TRG.esm.min.js +0 -2
- package/dist/chunks/mainUVVaryingDeclaration-CNcp6TRG.esm.min.js.map +0 -1
- package/dist/chunks/objFileLoader-3iAEdRPX.esm.js +0 -1280
- package/dist/chunks/objFileLoader-3iAEdRPX.esm.js.map +0 -1
- package/dist/chunks/objFileLoader-Cr90DdHJ.esm.min.js +0 -2
- package/dist/chunks/objFileLoader-Cr90DdHJ.esm.min.js.map +0 -1
- package/dist/chunks/oitFragment-BxefW3dP.esm.min.js +0 -2
- package/dist/chunks/oitFragment-BxefW3dP.esm.min.js.map +0 -1
- package/dist/chunks/oitFragment-DNM4M_TM.esm.js +0 -1166
- package/dist/chunks/oitFragment-DNM4M_TM.esm.js.map +0 -1
- package/dist/chunks/oitFragment-QOO-2oNY.esm.min.js +0 -2
- package/dist/chunks/oitFragment-QOO-2oNY.esm.min.js.map +0 -1
- package/dist/chunks/oitFragment-c8QTGncf.esm.js +0 -1210
- package/dist/chunks/oitFragment-c8QTGncf.esm.js.map +0 -1
- package/dist/chunks/pass.fragment-54wWMjH0.esm.js +0 -15
- package/dist/chunks/pass.fragment-54wWMjH0.esm.js.map +0 -1
- package/dist/chunks/pass.fragment-C2zJ2wfh.esm.min.js +0 -2
- package/dist/chunks/pass.fragment-C2zJ2wfh.esm.min.js.map +0 -1
- package/dist/chunks/pbr.fragment-B2LdxiLY.esm.js +0 -3163
- package/dist/chunks/pbr.fragment-B2LdxiLY.esm.js.map +0 -1
- package/dist/chunks/pbr.fragment-BdB3ttR4.esm.min.js +0 -2
- package/dist/chunks/pbr.fragment-BdB3ttR4.esm.min.js.map +0 -1
- package/dist/chunks/pbr.fragment-BweiXotT.esm.js +0 -3219
- package/dist/chunks/pbr.fragment-BweiXotT.esm.js.map +0 -1
- package/dist/chunks/pbr.fragment-DO84e7Qh.esm.min.js +0 -2
- package/dist/chunks/pbr.fragment-DO84e7Qh.esm.min.js.map +0 -1
- package/dist/chunks/pbr.vertex-BXRa8Hxv.esm.js +0 -335
- package/dist/chunks/pbr.vertex-BXRa8Hxv.esm.js.map +0 -1
- package/dist/chunks/pbr.vertex-CF2Ccw8q.esm.min.js +0 -2
- package/dist/chunks/pbr.vertex-CF2Ccw8q.esm.min.js.map +0 -1
- package/dist/chunks/pbr.vertex-Dp1NB2h0.esm.min.js +0 -2
- package/dist/chunks/pbr.vertex-Dp1NB2h0.esm.min.js.map +0 -1
- package/dist/chunks/pbr.vertex-ou_Fcm2v.esm.js +0 -208
- package/dist/chunks/pbr.vertex-ou_Fcm2v.esm.js.map +0 -1
- package/dist/chunks/postprocess.vertex-C12ptRTz.esm.js +0 -20
- package/dist/chunks/postprocess.vertex-C12ptRTz.esm.js.map +0 -1
- package/dist/chunks/postprocess.vertex-D9PCzQ_C.esm.min.js +0 -2
- package/dist/chunks/postprocess.vertex-D9PCzQ_C.esm.min.js.map +0 -1
- package/dist/chunks/rawTexture-BTLHgkBf.esm.js +0 -562
- package/dist/chunks/rawTexture-BTLHgkBf.esm.js.map +0 -1
- package/dist/chunks/rawTexture-Cb8Vzv3y.esm.min.js +0 -2
- package/dist/chunks/rawTexture-Cb8Vzv3y.esm.min.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-4VUd_LZa.esm.js +0 -17
- package/dist/chunks/rgbdDecode.fragment-4VUd_LZa.esm.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-B97s0YHK.esm.min.js +0 -2
- package/dist/chunks/rgbdDecode.fragment-B97s0YHK.esm.min.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-CgqRZDLm.esm.js +0 -17
- package/dist/chunks/rgbdDecode.fragment-CgqRZDLm.esm.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-DSa_xyAA.esm.min.js +0 -2
- package/dist/chunks/rgbdDecode.fragment-DSa_xyAA.esm.min.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-C3-vIdKY.esm.js +0 -17
- package/dist/chunks/rgbdEncode.fragment-C3-vIdKY.esm.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-CZ7DFmJC.esm.min.js +0 -2
- package/dist/chunks/rgbdEncode.fragment-CZ7DFmJC.esm.min.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-CnIc0eyH.esm.min.js +0 -2
- package/dist/chunks/rgbdEncode.fragment-CnIc0eyH.esm.min.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-DA8KkHQU.esm.js +0 -17
- package/dist/chunks/rgbdEncode.fragment-DA8KkHQU.esm.js.map +0 -1
- package/dist/chunks/splatFileLoader-BiXQ9pqp.esm.min.js +0 -2
- package/dist/chunks/splatFileLoader-BiXQ9pqp.esm.min.js.map +0 -1
- package/dist/chunks/splatFileLoader-D17axd4l.esm.js +0 -3179
- package/dist/chunks/splatFileLoader-D17axd4l.esm.js.map +0 -1
- package/dist/chunks/standardMaterial-CYafMW8c.esm.js +0 -1809
- package/dist/chunks/standardMaterial-CYafMW8c.esm.js.map +0 -1
- package/dist/chunks/standardMaterial-xLALVwqX.esm.min.js +0 -2
- package/dist/chunks/standardMaterial-xLALVwqX.esm.min.js.map +0 -1
- package/dist/chunks/stlFileLoader-BIeNnvqG.esm.js +0 -237
- package/dist/chunks/stlFileLoader-BIeNnvqG.esm.js.map +0 -1
- package/dist/chunks/stlFileLoader-CqtYJIkJ.esm.min.js +0 -2
- package/dist/chunks/stlFileLoader-CqtYJIkJ.esm.min.js.map +0 -1
- package/dist/chunks/tgaTextureLoader-CDefV-xQ.esm.min.js +0 -2
- package/dist/chunks/tgaTextureLoader-CDefV-xQ.esm.min.js.map +0 -1
- package/dist/chunks/tgaTextureLoader-CerR7twj.esm.js +0 -349
- package/dist/chunks/tgaTextureLoader-CerR7twj.esm.js.map +0 -1
- package/dist/chunks/thinInstanceMesh-InKoMs06.esm.js +0 -314
- package/dist/chunks/thinInstanceMesh-InKoMs06.esm.js.map +0 -1
- package/dist/chunks/thinInstanceMesh-XV_b72vY.esm.min.js +0 -2
- package/dist/chunks/thinInstanceMesh-XV_b72vY.esm.min.js.map +0 -1
- package/dist/chunks/vertexColorMixing-Dm0jnWj1.esm.js +0 -528
- package/dist/chunks/vertexColorMixing-Dm0jnWj1.esm.js.map +0 -1
- package/dist/chunks/vertexColorMixing-N0v0Ism3.esm.min.js +0 -2
- package/dist/chunks/vertexColorMixing-N0v0Ism3.esm.min.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/lib/index.d.ts +0 -275
- package/lib/index.js +0 -942
- package/lib/index.js.map +0 -1
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { S as ShaderStore } from './index-5EaMDaGg.esm.js';
|
|
2
|
-
import './harmonicsFunctions-CZi4YSE7.esm.js';
|
|
3
|
-
import './logDepthVertex-C7FgfYJH.esm.js';
|
|
4
|
-
import './logDepthDeclaration-Dc0_n0rX.esm.js';
|
|
5
|
-
import './helperFunctions-COVDWwPu.esm.js';
|
|
6
|
-
|
|
7
|
-
// Do not edit.
|
|
8
|
-
const name = "pbrVertexShader";
|
|
9
|
-
const shader = `#include<pbrUboDeclaration>
|
|
10
|
-
#define CUSTOM_VERTEX_BEGIN
|
|
11
|
-
attribute position: vec3f;
|
|
12
|
-
#ifdef NORMAL
|
|
13
|
-
attribute normal: vec3f;
|
|
14
|
-
#endif
|
|
15
|
-
#ifdef TANGENT
|
|
16
|
-
attribute tangent: vec4f;
|
|
17
|
-
#endif
|
|
18
|
-
#ifdef UV1
|
|
19
|
-
attribute uv: vec2f;
|
|
20
|
-
#endif
|
|
21
|
-
#include<uvAttributeDeclaration>[2..7]
|
|
22
|
-
#include<mainUVVaryingDeclaration>[1..7]
|
|
23
|
-
#ifdef VERTEXCOLOR
|
|
24
|
-
attribute color: vec4f;
|
|
25
|
-
#endif
|
|
26
|
-
#include<helperFunctions>
|
|
27
|
-
#include<bonesDeclaration>
|
|
28
|
-
#include<bakedVertexAnimationDeclaration>
|
|
29
|
-
#include<instancesDeclaration>
|
|
30
|
-
#include<prePassVertexDeclaration>
|
|
31
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,ALBEDO,_VARYINGNAME_,Albedo)
|
|
32
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail)
|
|
33
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient)
|
|
34
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity)
|
|
35
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive)
|
|
36
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap)
|
|
37
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,REFLECTIVITY,_VARYINGNAME_,Reflectivity)
|
|
38
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,MICROSURFACEMAP,_VARYINGNAME_,MicroSurfaceSampler)
|
|
39
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,METALLIC_REFLECTANCE,_VARYINGNAME_,MetallicReflectance)
|
|
40
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,REFLECTANCE,_VARYINGNAME_,Reflectance)
|
|
41
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump)
|
|
42
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal)
|
|
43
|
-
#ifdef CLEARCOAT
|
|
44
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_TEXTURE,_VARYINGNAME_,ClearCoat)
|
|
45
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_TEXTURE_ROUGHNESS,_VARYINGNAME_,ClearCoatRoughness)
|
|
46
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_BUMP,_VARYINGNAME_,ClearCoatBump)
|
|
47
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_TINT_TEXTURE,_VARYINGNAME_,ClearCoatTint)
|
|
48
|
-
#endif
|
|
49
|
-
#ifdef IRIDESCENCE
|
|
50
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,IRIDESCENCE_TEXTURE,_VARYINGNAME_,Iridescence)
|
|
51
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,IRIDESCENCE_THICKNESS_TEXTURE,_VARYINGNAME_,IridescenceThickness)
|
|
52
|
-
#endif
|
|
53
|
-
#ifdef SHEEN
|
|
54
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,SHEEN_TEXTURE,_VARYINGNAME_,Sheen)
|
|
55
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,SHEEN_TEXTURE_ROUGHNESS,_VARYINGNAME_,SheenRoughness)
|
|
56
|
-
#endif
|
|
57
|
-
#ifdef ANISOTROPIC
|
|
58
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,ANISOTROPIC_TEXTURE,_VARYINGNAME_,Anisotropy)
|
|
59
|
-
#endif
|
|
60
|
-
#ifdef SUBSURFACE
|
|
61
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,SS_THICKNESSANDMASK_TEXTURE,_VARYINGNAME_,Thickness)
|
|
62
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,SS_REFRACTIONINTENSITY_TEXTURE,_VARYINGNAME_,RefractionIntensity)
|
|
63
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,SS_TRANSLUCENCYINTENSITY_TEXTURE,_VARYINGNAME_,TranslucencyIntensity)
|
|
64
|
-
#include<samplerVertexDeclaration>(_DEFINENAME_,SS_TRANSLUCENCYCOLOR_TEXTURE,_VARYINGNAME_,TranslucencyColor)
|
|
65
|
-
#endif
|
|
66
|
-
varying vPositionW: vec3f;
|
|
67
|
-
#if DEBUGMODE>0
|
|
68
|
-
varying vClipSpacePosition: vec4f;
|
|
69
|
-
#endif
|
|
70
|
-
#ifdef NORMAL
|
|
71
|
-
varying vNormalW: vec3f;
|
|
72
|
-
#if defined(USESPHERICALFROMREFLECTIONMAP) && defined(USESPHERICALINVERTEX)
|
|
73
|
-
varying vEnvironmentIrradiance: vec3f;
|
|
74
|
-
#include<harmonicsFunctions>
|
|
75
|
-
#endif
|
|
76
|
-
#endif
|
|
77
|
-
#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
78
|
-
varying vColor: vec4f;
|
|
79
|
-
#endif
|
|
80
|
-
#include<bumpVertexDeclaration>
|
|
81
|
-
#include<clipPlaneVertexDeclaration>
|
|
82
|
-
#include<fogVertexDeclaration>
|
|
83
|
-
#include<lightVxUboDeclaration>[0..maxSimultaneousLights]
|
|
84
|
-
#include<morphTargetsVertexGlobalDeclaration>
|
|
85
|
-
#include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]
|
|
86
|
-
#ifdef REFLECTIONMAP_SKYBOX
|
|
87
|
-
varying vPositionUVW: vec3f;
|
|
88
|
-
#endif
|
|
89
|
-
#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
|
|
90
|
-
varying vDirectionW: vec3f;
|
|
91
|
-
#endif
|
|
92
|
-
#include<logDepthDeclaration>
|
|
93
|
-
#define CUSTOM_VERTEX_DEFINITIONS
|
|
94
|
-
@vertex
|
|
95
|
-
fn main(input : VertexInputs)->FragmentInputs {
|
|
96
|
-
#define CUSTOM_VERTEX_MAIN_BEGIN
|
|
97
|
-
var positionUpdated: vec3f=vertexInputs.position;
|
|
98
|
-
#ifdef NORMAL
|
|
99
|
-
var normalUpdated: vec3f=vertexInputs.normal;
|
|
100
|
-
#endif
|
|
101
|
-
#ifdef TANGENT
|
|
102
|
-
var tangentUpdated: vec4f=vertexInputs.tangent;
|
|
103
|
-
#endif
|
|
104
|
-
#ifdef UV1
|
|
105
|
-
var uvUpdated: vec2f=vertexInputs.uv;
|
|
106
|
-
#endif
|
|
107
|
-
#include<morphTargetsVertexGlobal>
|
|
108
|
-
#include<morphTargetsVertex>[0..maxSimultaneousMorphTargets]
|
|
109
|
-
#ifdef REFLECTIONMAP_SKYBOX
|
|
110
|
-
vertexOutputs.vPositionUVW=positionUpdated;
|
|
111
|
-
#endif
|
|
112
|
-
#define CUSTOM_VERTEX_UPDATE_POSITION
|
|
113
|
-
#define CUSTOM_VERTEX_UPDATE_NORMAL
|
|
114
|
-
#include<instancesVertex>
|
|
115
|
-
#if defined(PREPASS) && (defined(PREPASS_VELOCITY) && !defined(BONES_VELOCITY_ENABLED) || defined(PREPASS_VELOCITY_LINEAR))
|
|
116
|
-
vertexOutputs.vCurrentPosition=scene.viewProjection*finalWorld* vec4f(positionUpdated,1.0);vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWorld* vec4f(positionUpdated,1.0);
|
|
117
|
-
#endif
|
|
118
|
-
#include<bonesVertex>
|
|
119
|
-
#include<bakedVertexAnimation>
|
|
120
|
-
var worldPos: vec4f=finalWorld* vec4f(positionUpdated,1.0);vertexOutputs.vPositionW= worldPos.xyz;
|
|
121
|
-
#include<prePassVertex>
|
|
122
|
-
#ifdef NORMAL
|
|
123
|
-
var normalWorld: mat3x3f= mat3x3f(finalWorld[0].xyz,finalWorld[1].xyz,finalWorld[2].xyz);
|
|
124
|
-
#if defined(INSTANCES) && defined(THIN_INSTANCES)
|
|
125
|
-
vertexOutputs.vNormalW=normalUpdated/ vec3f(dot(normalWorld[0],normalWorld[0]),dot(normalWorld[1],normalWorld[1]),dot(normalWorld[2],normalWorld[2]));vertexOutputs.vNormalW=normalize(normalWorld*vertexOutputs.vNormalW);
|
|
126
|
-
#else
|
|
127
|
-
#ifdef NONUNIFORMSCALING
|
|
128
|
-
normalWorld=transposeMat3(inverseMat3(normalWorld));
|
|
129
|
-
#endif
|
|
130
|
-
vertexOutputs.vNormalW=normalize(normalWorld*normalUpdated);
|
|
131
|
-
#endif
|
|
132
|
-
#if defined(USESPHERICALFROMREFLECTIONMAP) && defined(USESPHERICALINVERTEX)
|
|
133
|
-
var reflectionVector: vec3f= (uniforms.reflectionMatrix* vec4f(vertexOutputs.vNormalW,0)).xyz;
|
|
134
|
-
#ifdef REFLECTIONMAP_OPPOSITEZ
|
|
135
|
-
reflectionVector.z*=-1.0;
|
|
136
|
-
#endif
|
|
137
|
-
vertexOutputs.vEnvironmentIrradiance=computeEnvironmentIrradiance(reflectionVector);
|
|
138
|
-
#endif
|
|
139
|
-
#endif
|
|
140
|
-
#define CUSTOM_VERTEX_UPDATE_WORLDPOS
|
|
141
|
-
#ifdef MULTIVIEW
|
|
142
|
-
if (gl_ViewID_OVR==0u) {vertexOutputs.position=scene.viewProjection*worldPos;} else {vertexOutputs.position=scene.viewProjectionR*worldPos;}
|
|
143
|
-
#else
|
|
144
|
-
vertexOutputs.position=scene.viewProjection*worldPos;
|
|
145
|
-
#endif
|
|
146
|
-
#if DEBUGMODE>0
|
|
147
|
-
vertexOutputs.vClipSpacePosition=vertexOutputs.position;
|
|
148
|
-
#endif
|
|
149
|
-
#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
|
|
150
|
-
vertexOutputs.vDirectionW=normalize((finalWorld*vec4f(positionUpdated,0.0)).xyz);
|
|
151
|
-
#endif
|
|
152
|
-
#ifndef UV1
|
|
153
|
-
var uvUpdated: vec2f= vec2f(0.,0.);
|
|
154
|
-
#endif
|
|
155
|
-
#ifdef MAINUV1
|
|
156
|
-
vertexOutputs.vMainUV1=uvUpdated;
|
|
157
|
-
#endif
|
|
158
|
-
#include<uvVariableDeclaration>[2..7]
|
|
159
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,ALBEDO,_VARYINGNAME_,Albedo,_MATRIXNAME_,albedo,_INFONAME_,AlbedoInfos.x)
|
|
160
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail,_MATRIXNAME_,detail,_INFONAME_,DetailInfos.x)
|
|
161
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_MATRIXNAME_,ambient,_INFONAME_,AmbientInfos.x)
|
|
162
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_MATRIXNAME_,opacity,_INFONAME_,OpacityInfos.x)
|
|
163
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_MATRIXNAME_,emissive,_INFONAME_,EmissiveInfos.x)
|
|
164
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_MATRIXNAME_,lightmap,_INFONAME_,LightmapInfos.x)
|
|
165
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,REFLECTIVITY,_VARYINGNAME_,Reflectivity,_MATRIXNAME_,reflectivity,_INFONAME_,ReflectivityInfos.x)
|
|
166
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,MICROSURFACEMAP,_VARYINGNAME_,MicroSurfaceSampler,_MATRIXNAME_,microSurfaceSampler,_INFONAME_,MicroSurfaceSamplerInfos.x)
|
|
167
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,METALLIC_REFLECTANCE,_VARYINGNAME_,MetallicReflectance,_MATRIXNAME_,metallicReflectance,_INFONAME_,MetallicReflectanceInfos.x)
|
|
168
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,REFLECTANCE,_VARYINGNAME_,Reflectance,_MATRIXNAME_,reflectance,_INFONAME_,ReflectanceInfos.x)
|
|
169
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_MATRIXNAME_,bump,_INFONAME_,BumpInfos.x)
|
|
170
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_MATRIXNAME_,decal,_INFONAME_,DecalInfos.x)
|
|
171
|
-
#ifdef CLEARCOAT
|
|
172
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_TEXTURE,_VARYINGNAME_,ClearCoat,_MATRIXNAME_,clearCoat,_INFONAME_,ClearCoatInfos.x)
|
|
173
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_TEXTURE_ROUGHNESS,_VARYINGNAME_,ClearCoatRoughness,_MATRIXNAME_,clearCoatRoughness,_INFONAME_,ClearCoatInfos.z)
|
|
174
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_BUMP,_VARYINGNAME_,ClearCoatBump,_MATRIXNAME_,clearCoatBump,_INFONAME_,ClearCoatBumpInfos.x)
|
|
175
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_TINT_TEXTURE,_VARYINGNAME_,ClearCoatTint,_MATRIXNAME_,clearCoatTint,_INFONAME_,ClearCoatTintInfos.x)
|
|
176
|
-
#endif
|
|
177
|
-
#ifdef IRIDESCENCE
|
|
178
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,IRIDESCENCE_TEXTURE,_VARYINGNAME_,Iridescence,_MATRIXNAME_,iridescence,_INFONAME_,IridescenceInfos.x)
|
|
179
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,IRIDESCENCE_THICKNESS_TEXTURE,_VARYINGNAME_,IridescenceThickness,_MATRIXNAME_,iridescenceThickness,_INFONAME_,IridescenceInfos.z)
|
|
180
|
-
#endif
|
|
181
|
-
#ifdef SHEEN
|
|
182
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,SHEEN_TEXTURE,_VARYINGNAME_,Sheen,_MATRIXNAME_,sheen,_INFONAME_,SheenInfos.x)
|
|
183
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,SHEEN_TEXTURE_ROUGHNESS,_VARYINGNAME_,SheenRoughness,_MATRIXNAME_,sheenRoughness,_INFONAME_,SheenInfos.z)
|
|
184
|
-
#endif
|
|
185
|
-
#ifdef ANISOTROPIC
|
|
186
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,ANISOTROPIC_TEXTURE,_VARYINGNAME_,Anisotropy,_MATRIXNAME_,anisotropy,_INFONAME_,AnisotropyInfos.x)
|
|
187
|
-
#endif
|
|
188
|
-
#ifdef SUBSURFACE
|
|
189
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,SS_THICKNESSANDMASK_TEXTURE,_VARYINGNAME_,Thickness,_MATRIXNAME_,thickness,_INFONAME_,ThicknessInfos.x)
|
|
190
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,SS_REFRACTIONINTENSITY_TEXTURE,_VARYINGNAME_,RefractionIntensity,_MATRIXNAME_,refractionIntensity,_INFONAME_,RefractionIntensityInfos.x)
|
|
191
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,SS_TRANSLUCENCYINTENSITY_TEXTURE,_VARYINGNAME_,TranslucencyIntensity,_MATRIXNAME_,translucencyIntensity,_INFONAME_,TranslucencyIntensityInfos.x)
|
|
192
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,SS_TRANSLUCENCYCOLOR_TEXTURE,_VARYINGNAME_,TranslucencyColor,_MATRIXNAME_,translucencyColor,_INFONAME_,TranslucencyColorInfos.x)
|
|
193
|
-
#endif
|
|
194
|
-
#include<bumpVertex>
|
|
195
|
-
#include<clipPlaneVertex>
|
|
196
|
-
#include<fogVertex>
|
|
197
|
-
#include<shadowsVertex>[0..maxSimultaneousLights]
|
|
198
|
-
#include<vertexColorMixing>
|
|
199
|
-
#include<logDepthVertex>
|
|
200
|
-
#define CUSTOM_VERTEX_MAIN_END
|
|
201
|
-
}`;
|
|
202
|
-
// Sideeffect
|
|
203
|
-
ShaderStore.ShadersStoreWGSL[name] = shader;
|
|
204
|
-
/** @internal */
|
|
205
|
-
const pbrVertexShaderWGSL = { name, shader };
|
|
206
|
-
|
|
207
|
-
export { pbrVertexShaderWGSL };
|
|
208
|
-
//# sourceMappingURL=pbr.vertex-ou_Fcm2v.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pbr.vertex-ou_Fcm2v.esm.js","sources":["../../../../../dev/core/dist/ShadersWGSL/pbr.vertex.js"],"sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../Engines/shaderStore\";\nimport \"./ShadersInclude/pbrUboDeclaration\";\nimport \"./ShadersInclude/uvAttributeDeclaration\";\nimport \"./ShadersInclude/mainUVVaryingDeclaration\";\nimport \"./ShadersInclude/helperFunctions\";\nimport \"./ShadersInclude/bonesDeclaration\";\nimport \"./ShadersInclude/bakedVertexAnimationDeclaration\";\nimport \"./ShadersInclude/instancesDeclaration\";\nimport \"./ShadersInclude/prePassVertexDeclaration\";\nimport \"./ShadersInclude/samplerVertexDeclaration\";\nimport \"./ShadersInclude/harmonicsFunctions\";\nimport \"./ShadersInclude/bumpVertexDeclaration\";\nimport \"./ShadersInclude/clipPlaneVertexDeclaration\";\nimport \"./ShadersInclude/fogVertexDeclaration\";\nimport \"./ShadersInclude/lightVxUboDeclaration\";\nimport \"./ShadersInclude/morphTargetsVertexGlobalDeclaration\";\nimport \"./ShadersInclude/morphTargetsVertexDeclaration\";\nimport \"./ShadersInclude/logDepthDeclaration\";\nimport \"./ShadersInclude/morphTargetsVertexGlobal\";\nimport \"./ShadersInclude/morphTargetsVertex\";\nimport \"./ShadersInclude/instancesVertex\";\nimport \"./ShadersInclude/bonesVertex\";\nimport \"./ShadersInclude/bakedVertexAnimation\";\nimport \"./ShadersInclude/prePassVertex\";\nimport \"./ShadersInclude/uvVariableDeclaration\";\nimport \"./ShadersInclude/samplerVertexImplementation\";\nimport \"./ShadersInclude/bumpVertex\";\nimport \"./ShadersInclude/clipPlaneVertex\";\nimport \"./ShadersInclude/fogVertex\";\nimport \"./ShadersInclude/shadowsVertex\";\nimport \"./ShadersInclude/vertexColorMixing\";\nimport \"./ShadersInclude/logDepthVertex\";\nconst name = \"pbrVertexShader\";\nconst shader = `#include<pbrUboDeclaration>\n#define CUSTOM_VERTEX_BEGIN\nattribute position: vec3f;\n#ifdef NORMAL\nattribute normal: vec3f;\n#endif\n#ifdef TANGENT\nattribute tangent: vec4f;\n#endif\n#ifdef UV1\nattribute uv: vec2f;\n#endif\n#include<uvAttributeDeclaration>[2..7]\n#include<mainUVVaryingDeclaration>[1..7]\n#ifdef VERTEXCOLOR\nattribute color: vec4f;\n#endif\n#include<helperFunctions>\n#include<bonesDeclaration>\n#include<bakedVertexAnimationDeclaration>\n#include<instancesDeclaration>\n#include<prePassVertexDeclaration>\n#include<samplerVertexDeclaration>(_DEFINENAME_,ALBEDO,_VARYINGNAME_,Albedo)\n#include<samplerVertexDeclaration>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail)\n#include<samplerVertexDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient)\n#include<samplerVertexDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity)\n#include<samplerVertexDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive)\n#include<samplerVertexDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap)\n#include<samplerVertexDeclaration>(_DEFINENAME_,REFLECTIVITY,_VARYINGNAME_,Reflectivity)\n#include<samplerVertexDeclaration>(_DEFINENAME_,MICROSURFACEMAP,_VARYINGNAME_,MicroSurfaceSampler)\n#include<samplerVertexDeclaration>(_DEFINENAME_,METALLIC_REFLECTANCE,_VARYINGNAME_,MetallicReflectance)\n#include<samplerVertexDeclaration>(_DEFINENAME_,REFLECTANCE,_VARYINGNAME_,Reflectance)\n#include<samplerVertexDeclaration>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump)\n#include<samplerVertexDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal)\n#ifdef CLEARCOAT\n#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_TEXTURE,_VARYINGNAME_,ClearCoat)\n#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_TEXTURE_ROUGHNESS,_VARYINGNAME_,ClearCoatRoughness)\n#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_BUMP,_VARYINGNAME_,ClearCoatBump)\n#include<samplerVertexDeclaration>(_DEFINENAME_,CLEARCOAT_TINT_TEXTURE,_VARYINGNAME_,ClearCoatTint)\n#endif\n#ifdef IRIDESCENCE\n#include<samplerVertexDeclaration>(_DEFINENAME_,IRIDESCENCE_TEXTURE,_VARYINGNAME_,Iridescence)\n#include<samplerVertexDeclaration>(_DEFINENAME_,IRIDESCENCE_THICKNESS_TEXTURE,_VARYINGNAME_,IridescenceThickness)\n#endif\n#ifdef SHEEN\n#include<samplerVertexDeclaration>(_DEFINENAME_,SHEEN_TEXTURE,_VARYINGNAME_,Sheen)\n#include<samplerVertexDeclaration>(_DEFINENAME_,SHEEN_TEXTURE_ROUGHNESS,_VARYINGNAME_,SheenRoughness)\n#endif\n#ifdef ANISOTROPIC\n#include<samplerVertexDeclaration>(_DEFINENAME_,ANISOTROPIC_TEXTURE,_VARYINGNAME_,Anisotropy)\n#endif\n#ifdef SUBSURFACE\n#include<samplerVertexDeclaration>(_DEFINENAME_,SS_THICKNESSANDMASK_TEXTURE,_VARYINGNAME_,Thickness)\n#include<samplerVertexDeclaration>(_DEFINENAME_,SS_REFRACTIONINTENSITY_TEXTURE,_VARYINGNAME_,RefractionIntensity)\n#include<samplerVertexDeclaration>(_DEFINENAME_,SS_TRANSLUCENCYINTENSITY_TEXTURE,_VARYINGNAME_,TranslucencyIntensity)\n#include<samplerVertexDeclaration>(_DEFINENAME_,SS_TRANSLUCENCYCOLOR_TEXTURE,_VARYINGNAME_,TranslucencyColor)\n#endif\nvarying vPositionW: vec3f;\n#if DEBUGMODE>0\nvarying vClipSpacePosition: vec4f;\n#endif\n#ifdef NORMAL\nvarying vNormalW: vec3f;\n#if defined(USESPHERICALFROMREFLECTIONMAP) && defined(USESPHERICALINVERTEX)\nvarying vEnvironmentIrradiance: vec3f;\n#include<harmonicsFunctions>\n#endif\n#endif\n#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)\nvarying vColor: vec4f;\n#endif\n#include<bumpVertexDeclaration>\n#include<clipPlaneVertexDeclaration>\n#include<fogVertexDeclaration>\n#include<lightVxUboDeclaration>[0..maxSimultaneousLights]\n#include<morphTargetsVertexGlobalDeclaration>\n#include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]\n#ifdef REFLECTIONMAP_SKYBOX\nvarying vPositionUVW: vec3f;\n#endif\n#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)\nvarying vDirectionW: vec3f;\n#endif\n#include<logDepthDeclaration>\n#define CUSTOM_VERTEX_DEFINITIONS\n@vertex\nfn main(input : VertexInputs)->FragmentInputs {\n#define CUSTOM_VERTEX_MAIN_BEGIN\nvar positionUpdated: vec3f=vertexInputs.position;\n#ifdef NORMAL\nvar normalUpdated: vec3f=vertexInputs.normal;\n#endif\n#ifdef TANGENT\nvar tangentUpdated: vec4f=vertexInputs.tangent;\n#endif\n#ifdef UV1\nvar uvUpdated: vec2f=vertexInputs.uv;\n#endif\n#include<morphTargetsVertexGlobal>\n#include<morphTargetsVertex>[0..maxSimultaneousMorphTargets]\n#ifdef REFLECTIONMAP_SKYBOX\nvertexOutputs.vPositionUVW=positionUpdated;\n#endif\n#define CUSTOM_VERTEX_UPDATE_POSITION\n#define CUSTOM_VERTEX_UPDATE_NORMAL\n#include<instancesVertex>\n#if defined(PREPASS) && (defined(PREPASS_VELOCITY) && !defined(BONES_VELOCITY_ENABLED) || defined(PREPASS_VELOCITY_LINEAR))\nvertexOutputs.vCurrentPosition=scene.viewProjection*finalWorld* vec4f(positionUpdated,1.0);vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWorld* vec4f(positionUpdated,1.0);\n#endif\n#include<bonesVertex>\n#include<bakedVertexAnimation>\nvar worldPos: vec4f=finalWorld* vec4f(positionUpdated,1.0);vertexOutputs.vPositionW= worldPos.xyz;\n#include<prePassVertex>\n#ifdef NORMAL\nvar normalWorld: mat3x3f= mat3x3f(finalWorld[0].xyz,finalWorld[1].xyz,finalWorld[2].xyz);\n#if defined(INSTANCES) && defined(THIN_INSTANCES)\nvertexOutputs.vNormalW=normalUpdated/ vec3f(dot(normalWorld[0],normalWorld[0]),dot(normalWorld[1],normalWorld[1]),dot(normalWorld[2],normalWorld[2]));vertexOutputs.vNormalW=normalize(normalWorld*vertexOutputs.vNormalW);\n#else\n#ifdef NONUNIFORMSCALING\nnormalWorld=transposeMat3(inverseMat3(normalWorld));\n#endif\nvertexOutputs.vNormalW=normalize(normalWorld*normalUpdated);\n#endif\n#if defined(USESPHERICALFROMREFLECTIONMAP) && defined(USESPHERICALINVERTEX)\nvar reflectionVector: vec3f= (uniforms.reflectionMatrix* vec4f(vertexOutputs.vNormalW,0)).xyz;\n#ifdef REFLECTIONMAP_OPPOSITEZ\nreflectionVector.z*=-1.0;\n#endif\nvertexOutputs.vEnvironmentIrradiance=computeEnvironmentIrradiance(reflectionVector);\n#endif\n#endif\n#define CUSTOM_VERTEX_UPDATE_WORLDPOS\n#ifdef MULTIVIEW\nif (gl_ViewID_OVR==0u) {vertexOutputs.position=scene.viewProjection*worldPos;} else {vertexOutputs.position=scene.viewProjectionR*worldPos;}\n#else\nvertexOutputs.position=scene.viewProjection*worldPos;\n#endif\n#if DEBUGMODE>0\nvertexOutputs.vClipSpacePosition=vertexOutputs.position;\n#endif\n#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)\nvertexOutputs.vDirectionW=normalize((finalWorld*vec4f(positionUpdated,0.0)).xyz);\n#endif\n#ifndef UV1\nvar uvUpdated: vec2f= vec2f(0.,0.);\n#endif\n#ifdef MAINUV1\nvertexOutputs.vMainUV1=uvUpdated;\n#endif\n#include<uvVariableDeclaration>[2..7]\n#include<samplerVertexImplementation>(_DEFINENAME_,ALBEDO,_VARYINGNAME_,Albedo,_MATRIXNAME_,albedo,_INFONAME_,AlbedoInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail,_MATRIXNAME_,detail,_INFONAME_,DetailInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_MATRIXNAME_,ambient,_INFONAME_,AmbientInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_MATRIXNAME_,opacity,_INFONAME_,OpacityInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_MATRIXNAME_,emissive,_INFONAME_,EmissiveInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_MATRIXNAME_,lightmap,_INFONAME_,LightmapInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,REFLECTIVITY,_VARYINGNAME_,Reflectivity,_MATRIXNAME_,reflectivity,_INFONAME_,ReflectivityInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,MICROSURFACEMAP,_VARYINGNAME_,MicroSurfaceSampler,_MATRIXNAME_,microSurfaceSampler,_INFONAME_,MicroSurfaceSamplerInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,METALLIC_REFLECTANCE,_VARYINGNAME_,MetallicReflectance,_MATRIXNAME_,metallicReflectance,_INFONAME_,MetallicReflectanceInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,REFLECTANCE,_VARYINGNAME_,Reflectance,_MATRIXNAME_,reflectance,_INFONAME_,ReflectanceInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_MATRIXNAME_,bump,_INFONAME_,BumpInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_MATRIXNAME_,decal,_INFONAME_,DecalInfos.x)\n#ifdef CLEARCOAT\n#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_TEXTURE,_VARYINGNAME_,ClearCoat,_MATRIXNAME_,clearCoat,_INFONAME_,ClearCoatInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_TEXTURE_ROUGHNESS,_VARYINGNAME_,ClearCoatRoughness,_MATRIXNAME_,clearCoatRoughness,_INFONAME_,ClearCoatInfos.z)\n#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_BUMP,_VARYINGNAME_,ClearCoatBump,_MATRIXNAME_,clearCoatBump,_INFONAME_,ClearCoatBumpInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,CLEARCOAT_TINT_TEXTURE,_VARYINGNAME_,ClearCoatTint,_MATRIXNAME_,clearCoatTint,_INFONAME_,ClearCoatTintInfos.x)\n#endif\n#ifdef IRIDESCENCE\n#include<samplerVertexImplementation>(_DEFINENAME_,IRIDESCENCE_TEXTURE,_VARYINGNAME_,Iridescence,_MATRIXNAME_,iridescence,_INFONAME_,IridescenceInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,IRIDESCENCE_THICKNESS_TEXTURE,_VARYINGNAME_,IridescenceThickness,_MATRIXNAME_,iridescenceThickness,_INFONAME_,IridescenceInfos.z)\n#endif\n#ifdef SHEEN\n#include<samplerVertexImplementation>(_DEFINENAME_,SHEEN_TEXTURE,_VARYINGNAME_,Sheen,_MATRIXNAME_,sheen,_INFONAME_,SheenInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,SHEEN_TEXTURE_ROUGHNESS,_VARYINGNAME_,SheenRoughness,_MATRIXNAME_,sheenRoughness,_INFONAME_,SheenInfos.z)\n#endif\n#ifdef ANISOTROPIC\n#include<samplerVertexImplementation>(_DEFINENAME_,ANISOTROPIC_TEXTURE,_VARYINGNAME_,Anisotropy,_MATRIXNAME_,anisotropy,_INFONAME_,AnisotropyInfos.x)\n#endif\n#ifdef SUBSURFACE\n#include<samplerVertexImplementation>(_DEFINENAME_,SS_THICKNESSANDMASK_TEXTURE,_VARYINGNAME_,Thickness,_MATRIXNAME_,thickness,_INFONAME_,ThicknessInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,SS_REFRACTIONINTENSITY_TEXTURE,_VARYINGNAME_,RefractionIntensity,_MATRIXNAME_,refractionIntensity,_INFONAME_,RefractionIntensityInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,SS_TRANSLUCENCYINTENSITY_TEXTURE,_VARYINGNAME_,TranslucencyIntensity,_MATRIXNAME_,translucencyIntensity,_INFONAME_,TranslucencyIntensityInfos.x)\n#include<samplerVertexImplementation>(_DEFINENAME_,SS_TRANSLUCENCYCOLOR_TEXTURE,_VARYINGNAME_,TranslucencyColor,_MATRIXNAME_,translucencyColor,_INFONAME_,TranslucencyColorInfos.x)\n#endif\n#include<bumpVertex>\n#include<clipPlaneVertex>\n#include<fogVertex>\n#include<shadowsVertex>[0..maxSimultaneousLights]\n#include<vertexColorMixing>\n#include<logDepthVertex>\n#define CUSTOM_VERTEX_MAIN_END\n}`;\n// Sideeffect\nShaderStore.ShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const pbrVertexShaderWGSL = { name, shader };\n//# sourceMappingURL=pbr.vertex.js.map"],"names":[],"mappings":";;;;;;AAAA;AAiCA,MAAM,IAAI,GAAG,iBAAiB,CAAC;AAC/B,MAAM,MAAM,GAAG,CAAC;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,CAAC;AACH;AACA,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAC5C;AACY,MAAC,mBAAmB,GAAG,EAAE,IAAI,EAAE,MAAM;;;;"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { S as ShaderStore } from './index-5EaMDaGg.esm.js';
|
|
2
|
-
|
|
3
|
-
// Do not edit.
|
|
4
|
-
const name = "postprocessVertexShader";
|
|
5
|
-
const shader = `attribute position: vec2<f32>;uniform scale: vec2<f32>;varying vUV: vec2<f32>;const madd=vec2(0.5,0.5);
|
|
6
|
-
#define CUSTOM_VERTEX_DEFINITIONS
|
|
7
|
-
@vertex
|
|
8
|
-
fn main(input : VertexInputs)->FragmentInputs {
|
|
9
|
-
#define CUSTOM_VERTEX_MAIN_BEGIN
|
|
10
|
-
vertexOutputs.vUV=(vertexInputs.position*madd+madd)*uniforms.scale;vertexOutputs.position=vec4(vertexInputs.position,0.0,1.0);
|
|
11
|
-
#define CUSTOM_VERTEX_MAIN_END
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
// Sideeffect
|
|
15
|
-
ShaderStore.ShadersStoreWGSL[name] = shader;
|
|
16
|
-
/** @internal */
|
|
17
|
-
const postprocessVertexShaderWGSL = { name, shader };
|
|
18
|
-
|
|
19
|
-
export { postprocessVertexShaderWGSL };
|
|
20
|
-
//# sourceMappingURL=postprocess.vertex-C12ptRTz.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postprocess.vertex-C12ptRTz.esm.js","sources":["../../../../../dev/core/dist/ShadersWGSL/postprocess.vertex.js"],"sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../Engines/shaderStore\";\nconst name = \"postprocessVertexShader\";\nconst shader = `attribute position: vec2<f32>;uniform scale: vec2<f32>;varying vUV: vec2<f32>;const madd=vec2(0.5,0.5);\n#define CUSTOM_VERTEX_DEFINITIONS\n@vertex\nfn main(input : VertexInputs)->FragmentInputs {\n#define CUSTOM_VERTEX_MAIN_BEGIN\nvertexOutputs.vUV=(vertexInputs.position*madd+madd)*uniforms.scale;vertexOutputs.position=vec4(vertexInputs.position,0.0,1.0);\n#define CUSTOM_VERTEX_MAIN_END\n}\n`;\n// Sideeffect\nShaderStore.ShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const postprocessVertexShaderWGSL = { name, shader };\n//# sourceMappingURL=postprocess.vertex.js.map"],"names":[],"mappings":";;AAAA;AAEA,MAAM,IAAI,GAAG,yBAAyB,CAAC;AACvC,MAAM,MAAM,GAAG,CAAC;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AACA,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAC5C;AACY,MAAC,2BAA2B,GAAG,EAAE,IAAI,EAAE,MAAM;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{S as e}from"./index-RwQCgcf4.esm.min.js";const n="postprocessVertexShader",t="attribute position: vec2<f32>;uniform scale: vec2<f32>;varying vUV: vec2<f32>;const madd=vec2(0.5,0.5);\n#define CUSTOM_VERTEX_DEFINITIONS\n@vertex\nfn main(input : VertexInputs)->FragmentInputs {\n#define CUSTOM_VERTEX_MAIN_BEGIN\nvertexOutputs.vUV=(vertexInputs.position*madd+madd)*uniforms.scale;vertexOutputs.position=vec4(vertexInputs.position,0.0,1.0);\n#define CUSTOM_VERTEX_MAIN_END\n}\n";e.ShadersStoreWGSL[n]=t;const s={name:n,shader:t};export{s as postprocessVertexShaderWGSL};
|
|
2
|
-
//# sourceMappingURL=postprocess.vertex-D9PCzQ_C.esm.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postprocess.vertex-D9PCzQ_C.esm.min.js","sources":["../../../../../dev/core/dist/ShadersWGSL/postprocess.vertex.js"],"sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../Engines/shaderStore\";\nconst name = \"postprocessVertexShader\";\nconst shader = `attribute position: vec2<f32>;uniform scale: vec2<f32>;varying vUV: vec2<f32>;const madd=vec2(0.5,0.5);\n#define CUSTOM_VERTEX_DEFINITIONS\n@vertex\nfn main(input : VertexInputs)->FragmentInputs {\n#define CUSTOM_VERTEX_MAIN_BEGIN\nvertexOutputs.vUV=(vertexInputs.position*madd+madd)*uniforms.scale;vertexOutputs.position=vec4(vertexInputs.position,0.0,1.0);\n#define CUSTOM_VERTEX_MAIN_END\n}\n`;\n// Sideeffect\nShaderStore.ShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const postprocessVertexShaderWGSL = { name, shader };\n//# sourceMappingURL=postprocess.vertex.js.map"],"names":["name","shader","ShaderStore","ShadersStoreWGSL","postprocessVertexShaderWGSL"],"mappings":"gDAEA,MAAMA,EAAO,0BACPC,EAAS,8YAUfC,EAAYC,iBAAiBH,GAAQC,EAEzB,MAACG,EAA8B,CAAEJ,OAAMC"}
|