babylonjs-tiaratumgames-tools 0.1.0 → 0.1.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/dist/EXT_lights_area-w-pVqNzA.js +151 -0
- package/dist/EXT_lights_ies-D30aOyIZ.js +42 -0
- package/dist/EXT_lights_image_based-Bal4Y1IU.js +197 -0
- package/dist/EXT_mesh_gpu_instancing-DPkp8Oj5.js +40 -0
- package/dist/EXT_meshopt_compression-Bj-t4gTc.js +45 -0
- package/dist/EXT_texture_avif-CUC_Ekel.js +22 -0
- package/dist/EXT_texture_webp-CF94Nge8.js +22 -0
- package/dist/ExtrasAsMetadata-Dap4z-J4.js +36 -0
- package/dist/KHR_animation_pointer-Dfj9Io6Z.js +135 -0
- package/dist/KHR_draco_mesh_compression-mGZwO0lK.js +340 -0
- package/dist/KHR_interactivity-BCC8fQ1G.js +652 -0
- package/dist/KHR_lights_punctual-CYfkj5mS.js +208 -0
- package/dist/KHR_materials_anisotropy-D30H7_Aa.js +28 -0
- package/dist/KHR_materials_clearcoat-BRacbM4C.js +30 -0
- package/dist/KHR_materials_coat-DXMf8lDr.js +39 -0
- package/dist/KHR_materials_diffuse_roughness-HGjynCW9.js +26 -0
- package/dist/KHR_materials_diffuse_transmission-gbLOcVk7.js +31 -0
- package/dist/KHR_materials_dispersion-CprHi0SP.js +24 -0
- package/dist/KHR_materials_emissive_strength-D7J-q6H-.js +23 -0
- package/dist/KHR_materials_fuzz-DV8sTfmj.js +31 -0
- package/dist/KHR_materials_ior-DjJc7Cj9.js +24 -0
- package/dist/KHR_materials_iridescence-BU_1JoIm.js +28 -0
- package/dist/KHR_materials_pbrSpecularGlossiness-BA0G4eRi.js +29 -0
- package/dist/KHR_materials_sheen-Cu0StCHX.js +31 -0
- package/dist/KHR_materials_specular-CRBppjXN.js +31 -0
- package/dist/KHR_materials_transmission-DclP-OH2.js +138 -0
- package/dist/KHR_materials_unlit-ClAUT2L0.js +24 -0
- package/dist/KHR_materials_variants-Be1Gi66d.js +142 -0
- package/dist/KHR_materials_volume-CdKJONom.js +32 -0
- package/dist/KHR_materials_volume_scatter-BEYHN05X.js +48 -0
- package/dist/KHR_mesh_quantization-CR8HnmeH.js +11 -0
- package/dist/KHR_node_hoverability-Cg7uGlmR.js +163 -0
- package/dist/KHR_node_selectability-dfaHMQdn.js +101 -0
- package/dist/KHR_node_visibility-D2AFP9_6.js +39 -0
- package/dist/KHR_texture_basisu--ozSMevH.js +22 -0
- package/dist/KHR_texture_transform-DWsNFZrW.js +21 -0
- package/dist/KHR_xmp_json_ld-CWxliCjq.js +21 -0
- package/dist/MSFT_audio_emitter-CdbfkYzL.js +1679 -0
- package/dist/MSFT_lod-zPHYY4Ye.js +134 -0
- package/dist/MSFT_minecraftMesh-B3QbC9FY.js +23 -0
- package/dist/MSFT_sRGBFactors-DIasDVk1.js +22 -0
- package/dist/abstractAudioBus-DBa5CBji.js +9 -0
- package/dist/abstractEngine.cubeTexture-D6ftbd2l.js +58 -0
- package/dist/abstractSoundInstance-BUvdhn0-.js +105 -0
- package/dist/abstractSoundSource-CpiN6Dnr.js +35 -0
- package/dist/animation-ByliUXg_.js +504 -0
- package/dist/animationGroup-zEPI4q05.js +936 -0
- package/dist/assetContainer-D1vCvY4z.js +631 -0
- package/dist/babylonjs-tiaratumgames-tools.js +1358 -17373
- package/dist/babylonjs-tiaratumgames-tools.umd.cjs +19539 -13
- package/dist/bakedVertexAnimation-CiE8Xxrg.js +41 -0
- package/dist/basisTextureLoader-C63QDaIJ.js +281 -0
- package/dist/bone-C4QI4R0W.js +355 -0
- package/dist/brdfTextureTools-BYwgaAah.js +27 -0
- package/dist/buffer-CM3EB02Q.js +180 -0
- package/dist/bumpFragment-BpPSSv7G.js +14 -0
- package/dist/bumpFragment-LaUJESHl.js +21 -0
- package/dist/bumpVertex-B3grbHJY.js +5 -0
- package/dist/bumpVertex-ChSDU-yy.js +45 -0
- package/dist/bumpVertexDeclaration-BBsNH9N2.js +5 -0
- package/dist/bumpVertexDeclaration-PI5luC7P.js +5 -0
- package/dist/bvhFileLoader-Bq-w1bwM.js +214 -0
- package/dist/bvhFileLoader.metadata-DrqCjX5j.js +7 -0
- package/dist/clipPlaneFragment-1kyD_DHJ.js +9 -0
- package/dist/clipPlaneFragment-DI--6gym.js +9 -0
- package/dist/clipPlaneVertex-CKD4T5iP.js +9 -0
- package/dist/clipPlaneVertex-DFKxAJgv.js +9 -0
- package/dist/cubemapToSphericalPolynomial-wuCbw_9m.js +123 -0
- package/dist/dataBuffer-CCE13oaB.js +12 -0
- package/dist/dds-DxmUyjpG.js +251 -0
- package/dist/ddsTextureLoader-D0jFt7K9.js +34 -0
- package/dist/declarationMapper-CHeTI5W8.js +1602 -0
- package/dist/decorators-pjJPuQ9O.js +132 -0
- package/dist/default.fragment-B0XwjRNi.js +31 -0
- package/dist/default.fragment-CY154gvt.js +28 -0
- package/dist/default.vertex-BHiVjYID.js +24 -0
- package/dist/default.vertex-Cq8bHdl1.js +27 -0
- package/dist/defaultUboDeclaration-BUAR65As.js +7 -0
- package/dist/defaultUboDeclaration-CGpkmqbo.js +7 -0
- package/dist/devTools-LMnNz6iC.js +7 -0
- package/dist/domManagement-tv9HJMQQ.js +17 -0
- package/dist/drawWrapper-33Ks2sUS.js +26 -0
- package/dist/drawWrapper.functions-Bvc1PjDU.js +6 -0
- package/dist/dumpTools-BZfIenfM.js +101 -0
- package/dist/easing-ogGZnI80.js +76 -0
- package/dist/effectRenderer-CUSclhaS.js +179 -0
- package/dist/envTextureLoader-7JpxMy0m.js +28 -0
- package/dist/environmentTextureTools-DiBrdx38.js +215 -0
- package/dist/exrTextureLoader-D-mEDdrT.js +676 -0
- package/dist/floatingOriginMatrixOverrides-BPXSpBTY.js +67 -0
- package/dist/flowGraphApplyForceBlock-DDK2y_2O.js +24 -0
- package/dist/flowGraphApplyImpulseBlock-CLi1aXuW.js +24 -0
- package/dist/flowGraphArrayIndexBlock-BWUOnQag.js +23 -0
- package/dist/flowGraphAssetsContext-tSLcnj-n.js +18 -0
- package/dist/flowGraphAsyncExecutionBlock-79NMUIOy.js +16 -0
- package/dist/flowGraphBezierCurveEasingBlock-CNOuOyMF.js +26 -0
- package/dist/flowGraphBinaryOperationBlock-DOvt7ULP.js +16 -0
- package/dist/flowGraphBlock-B1mraZf8.js +220 -0
- package/dist/flowGraphBranchBlock-Dob4HXTL.js +18 -0
- package/dist/flowGraphCachedOperationBlock-TT87LAND.js +24 -0
- package/dist/flowGraphCancelDelayBlock-BuKzdczW.js +22 -0
- package/dist/flowGraphCodeExecutionBlock-yVTajk4r.js +17 -0
- package/dist/flowGraphConditionalDataBlock-fk6kG-7y.js +19 -0
- package/dist/flowGraphConsoleLogBlock-Cln7DyeI.js +54 -0
- package/dist/flowGraphConstantBlock-Bj9oORuM.js +21 -0
- package/dist/flowGraphContextBlock-CnQdYIm4.js +21 -0
- package/dist/flowGraphCoordinator-qDUGMWc4.js +760 -0
- package/dist/flowGraphCounterBlock-CMVfyGIo.js +23 -0
- package/dist/flowGraphDataSwitchBlock-BO76pB-t.js +28 -0
- package/dist/flowGraphDebounceBlock-aPBWFX9y.js +23 -0
- package/dist/flowGraphDebugBlock-uiwHrdbU.js +47 -0
- package/dist/flowGraphDoNBlock-Ca3EVOcu.js +22 -0
- package/dist/flowGraphEasingBlock-B4h45ic-.js +47 -0
- package/dist/flowGraphEventBlock-CtHqci6S.js +19 -0
- package/dist/flowGraphExecutionBlock-Ce1wFSEM.js +91 -0
- package/dist/flowGraphExecutionBlockWithOutSignal-CvZsbu-Q.js +9 -0
- package/dist/flowGraphFlipFlopBlock-kKWV_3yy.js +19 -0
- package/dist/flowGraphForLoopBlock-4rRZCHar.js +21 -0
- package/dist/flowGraphFunctionReferenceBlock-D2FMfMxW.js +22 -0
- package/dist/flowGraphGLTFDataProvider-9mzRs5bF.js +17 -0
- package/dist/flowGraphGetAngularVelocityBlock-rr5dm-I1.js +22 -0
- package/dist/flowGraphGetAssetBlock-B2almkYd.js +21 -0
- package/dist/flowGraphGetLinearVelocityBlock-BWJ2i1eO.js +22 -0
- package/dist/flowGraphGetPhysicsMassPropertiesBlock-ih2uVwE6.js +21 -0
- package/dist/flowGraphGetPropertyBlock-CeBDBdJA.js +29 -0
- package/dist/flowGraphGetSoundVolumeBlock-CQSuxWME.js +19 -0
- package/dist/flowGraphGetVariableBlock-C-gtwkLp.js +22 -0
- package/dist/flowGraphIndexOfBlock-BPqlTflZ.js +22 -0
- package/dist/flowGraphInterpolationBlock-DbLHaG8X.js +59 -0
- package/dist/flowGraphIsKeyPressedBlock-CPsKhV-o.js +24 -0
- package/dist/flowGraphIsSoundPlayingBlock-OOLBO4Gt.js +19 -0
- package/dist/flowGraphJsonPointerParserBlock-uxk2a80W.js +76 -0
- package/dist/flowGraphKeyDownEventBlock-BKu3JuRA.js +19 -0
- package/dist/flowGraphKeyUpEventBlock-2PBgAgW6.js +14 -0
- package/dist/flowGraphKeyboardEventBlock-J8rxmCcS.js +17 -0
- package/dist/flowGraphMathBlocks-Cm37q72E.js +663 -0
- package/dist/flowGraphMathCombineExtractBlocks-USfglTvt.js +213 -0
- package/dist/flowGraphMatrixMathBlocks-DrGoSOFZ.js +72 -0
- package/dist/flowGraphMeshPickEventBlock-BPX944ED.js +27 -0
- package/dist/flowGraphMultiGateBlock-DcixnPMT.js +39 -0
- package/dist/flowGraphPauseAnimationBlock-uYwL7w3-.js +18 -0
- package/dist/flowGraphPauseSoundBlock-C6XJQmCy.js +23 -0
- package/dist/flowGraphPhysicsCollisionEventBlock-DmqGWLWn.js +42 -0
- package/dist/flowGraphPlayAnimationBlock-D_QG_g7I.js +78 -0
- package/dist/flowGraphPlaySoundBlock-Du9IL9aD.js +28 -0
- package/dist/flowGraphPointerDownEventBlock-bfIb7Dqt.js +22 -0
- package/dist/flowGraphPointerMoveEventBlock-CFPmMrq7.js +22 -0
- package/dist/flowGraphPointerOutEventBlock-BcbLIzvY.js +22 -0
- package/dist/flowGraphPointerOverEventBlock-99etlGVI.js +24 -0
- package/dist/flowGraphPointerUpEventBlock-BiJBbtoY.js +22 -0
- package/dist/flowGraphReceiveCustomEventBlock-CwsnV2c9.js +50 -0
- package/dist/flowGraphSceneReadyEventBlock-c7c9u8l_.js +19 -0
- package/dist/flowGraphSceneTickEventBlock-COY_Mr-2.js +20 -0
- package/dist/flowGraphSendCustomEventBlock-SKzBIfNY.js +33 -0
- package/dist/flowGraphSequenceBlock-q3_Ls24z.js +24 -0
- package/dist/flowGraphSetAngularVelocityBlock-CwWO869v.js +23 -0
- package/dist/flowGraphSetDelayBlock-BMZb1uE9.js +95 -0
- package/dist/flowGraphSetLinearVelocityBlock-JJS8ZSyq.js +23 -0
- package/dist/flowGraphSetPhysicsMotionTypeBlock-4cff6oPj.js +23 -0
- package/dist/flowGraphSetPropertyBlock-BWY3JfwB.js +47 -0
- package/dist/flowGraphSetSoundVolumeBlock-BoJhGp_u.js +23 -0
- package/dist/flowGraphSetVariableBlock-GKpqS_Dy.js +41 -0
- package/dist/flowGraphSoundEndedEventBlock-CeqRx4Ji.js +33 -0
- package/dist/flowGraphStopAnimationBlock-rKyNHMCy.js +47 -0
- package/dist/flowGraphStopSoundBlock-B7bZexOo.js +23 -0
- package/dist/flowGraphSwitchBlock-UUHMWyFY.js +36 -0
- package/dist/flowGraphThrottleBlock-DUsDYdKp.js +33 -0
- package/dist/flowGraphTransformCoordinatesSystemBlock-BPtT5JAN.js +24 -0
- package/dist/flowGraphTypeToTypeBlocks-DISDL0Wq.js +49 -0
- package/dist/flowGraphUnaryOperationBlock-Cz_mNs_v.js +15 -0
- package/dist/flowGraphVectorMathBlocks-YYzExLgf.js +159 -0
- package/dist/flowGraphWaitAllBlock-CcyFoZ1l.js +41 -0
- package/dist/flowGraphWhileLoopBlock-DeaLpumU.js +29 -0
- package/dist/fogFragment-BmAE1AjN.js +13 -0
- package/dist/fogFragment-Bu0OQB4H.js +13 -0
- package/dist/gaussianSplatting-44TGYZHi.js +15 -0
- package/dist/gaussianSplatting-D_E3wJHn.js +5 -0
- package/dist/gaussianSplatting.fragment-COtTwtHP.js +2 -0
- package/dist/gaussianSplatting.fragment-DByyGBy7.js +2 -0
- package/dist/gaussianSplatting.vertex-Cus2mBnq.js +2 -0
- package/dist/gaussianSplatting.vertex-L68UPScG.js +2 -0
- package/dist/gaussianSplattingVoxel.fragment-BC717TjH.js +2 -0
- package/dist/gaussianSplattingVoxel.fragment-BVQeQALt.js +10 -0
- package/dist/gaussianSplattingVoxel.vertex-BNb7CfQi.js +13 -0
- package/dist/gaussianSplattingVoxel.vertex-MQD6ssYl.js +2 -0
- package/dist/geometry.fragment-BclXtCtY.js +2 -0
- package/dist/geometry.fragment-CpVLZ-P6.js +18 -0
- package/dist/geometry.vertex-BFjGg5Y9.js +15 -0
- package/dist/geometry.vertex-BZZS6lzA.js +2 -0
- package/dist/glTFFileLoader.metadata-ClnxDlWj.js +19 -0
- package/dist/glTFLoader-DBsVDPMF.js +2742 -0
- package/dist/glTFLoaderAnimation-_eUoryOX.js +67 -0
- package/dist/glTFLoaderExtensionRegistry-BrcdADCj.js +14 -0
- package/dist/guid-CoL24FoQ.js +9 -0
- package/dist/harmonicsFunctions-KWo423x_.js +9 -0
- package/dist/harmonicsFunctions-lEbdebad.js +5 -0
- package/dist/hdrTextureLoader-BGCRkTnL.js +166 -0
- package/dist/helperFunctions-C2dsTz80.js +5 -0
- package/dist/helperFunctions-Dzstf9gf.js +5 -0
- package/dist/iesTextureLoader-KTJuT7Xs.js +80 -0
- package/dist/imageProcessing-DnYL-sQQ.js +475 -0
- package/dist/imageProcessingConfiguration-0j0rgiKV.js +355 -0
- package/dist/keyboardEvents-BSOW2ZNW.js +20 -0
- package/dist/ktxTextureLoader-BFNJslMp.js +376 -0
- package/dist/light-qglDZYT1.js +260 -0
- package/dist/lightConstants-DvI1LR22.js +422 -0
- package/dist/lightFragment-BWNJt5bp.js +13 -0
- package/dist/lightFragment-D5PgJs1E.js +9 -0
- package/dist/logDepthDeclaration-DCDZW44y.js +9 -0
- package/dist/logDepthDeclaration-PKhyo4Bo.js +9 -0
- package/dist/logDepthVertex-BNf5MX4C.js +13 -0
- package/dist/logDepthVertex-Dcf10yrn.js +13 -0
- package/dist/logger-B7TbbsLc.js +71 -0
- package/dist/mainUVVaryingDeclaration-Bq-F7xoW.js +5 -0
- package/dist/mainUVVaryingDeclaration-ClAkCC6o.js +5 -0
- package/dist/material-BaMfg5Yf.js +1589 -0
- package/dist/material.detailMapConfiguration-CMDfLaXi.js +323 -0
- package/dist/math.axis-BLRNKjfn.js +14 -0
- package/dist/math.color-HuJokdxD.js +506 -0
- package/dist/math.frustum-ESom13Dh.js +42 -0
- package/dist/math.path-C5EUDbKE.js +20 -0
- package/dist/math.plane-D_rf7z_Y.js +69 -0
- package/dist/math.scalar.functions-Bwn6pJjt.js +127 -0
- package/dist/math.size-C4V1YqcV.js +286 -0
- package/dist/math.vector-Bbyh9hc3.js +2259 -0
- package/dist/math.viewport-C1u7gfyw.js +17 -0
- package/dist/mesh-DOlqX9sH.js +4495 -0
- package/dist/node-BvfPvXnN.js +283 -0
- package/dist/objFileLoader-B5XQTM3h.js +436 -0
- package/dist/objFileLoader.metadata-B99GGa76.js +7 -0
- package/dist/objectModelMapping-BgQ-ovIk.js +941 -0
- package/dist/observable-CfpCDzrN.js +106 -0
- package/dist/oitFragment-BC0aj6co.js +49 -0
- package/dist/oitFragment-Cem_pY2J.js +45 -0
- package/dist/openpbr.fragment-DVwfcea4.js +94 -0
- package/dist/openpbr.fragment-DYoGXUxW.js +97 -0
- package/dist/openpbr.vertex-CBfoNQmj.js +28 -0
- package/dist/openpbr.vertex-IWP8g1K9.js +35 -0
- package/dist/openpbrMaterial-BbEb5fCM.js +1115 -0
- package/dist/openpbrMaterialLoadingAdapter-BMfQzurc.js +1008 -0
- package/dist/openpbrTransmissionLayerData-BFvxsMSc.js +21 -0
- package/dist/openpbrTransmissionLayerData-BaOIeZns.js +25 -0
- package/dist/openpbrUboDeclaration-BBuDxdFs.js +7 -0
- package/dist/openpbrUboDeclaration-DrIQ5Spp.js +7 -0
- package/dist/pass.fragment-Bx9L4nio.js +10 -0
- package/dist/pass.fragment-DZXpZmXI.js +10 -0
- package/dist/passCube.fragment-DKykD5AL.js +10 -0
- package/dist/passCube.fragment-v7nUjUmN.js +10 -0
- package/dist/pbr.fragment-BM-VkEzQ.js +107 -0
- package/dist/pbr.fragment-CHlcYwgM.js +117 -0
- package/dist/pbr.vertex-Bhos5OdV.js +22 -0
- package/dist/pbr.vertex-zog66spS.js +24 -0
- package/dist/pbrBRDFFunctions-B7zHxzK3.js +5 -0
- package/dist/pbrDebug-D6bkaL4B.js +47 -0
- package/dist/pbrDebug-SEz20bRH.js +51 -0
- package/dist/pbrIBLFunctions-9L8wom4h.js +9 -0
- package/dist/pbrIBLFunctions-JuCO47wP.js +9 -0
- package/dist/pbrMaterialLoadingAdapter-CLQTqf_c.js +400 -0
- package/dist/pbrUboDeclaration-CKs-ynil.js +7 -0
- package/dist/pbrUboDeclaration-D2UhPAxK.js +7 -0
- package/dist/performanceConfigurator-BunW6C48.js +26 -0
- package/dist/pointerEvents-8faJhUAZ.js +25 -0
- package/dist/postprocess.vertex-C5hqg89x.js +11 -0
- package/dist/postprocess.vertex-CMMhIwbc.js +11 -0
- package/dist/precisionDate-ClGE7iw-.js +9 -0
- package/dist/procedural.vertex-ByEkzBQx.js +10 -0
- package/dist/procedural.vertex-Dynnwj2Q.js +10 -0
- package/dist/rawTexture-BHm1xSpf.js +47 -0
- package/dist/reflectionFunction-BDCjuGkn.js +9 -0
- package/dist/renderTargetTexture-Bb2iThFg.js +648 -0
- package/dist/renderingManager-BTI0gFkh.js +344 -0
- package/dist/rgbdDecode.fragment-CqsLoPKX.js +6 -0
- package/dist/rgbdDecode.fragment-DjxYsxJ_.js +6 -0
- package/dist/rgbdEncode.fragment-CLCV12hJ.js +6 -0
- package/dist/rgbdEncode.fragment-CNzBbruo.js +6 -0
- package/dist/rgbdTextureTools-DuaYjSsJ.js +37 -0
- package/dist/scene-DjFfTYBg.js +2628 -0
- package/dist/sceneComponent-ChzJRbGz.js +25 -0
- package/dist/sceneUboDeclaration-UVKXqGep.js +5 -0
- package/dist/sceneUboDeclaration-sluQH5Kl.js +5 -0
- package/dist/shaderStore-BxHDSo_-.js +15 -0
- package/dist/skeleton-J9MYG91x.js +311 -0
- package/dist/spatialWebAudio-lzvx38yu.js +403 -0
- package/dist/sphericalPolynomial-DcDQFxce.js +101 -0
- package/dist/splatFileLoader-DZJr2NHt.js +4775 -0
- package/dist/splatFileLoader.metadata-C6UU6dc6.js +13 -0
- package/dist/standardMaterial-CGG5oydi.js +319 -0
- package/dist/stlFileLoader-CIBL0zb3.js +86 -0
- package/dist/stlFileLoader.metadata-C958PJn-.js +7 -0
- package/dist/texture-5pV5xPGB.js +593 -0
- package/dist/textureLoaderManager-KjFww7U-.js +16 -0
- package/dist/textureProcessor.fragment-B4pNlBgQ.js +10 -0
- package/dist/textureProcessor.fragment-CMWSRPmE.js +10 -0
- package/dist/textureTools-D2sX50zG.js +437 -0
- package/dist/tgaTextureLoader-DyG4vJaT.js +134 -0
- package/dist/thinEngine-D4Qv01qL.js +1500 -0
- package/dist/thinInstanceMesh-VaMp8Yyd.js +107 -0
- package/dist/tools-hJEwvocd.js +1046 -0
- package/dist/tools.functions-DjbF4qmY.js +2266 -0
- package/dist/typeStore-CSjrT3Od.js +10 -0
- package/dist/utils-DpXTM4JM.js +27 -0
- package/dist/vertexColorMixing-B_8gRc99.js +45 -0
- package/dist/vertexColorMixing-luhSXFRk.js +45 -0
- package/dist/webAudioBaseSubGraph-dE4qk33K.js +468 -0
- package/dist/webAudioBus-BZ414xmb.js +69 -0
- package/dist/webAudioMainBus-ClFM0GUH.js +41 -0
- package/dist/webAudioSoundSource-lxiVNu_R.js +2 -0
- package/dist/webAudioStaticSound-DgRXOZrU.js +2 -0
- package/dist/webAudioStreamingSound-C7F0xO80.js +2 -0
- package/dist/webRequest-DzjSS3px.js +136 -0
- package/dist/workerPool-CNka4S39.js +59 -0
- package/package.json +5 -3
- /package/dist/{mesh.vertexData.functions-Cr2ugAiD.js → mesh.vertexData.functions-70-Gb2EH.js} +0 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { t as e } from "./logger-B7TbbsLc.js";
|
|
2
|
+
import { n as t } from "./tools-hJEwvocd.js";
|
|
3
|
+
import { n } from "./typeStore-CSjrT3Od.js";
|
|
4
|
+
import { a as r, n as i } from "./math.vector-Bbyh9hc3.js";
|
|
5
|
+
import { _ as a, i as o } from "./decorators-pjJPuQ9O.js";
|
|
6
|
+
import { t as s } from "./math.color-HuJokdxD.js";
|
|
7
|
+
import { i as c } from "./mesh-DOlqX9sH.js";
|
|
8
|
+
import { t as l } from "./texture-5pV5xPGB.js";
|
|
9
|
+
import { t as u } from "./node-BvfPvXnN.js";
|
|
10
|
+
import { r as d, t as f } from "./glTFLoaderExtensionRegistry-BrcdADCj.js";
|
|
11
|
+
import { t as p } from "./light-qglDZYT1.js";
|
|
12
|
+
import { t as m } from "./rawTexture-BHm1xSpf.js";
|
|
13
|
+
import { ArrayItem as h, GLTFLoader as g } from "./glTFLoader-DBsVDPMF.js";
|
|
14
|
+
//#region node_modules/@babylonjs/core/Lights/LTC/ltcTextureTool.js
|
|
15
|
+
async function _() {
|
|
16
|
+
let e = new Uint16Array(4096 * 4), n = new Uint16Array(4096 * 4), r = await t.LoadFileAsync(t.GetAssetUrl("https://assets.babylonjs.com/core/areaLights/areaLightsLTC.bin")), i = new Uint16Array(r), a = i.length / 8;
|
|
17
|
+
for (let t = 0; t < a; t++) e[t * 4] = i[t * 8], e[t * 4 + 1] = i[t * 8 + 1], e[t * 4 + 2] = i[t * 8 + 2], e[t * 4 + 3] = i[t * 8 + 3], n[t * 4] = i[t * 8 + 4], n[t * 4 + 1] = i[t * 8 + 5], n[t * 4 + 2] = i[t * 8 + 6], n[t * 4 + 3] = i[t * 8 + 7];
|
|
18
|
+
return [e, n];
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region node_modules/@babylonjs/core/Lights/areaLight.js
|
|
22
|
+
function v(t) {
|
|
23
|
+
let n = t.useDelayedTextureLoading;
|
|
24
|
+
t.useDelayedTextureLoading = !1;
|
|
25
|
+
let r = t._blockEntityCollection;
|
|
26
|
+
t._blockEntityCollection = !1, t._ltcTextures = {
|
|
27
|
+
LTC1: m.CreateRGBATexture(null, 64, 64, t.getEngine(), !1, !1, 2, 2, 0, !1, !0),
|
|
28
|
+
LTC2: m.CreateRGBATexture(null, 64, 64, t.getEngine(), !1, !1, 2, 2, 0, !1, !0)
|
|
29
|
+
}, t._blockEntityCollection = r, t._ltcTextures.LTC1.wrapU = l.CLAMP_ADDRESSMODE, t._ltcTextures.LTC1.wrapV = l.CLAMP_ADDRESSMODE, t._ltcTextures.LTC2.wrapU = l.CLAMP_ADDRESSMODE, t._ltcTextures.LTC2.wrapV = l.CLAMP_ADDRESSMODE, t.useDelayedTextureLoading = n, _().then((e) => {
|
|
30
|
+
t._ltcTextures && ((t._ltcTextures?.LTC1).update(e[0]), (t._ltcTextures?.LTC2).update(e[1]), t.onDisposeObservable.addOnce(() => {
|
|
31
|
+
t._ltcTextures?.LTC1.dispose(), t._ltcTextures?.LTC2.dispose();
|
|
32
|
+
}));
|
|
33
|
+
}).catch((t) => {
|
|
34
|
+
e.Error(`Area Light fail to get LTC textures data. Error: ${t}`);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
var y = class extends p {
|
|
38
|
+
constructor(e, t, n, r) {
|
|
39
|
+
super(e, n, r), this.position = t, this._scene._ltcTextures || v(this._scene);
|
|
40
|
+
}
|
|
41
|
+
transferTexturesToEffect(e, t) {
|
|
42
|
+
return this._scene._ltcTextures && (e.setTexture("areaLightsLTC1Sampler", this._scene._ltcTextures.LTC1), e.setTexture("areaLightsLTC2Sampler", this._scene._ltcTextures.LTC2)), this;
|
|
43
|
+
}
|
|
44
|
+
prepareLightSpecificDefines(e, t) {
|
|
45
|
+
e["AREALIGHT" + t] = !0, e.AREALIGHTUSED = !0;
|
|
46
|
+
}
|
|
47
|
+
_isReady() {
|
|
48
|
+
return this._scene._ltcTextures ? this._scene._ltcTextures.LTC1.isReady() && this._scene._ltcTextures.LTC2.isReady() : !1;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region node_modules/@babylonjs/core/Lights/rectAreaLight.js
|
|
53
|
+
u.AddNodeConstructor("Light_Type_4", (e, t) => () => new b(e, r.Zero(), 1, 1, t));
|
|
54
|
+
var b = class e extends y {
|
|
55
|
+
get emissionTexture() {
|
|
56
|
+
return this._emissionTextureTexture;
|
|
57
|
+
}
|
|
58
|
+
set emissionTexture(t) {
|
|
59
|
+
this._emissionTextureTexture !== t && (this._emissionTextureTexture = t, this._emissionTextureTexture && (this._emissionTextureTexture.wrapU = 0, this._emissionTextureTexture.wrapV = 0), this._emissionTextureTexture && e._IsTexture(this._emissionTextureTexture) && this._emissionTextureTexture.onLoadObservable.addOnce(() => {
|
|
60
|
+
this._markMeshesAsLightDirty();
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
get width() {
|
|
64
|
+
return this._width.x;
|
|
65
|
+
}
|
|
66
|
+
set width(e) {
|
|
67
|
+
this._width.x = e;
|
|
68
|
+
}
|
|
69
|
+
get height() {
|
|
70
|
+
return this._height.y;
|
|
71
|
+
}
|
|
72
|
+
set height(e) {
|
|
73
|
+
this._height.y = e;
|
|
74
|
+
}
|
|
75
|
+
constructor(e, t, n, i, a, o) {
|
|
76
|
+
super(e, t, a, o), this._emissionTextureTexture = null, this._width = new r(n, 0, 0), this._height = new r(0, i, 0), this._pointTransformedPosition = r.Zero(), this._pointTransformedWidth = r.Zero(), this._pointTransformedHeight = r.Zero();
|
|
77
|
+
}
|
|
78
|
+
getClassName() {
|
|
79
|
+
return "RectAreaLight";
|
|
80
|
+
}
|
|
81
|
+
getTypeID() {
|
|
82
|
+
return p.LIGHTTYPEID_RECT_AREALIGHT;
|
|
83
|
+
}
|
|
84
|
+
_buildUniformLayout() {
|
|
85
|
+
this._uniformBuffer.addUniform("vLightData", 4), this._uniformBuffer.addUniform("vLightDiffuse", 4), this._uniformBuffer.addUniform("vLightSpecular", 4), this._uniformBuffer.addUniform("vLightWidth", 4), this._uniformBuffer.addUniform("vLightHeight", 4), this._uniformBuffer.addUniform("shadowsInfo", 3), this._uniformBuffer.addUniform("depthValues", 2), this._uniformBuffer.create();
|
|
86
|
+
}
|
|
87
|
+
_computeTransformedInformation() {
|
|
88
|
+
return this.parent && this.parent.getWorldMatrix ? (r.TransformCoordinatesToRef(this.position, this.parent.getWorldMatrix(), this._pointTransformedPosition), r.TransformNormalToRef(this._width, this.parent.getWorldMatrix(), this._pointTransformedWidth), r.TransformNormalToRef(this._height, this.parent.getWorldMatrix(), this._pointTransformedHeight), !0) : !1;
|
|
89
|
+
}
|
|
90
|
+
static _IsTexture(e) {
|
|
91
|
+
return e.onLoadObservable !== void 0;
|
|
92
|
+
}
|
|
93
|
+
transferToEffect(e, t) {
|
|
94
|
+
let n = this._scene.floatingOriginOffset;
|
|
95
|
+
return this._computeTransformedInformation() ? (this._uniformBuffer.updateFloat4("vLightData", this._pointTransformedPosition.x - n.x, this._pointTransformedPosition.y - n.y, this._pointTransformedPosition.z - n.z, 0, t), this._uniformBuffer.updateFloat4("vLightWidth", this._pointTransformedWidth.x / 2, this._pointTransformedWidth.y / 2, this._pointTransformedWidth.z / 2, 0, t), this._uniformBuffer.updateFloat4("vLightHeight", this._pointTransformedHeight.x / 2, this._pointTransformedHeight.y / 2, this._pointTransformedHeight.z / 2, 0, t)) : (this._uniformBuffer.updateFloat4("vLightData", this.position.x - n.x, this.position.y - n.y, this.position.z - n.z, 0, t), this._uniformBuffer.updateFloat4("vLightWidth", this._width.x / 2, this._width.y / 2, this._width.z / 2, 0, t), this._uniformBuffer.updateFloat4("vLightHeight", this._height.x / 2, this._height.y / 2, this._height.z / 2, 0, t)), this;
|
|
96
|
+
}
|
|
97
|
+
transferTexturesToEffect(e, t) {
|
|
98
|
+
return super.transferTexturesToEffect(e, t), this._emissionTextureTexture && this._emissionTextureTexture.isReady() && e.setTexture("rectAreaLightEmissionTexture" + t, this._emissionTextureTexture), this;
|
|
99
|
+
}
|
|
100
|
+
transferToNodeMaterialEffect(e, t) {
|
|
101
|
+
let n = this._scene.floatingOriginOffset;
|
|
102
|
+
return this._computeTransformedInformation() ? e.setFloat3(t, this._pointTransformedPosition.x - n.x, this._pointTransformedPosition.y - n.y, this._pointTransformedPosition.z - n.z) : e.setFloat3(t, this.position.x - n.x, this.position.y - n.y, this.position.z - n.z), this;
|
|
103
|
+
}
|
|
104
|
+
prepareLightSpecificDefines(e, t) {
|
|
105
|
+
super.prepareLightSpecificDefines(e, t), e["RECTAREALIGHTEMISSIONTEXTURE" + t] = !!(this._emissionTextureTexture && this._emissionTextureTexture.isReady());
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
a([o()], b.prototype, "width", null), a([o()], b.prototype, "height", null), n("BABYLON.RectAreaLight", b);
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.js
|
|
111
|
+
var x = "EXT_lights_area", S = class {
|
|
112
|
+
constructor(e) {
|
|
113
|
+
this.name = x, this._loader = e, this.enabled = this._loader.isExtensionUsed(x);
|
|
114
|
+
}
|
|
115
|
+
dispose() {
|
|
116
|
+
this._loader = null, delete this._lights;
|
|
117
|
+
}
|
|
118
|
+
onLoading() {
|
|
119
|
+
let e = this._loader.gltf.extensions;
|
|
120
|
+
if (e && e[this.name]) {
|
|
121
|
+
let t = e[this.name];
|
|
122
|
+
this._lights = t.lights, h.Assign(this._lights);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
loadNodeAsync(e, t, n) {
|
|
126
|
+
return g.LoadExtensionAsync(e, t, this.name, async (a, o) => (this._loader._allMaterialsDirtyRequired = !0, await this._loader.loadNodeAsync(e, t, (e) => {
|
|
127
|
+
let t, l = h.Get(a, this._lights, o.light), u = l.name || e.name;
|
|
128
|
+
this._loader.babylonScene._blockEntityCollection = !!this._loader._assetContainer;
|
|
129
|
+
let d = l.size === void 0 ? 1 : l.size;
|
|
130
|
+
switch (l.type) {
|
|
131
|
+
case "rect": {
|
|
132
|
+
let e = l.rect?.aspect === void 0 ? d : l.rect.aspect * d, n = d;
|
|
133
|
+
t = new b(u, r.Zero(), e, n, this._loader.babylonScene);
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
case "disk": {
|
|
137
|
+
let e = Math.sqrt(d * d * .25 * Math.PI);
|
|
138
|
+
t = new b(u, r.Zero(), e, e, this._loader.babylonScene);
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
default: throw this._loader.babylonScene._blockEntityCollection = !1, Error(`${a}: Invalid area light type (${l.type})`);
|
|
142
|
+
}
|
|
143
|
+
t._parentContainer = this._loader._assetContainer, this._loader.babylonScene._blockEntityCollection = !1, l._babylonLight = t, t.falloffType = p.FALLOFF_GLTF, t.diffuse = l.color ? s.FromArray(l.color) : s.White(), t.intensity = l.intensity == null ? 1 : l.intensity;
|
|
144
|
+
let f = new c(`${u}_orientation`, this._loader.babylonScene);
|
|
145
|
+
f.rotationQuaternion = i.RotationAxis(r.Up(), Math.PI), f.parent = e, t.parent = f, this._loader._babylonLights.push(t), g.AddPointerMetadata(t, a), n(e);
|
|
146
|
+
})));
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
d(x), f(x, !0, (e) => new S(e));
|
|
150
|
+
//#endregion
|
|
151
|
+
export { S as EXT_lights_area };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { a as e } from "./math.vector-Bbyh9hc3.js";
|
|
2
|
+
import { t } from "./math.color-HuJokdxD.js";
|
|
3
|
+
import { t as n } from "./texture-5pV5xPGB.js";
|
|
4
|
+
import { r, t as i } from "./glTFLoaderExtensionRegistry-BrcdADCj.js";
|
|
5
|
+
import { t as a } from "./light-qglDZYT1.js";
|
|
6
|
+
import { a as o } from "./objectModelMapping-BgQ-ovIk.js";
|
|
7
|
+
import { ArrayItem as s, GLTFLoader as c } from "./glTFLoader-DBsVDPMF.js";
|
|
8
|
+
//#region node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.js
|
|
9
|
+
var l = "EXT_lights_ies", u = class {
|
|
10
|
+
constructor(e) {
|
|
11
|
+
this.name = l, this._loader = e, this.enabled = this._loader.isExtensionUsed(l);
|
|
12
|
+
}
|
|
13
|
+
dispose() {
|
|
14
|
+
this._loader = null, delete this._lights;
|
|
15
|
+
}
|
|
16
|
+
onLoading() {
|
|
17
|
+
let e = this._loader.gltf.extensions;
|
|
18
|
+
if (e && e[this.name]) {
|
|
19
|
+
let t = e[this.name];
|
|
20
|
+
this._lights = t.lights, s.Assign(this._lights);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
loadNodeAsync(r, i, l) {
|
|
24
|
+
return c.LoadExtensionAsync(r, i, this.name, async (u, d) => {
|
|
25
|
+
this._loader._allMaterialsDirtyRequired = !0;
|
|
26
|
+
let f, p, m = await this._loader.loadNodeAsync(r, i, (n) => {
|
|
27
|
+
p = s.Get(u, this._lights, d.light);
|
|
28
|
+
let r = p.name || n.name;
|
|
29
|
+
this._loader.babylonScene._blockEntityCollection = !!this._loader._assetContainer, f = new o(r, e.Zero(), e.Backward(), 0, 1, this._loader.babylonScene), f.angle = Math.PI / 2, f.innerAngle = 0, f._parentContainer = this._loader._assetContainer, this._loader.babylonScene._blockEntityCollection = !1, p._babylonLight = f, f.falloffType = a.FALLOFF_GLTF, f.diffuse = d.color ? t.FromArray(d.color) : t.White(), f.intensity = d.multiplier || 1, f.range = Number.MAX_VALUE, f.parent = n, this._loader._babylonLights.push(f), c.AddPointerMetadata(f, u), l(n);
|
|
30
|
+
}), h;
|
|
31
|
+
if (p.uri) h = await this._loader.loadUriAsync(r, p, p.uri);
|
|
32
|
+
else {
|
|
33
|
+
let e = s.Get(`${r}/bufferView`, this._loader.gltf.bufferViews, p.bufferView);
|
|
34
|
+
h = await this._loader.loadBufferViewAsync(`/bufferViews/${e.index}`, e);
|
|
35
|
+
}
|
|
36
|
+
return f.iesProfileTexture = new n(name + "_iesProfile", this._loader.babylonScene, !0, !1, void 0, null, null, h, !0, void 0, void 0, void 0, void 0, ".ies"), m;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
r(l), i(l, !0, (e) => new u(e));
|
|
41
|
+
//#endregion
|
|
42
|
+
export { u as EXT_lights_ies };
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { t as e } from "./observable-CfpCDzrN.js";
|
|
2
|
+
import { n as t } from "./tools-hJEwvocd.js";
|
|
3
|
+
import { n, t as r } from "./typeStore-CSjrT3Od.js";
|
|
4
|
+
import { n as i } from "./math.size-C4V1YqcV.js";
|
|
5
|
+
import { a, n as o, r as s, t as c } from "./math.vector-Bbyh9hc3.js";
|
|
6
|
+
import { _ as l, h as u, i as d, u as f } from "./decorators-pjJPuQ9O.js";
|
|
7
|
+
import { r as p, t as m } from "./texture-5pV5xPGB.js";
|
|
8
|
+
import { n as h, t as g } from "./sphericalPolynomial-DcDQFxce.js";
|
|
9
|
+
import { r as _, t as v } from "./glTFLoaderExtensionRegistry-BrcdADCj.js";
|
|
10
|
+
import "./abstractEngine.cubeTexture-D6ftbd2l.js";
|
|
11
|
+
import { i as y } from "./environmentTextureTools-DiBrdx38.js";
|
|
12
|
+
import { ArrayItem as b, GLTFLoader as x } from "./glTFLoader-DBsVDPMF.js";
|
|
13
|
+
//#region node_modules/@babylonjs/core/Materials/Textures/cubeTexture.js
|
|
14
|
+
var S = .8, C = class n extends p {
|
|
15
|
+
set boundingBoxSize(e) {
|
|
16
|
+
if (this._boundingBoxSize && this._boundingBoxSize.equals(e)) return;
|
|
17
|
+
this._boundingBoxSize = e;
|
|
18
|
+
let t = this.getScene();
|
|
19
|
+
t && t.markAllMaterialsAsDirty(1);
|
|
20
|
+
}
|
|
21
|
+
get boundingBoxSize() {
|
|
22
|
+
return this._boundingBoxSize;
|
|
23
|
+
}
|
|
24
|
+
set rotationY(e) {
|
|
25
|
+
this._rotationY = e, this.setReflectionTextureMatrix(c.RotationY(this._rotationY));
|
|
26
|
+
}
|
|
27
|
+
get rotationY() {
|
|
28
|
+
return this._rotationY;
|
|
29
|
+
}
|
|
30
|
+
get noMipmap() {
|
|
31
|
+
return this._noMipmap;
|
|
32
|
+
}
|
|
33
|
+
get forcedExtension() {
|
|
34
|
+
return this._forcedExtension;
|
|
35
|
+
}
|
|
36
|
+
static CreateFromImages(e, t, r) {
|
|
37
|
+
let i = "";
|
|
38
|
+
for (let t of e) i += t;
|
|
39
|
+
return new n(i, t, null, r, e);
|
|
40
|
+
}
|
|
41
|
+
static CreateFromPrefilteredData(e, t, r = null, i = !0) {
|
|
42
|
+
let a = t.useDelayedTextureLoading;
|
|
43
|
+
t.useDelayedTextureLoading = !1;
|
|
44
|
+
let o = new n(e, t, null, !1, null, null, null, void 0, !0, r, i);
|
|
45
|
+
return t.useDelayedTextureLoading = a, o;
|
|
46
|
+
}
|
|
47
|
+
constructor(t, n, r = null, i = !1, o = null, s = null, l = null, u = 5, d = !1, f = null, p = !1, h = S, g = 0, _, v) {
|
|
48
|
+
super(n), this.onLoadObservable = new e(), this.boundingBoxPosition = a.Zero(), this._rotationY = 0, this._files = null, this._forcedExtension = null, this._extensions = null, this._textureMatrixRefraction = new c(), this._buffer = null, this.name = t, this.url = t, this._noMipmap = i, this.hasAlpha = !1, this.isCube = !0, this._textureMatrix = c.Identity(), this.coordinatesMode = m.CUBIC_MODE;
|
|
49
|
+
let y, b = null;
|
|
50
|
+
r !== null && !Array.isArray(r) ? (y = r.extensions ?? null, this._noMipmap = r.noMipmap ?? !1, o = r.files ?? null, b = r.buffer ?? null, this._format = r.format ?? 5, d = r.prefiltered ?? !1, f = r.forcedExtension ?? null, this._createPolynomials = r.createPolynomials ?? !1, this._lodScale = r.lodScale ?? S, this._lodOffset = r.lodOffset ?? 0, this._loaderOptions = r.loaderOptions, this._useSRGBBuffer = r.useSRGBBuffer, this._sphericalPolynomialTargetSize = r.sphericalPolynomialTargetSize ?? 0, s = r.onLoad ?? null, l = r.onError ?? null) : (this._noMipmap = i, this._format = u, this._createPolynomials = p, y = r, this._loaderOptions = _, this._useSRGBBuffer = v, this._lodScale = h, this._lodOffset = g), !(!t && !o) && this.updateURL(t, f, s, d, l, y, this.getScene()?.useDelayedTextureLoading, o, b);
|
|
51
|
+
}
|
|
52
|
+
getClassName() {
|
|
53
|
+
return "CubeTexture";
|
|
54
|
+
}
|
|
55
|
+
updateURL(e, t = null, n = null, r = !1, i = null, a = null, o = !1, s = null, c = null) {
|
|
56
|
+
(!this.name || this.name.startsWith("data:")) && (this.name = e), this.url = e, t && (this._forcedExtension = t);
|
|
57
|
+
let l = e.lastIndexOf("."), u = t || (l > -1 ? e.substring(l).toLowerCase() : ""), d = u.indexOf(".dds") === 0, f = u.indexOf(".env") === 0, p = u.indexOf(".basis") === 0;
|
|
58
|
+
if (f ? (this.gammaSpace = !1, this._prefiltered = !1, this.anisotropicFilteringLevel = 1) : (this._prefiltered = r, r && (this.gammaSpace = !1, this.anisotropicFilteringLevel = 1)), s) this._files = s;
|
|
59
|
+
else if (!p && !f && !d && !a && (a = [
|
|
60
|
+
"_px.jpg",
|
|
61
|
+
"_py.jpg",
|
|
62
|
+
"_pz.jpg",
|
|
63
|
+
"_nx.jpg",
|
|
64
|
+
"_ny.jpg",
|
|
65
|
+
"_nz.jpg"
|
|
66
|
+
]), this._files = this._files || [], this._files.length = 0, a) {
|
|
67
|
+
for (let t = 0; t < a.length; t++) this._files.push(e + a[t]);
|
|
68
|
+
this._extensions = a;
|
|
69
|
+
}
|
|
70
|
+
this._buffer = c, o ? (this.delayLoadState = 4, this._delayedOnLoad = n, this._delayedOnError = i) : this._loadTexture(n, i);
|
|
71
|
+
}
|
|
72
|
+
delayLoad(e) {
|
|
73
|
+
this.delayLoadState === 4 && (e && (this._forcedExtension = e), this.delayLoadState = 1, this._loadTexture(this._delayedOnLoad, this._delayedOnError));
|
|
74
|
+
}
|
|
75
|
+
getReflectionTextureMatrix() {
|
|
76
|
+
return this._textureMatrix;
|
|
77
|
+
}
|
|
78
|
+
setReflectionTextureMatrix(e) {
|
|
79
|
+
if (e.updateFlag === this._textureMatrix.updateFlag || (e.isIdentity() !== this._textureMatrix.isIdentity() && this.getScene()?.markAllMaterialsAsDirty(1, (e) => e.getActiveTextures().indexOf(this) !== -1), this._textureMatrix = e, !this.getScene()?.useRightHandedSystem)) return;
|
|
80
|
+
let t = s.Vector3[0], n = s.Quaternion[0], r = s.Vector3[1];
|
|
81
|
+
this._textureMatrix.decompose(t, n, r), n.z *= -1, n.w *= -1, c.ComposeToRef(t, n, r, this._textureMatrixRefraction);
|
|
82
|
+
}
|
|
83
|
+
getRefractionTextureMatrix() {
|
|
84
|
+
return this.getScene()?.useRightHandedSystem ? this._textureMatrixRefraction : this._textureMatrix;
|
|
85
|
+
}
|
|
86
|
+
_loadTexture(e = null, n = null) {
|
|
87
|
+
let r = this.getScene(), i = this._texture;
|
|
88
|
+
this._texture = this._getFromCache(this.url, this._noMipmap, void 0, void 0, this._useSRGBBuffer, this.isCube);
|
|
89
|
+
let a = () => {
|
|
90
|
+
this.onLoadObservable.notifyObservers(this), i && (i.dispose(), this.getScene()?.markAllMaterialsAsDirty(1)), e && e();
|
|
91
|
+
}, o = (e, t) => {
|
|
92
|
+
this._loadingError = !0, this._errorObject = {
|
|
93
|
+
message: e,
|
|
94
|
+
exception: t
|
|
95
|
+
}, n && n(e, t), m.OnTextureLoadErrorObservable.notifyObservers(this);
|
|
96
|
+
};
|
|
97
|
+
this._texture ? this._texture.isReady ? t.SetImmediate(() => a()) : this._texture.onLoadedObservable.add(() => a()) : (this._prefiltered ? this._texture = this._getEngine().createPrefilteredCubeTexture(this.url, r, this._lodScale, this._lodOffset, e, o, this._format, this._forcedExtension, this._createPolynomials) : this._texture = this._getEngine().createCubeTexture(this.url, r, this._files, this._noMipmap, e, o, this._format, this._forcedExtension, !1, this._lodScale, this._lodOffset, null, this._loaderOptions, !!this._useSRGBBuffer, this._buffer), this._texture?.onLoadedObservable.add(() => this.onLoadObservable.notifyObservers(this)));
|
|
98
|
+
}
|
|
99
|
+
static Parse(e, t, o) {
|
|
100
|
+
let s = i.Parse(() => {
|
|
101
|
+
let r = !1;
|
|
102
|
+
return e.prefiltered && (r = e.prefiltered), new n(o + (e.url ?? e.name), t, e.extensions, !1, e.files || null, null, null, void 0, r, e.forcedExtension);
|
|
103
|
+
}, e, t);
|
|
104
|
+
if (e.boundingBoxPosition && (s.boundingBoxPosition = a.FromArray(e.boundingBoxPosition)), e.boundingBoxSize && (s.boundingBoxSize = a.FromArray(e.boundingBoxSize)), e.animations) for (let t = 0; t < e.animations.length; t++) {
|
|
105
|
+
let n = e.animations[t], i = r("BABYLON.Animation");
|
|
106
|
+
i && s.animations.push(i.Parse(n));
|
|
107
|
+
}
|
|
108
|
+
return s;
|
|
109
|
+
}
|
|
110
|
+
clone() {
|
|
111
|
+
let e = 0, t = this.irradianceTexture, r = i.Clone(() => {
|
|
112
|
+
let t = new n(this.url, this.getScene() || this._getEngine(), this._extensions, this._noMipmap, this._files);
|
|
113
|
+
return e = t.uniqueId, t;
|
|
114
|
+
}, this);
|
|
115
|
+
return r.uniqueId = e, t && !this.irradianceTexture && (this.irradianceTexture = t), r;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
l([d()], C.prototype, "url", void 0), l([u()], C.prototype, "boundingBoxPosition", void 0), l([u()], C.prototype, "boundingBoxSize", null), l([d("rotationY")], C.prototype, "rotationY", null), l([d("files")], C.prototype, "_files", void 0), l([d("forcedExtension")], C.prototype, "_forcedExtension", void 0), l([d("extensions")], C.prototype, "_extensions", void 0), l([f("textureMatrix")], C.prototype, "_textureMatrix", void 0), l([f("textureMatrixRefraction")], C.prototype, "_textureMatrixRefraction", void 0), m._CubeTextureParser = C.Parse, n("BABYLON.CubeTexture", C);
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region node_modules/@babylonjs/core/Materials/Textures/rawCubeTexture.js
|
|
121
|
+
var w = class e extends C {
|
|
122
|
+
constructor(e, t, n, r = 5, i = 0, a = !1, o = !1, s = 3, c = null) {
|
|
123
|
+
super("", e), this._texture = e.getEngine().createRawCubeTexture(t, n, r, i, a, o, s, c);
|
|
124
|
+
}
|
|
125
|
+
update(e, t, n, r, i = null) {
|
|
126
|
+
this._texture.getEngine().updateRawCubeTexture(this._texture, e, t, n, r, i);
|
|
127
|
+
}
|
|
128
|
+
updateRGBDAsync(e, t = null, n = .8, r = 0) {
|
|
129
|
+
return y(this._texture, e, t, n, r).then(() => {});
|
|
130
|
+
}
|
|
131
|
+
clone() {
|
|
132
|
+
return i.Clone(() => {
|
|
133
|
+
let t = this.getScene(), n = this._texture, r = new e(t, n._bufferViewArray, n.width, n.format, n.type, n.generateMipMaps, n.invertY, n.samplingMode, n._compression);
|
|
134
|
+
return n.source === 13 && r.updateRGBDAsync(n._bufferViewArrayArray, n._sphericalPolynomial, n._lodGenerationScale, n._lodGenerationOffset), r;
|
|
135
|
+
}, this);
|
|
136
|
+
}
|
|
137
|
+
}, T = "EXT_lights_image_based", E = class {
|
|
138
|
+
constructor(e) {
|
|
139
|
+
this.name = T, this._loader = e, this.enabled = this._loader.isExtensionUsed(T);
|
|
140
|
+
}
|
|
141
|
+
dispose() {
|
|
142
|
+
this._loader = null, delete this._lights;
|
|
143
|
+
}
|
|
144
|
+
onLoading() {
|
|
145
|
+
let e = this._loader.gltf.extensions;
|
|
146
|
+
if (e && e[this.name]) {
|
|
147
|
+
let t = e[this.name];
|
|
148
|
+
this._lights = t.lights;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
loadSceneAsync(e, t) {
|
|
152
|
+
return x.LoadExtensionAsync(e, t, this.name, async (n, r) => {
|
|
153
|
+
this._loader._allMaterialsDirtyRequired = !0;
|
|
154
|
+
let i = [];
|
|
155
|
+
i.push(this._loader.loadSceneAsync(e, t)), this._loader.logOpen(`${n}`);
|
|
156
|
+
let a = b.Get(`${n}/light`, this._lights, r.light);
|
|
157
|
+
return i.push(this._loadLightAsync(`/extensions/${this.name}/lights/${r.light}`, a).then((e) => {
|
|
158
|
+
this._loader.babylonScene.environmentTexture = e;
|
|
159
|
+
})), this._loader.logClose(), await Promise.all(i).then(() => {});
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
_loadLightAsync(e, t) {
|
|
163
|
+
if (!t._loaded) {
|
|
164
|
+
let n = [];
|
|
165
|
+
this._loader.logOpen(`${e}`);
|
|
166
|
+
let r = Array(t.specularImages.length);
|
|
167
|
+
for (let i = 0; i < t.specularImages.length; i++) {
|
|
168
|
+
let a = t.specularImages[i];
|
|
169
|
+
r[i] = Array(a.length);
|
|
170
|
+
for (let t = 0; t < a.length; t++) {
|
|
171
|
+
let o = `${e}/specularImages/${i}/${t}`;
|
|
172
|
+
this._loader.logOpen(`${o}`);
|
|
173
|
+
let s = a[t], c = b.Get(o, this._loader.gltf.images, s);
|
|
174
|
+
n.push(this._loader.loadImageAsync(`/images/${s}`, c).then((e) => {
|
|
175
|
+
r[i][t] = e;
|
|
176
|
+
})), this._loader.logClose();
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
this._loader.logClose(), t._loaded = Promise.all(n).then(async () => {
|
|
180
|
+
let n = new w(this._loader.babylonScene, null, t.specularImageSize);
|
|
181
|
+
if (n.name = t.name || "environment", t._babylonTexture = n, t.intensity != null && (n.level = t.intensity), t.rotation) {
|
|
182
|
+
let e = o.FromArray(t.rotation);
|
|
183
|
+
this._loader.babylonScene.useRightHandedSystem || (e = o.Inverse(e)), c.FromQuaternionToRef(e, n.getReflectionTextureMatrix());
|
|
184
|
+
}
|
|
185
|
+
if (!t.irradianceCoefficients) throw Error(`${e}: Irradiance coefficients are missing`);
|
|
186
|
+
let i = g.FromArray(t.irradianceCoefficients);
|
|
187
|
+
i.scaleInPlace(t.intensity), i.convertIrradianceToLambertianRadiance();
|
|
188
|
+
let a = h.FromHarmonics(i), s = (r.length - 1) / Math.log2(t.specularImageSize);
|
|
189
|
+
return await n.updateRGBDAsync(r, a, s);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
return t._loaded.then(() => t._babylonTexture);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
_(T), v(T, !0, (e) => new E(e));
|
|
196
|
+
//#endregion
|
|
197
|
+
export { E as EXT_lights_image_based };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { t as e } from "./logger-B7TbbsLc.js";
|
|
2
|
+
import { a as t, n, r, t as i } from "./math.vector-Bbyh9hc3.js";
|
|
3
|
+
import { r as a, t as o } from "./glTFLoaderExtensionRegistry-BrcdADCj.js";
|
|
4
|
+
import "./thinInstanceMesh-VaMp8Yyd.js";
|
|
5
|
+
import { ArrayItem as s, GLTFLoader as c } from "./glTFLoader-DBsVDPMF.js";
|
|
6
|
+
//#region node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js
|
|
7
|
+
var l = "EXT_mesh_gpu_instancing", u = class {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
this.name = l, this._loader = e, this.enabled = this._loader.isExtensionUsed(l);
|
|
10
|
+
}
|
|
11
|
+
dispose() {
|
|
12
|
+
this._loader = null;
|
|
13
|
+
}
|
|
14
|
+
loadNodeAsync(a, o, l) {
|
|
15
|
+
return c.LoadExtensionAsync(a, o, this.name, async (a, c) => {
|
|
16
|
+
this._loader._disableInstancedMesh++;
|
|
17
|
+
let u = this._loader.loadNodeAsync(`/nodes/${o.index}`, o, l);
|
|
18
|
+
if (this._loader._disableInstancedMesh--, !o._primitiveBabylonMeshes) return await u;
|
|
19
|
+
let d = [], f = 0, p = (e) => {
|
|
20
|
+
if (c.attributes[e] == null) {
|
|
21
|
+
d.push(Promise.resolve(null));
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
let t = s.Get(`${a}/attributes/${e}`, this._loader.gltf.accessors, c.attributes[e]);
|
|
25
|
+
if (d.push(this._loader._loadFloatAccessorAsync(`/accessors/${t.bufferView}`, t)), f === 0) f = t.count;
|
|
26
|
+
else if (f !== t.count) throw Error(`${a}/attributes: Instance buffer accessors do not have the same count.`);
|
|
27
|
+
};
|
|
28
|
+
return p("TRANSLATION"), p("ROTATION"), p("SCALE"), p("_COLOR_0"), await u.then(async (a) => {
|
|
29
|
+
let [s, c, l, u] = await Promise.all(d), p = new Float32Array(f * 16);
|
|
30
|
+
r.Vector3[0].copyFromFloats(0, 0, 0), r.Quaternion[0].copyFromFloats(0, 0, 0, 1), r.Vector3[1].copyFromFloats(1, 1, 1);
|
|
31
|
+
for (let e = 0; e < f; ++e) s && t.FromArrayToRef(s, e * 3, r.Vector3[0]), c && n.FromArrayToRef(c, e * 4, r.Quaternion[0]), l && t.FromArrayToRef(l, e * 3, r.Vector3[1]), i.ComposeToRef(r.Vector3[1], r.Quaternion[0], r.Vector3[0], r.Matrix[0]), r.Matrix[0].copyToArray(p, e * 16);
|
|
32
|
+
for (let t of o._primitiveBabylonMeshes) t.thinInstanceSetBuffer("matrix", p, 16, !0), u && (u.length === f * 3 ? t.thinInstanceSetBuffer("color", u, 3, !0) : u.length === f * 4 ? t.thinInstanceSetBuffer("color", u, 4, !0) : e.Warn("Unexpected size of _COLOR_0 attribute for mesh " + t.name));
|
|
33
|
+
return a;
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
a(l), o(l, !0, (e) => new u(e));
|
|
39
|
+
//#endregion
|
|
40
|
+
export { u as EXT_mesh_gpu_instancing };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { n as e } from "./tools-hJEwvocd.js";
|
|
2
|
+
import { r as t, t as n } from "./glTFLoaderExtensionRegistry-BrcdADCj.js";
|
|
3
|
+
import { ArrayItem as r, GLTFLoader as i } from "./glTFLoader-DBsVDPMF.js";
|
|
4
|
+
//#region node_modules/@babylonjs/core/Meshes/Compression/meshoptCompression.js
|
|
5
|
+
var a = 0, o = null, s = class t {
|
|
6
|
+
static get Default() {
|
|
7
|
+
return t._Default ||= new t(), t._Default;
|
|
8
|
+
}
|
|
9
|
+
constructor() {
|
|
10
|
+
let n = t.Configuration.decoder;
|
|
11
|
+
this._decoderModulePromise = e.LoadBabylonScriptAsync(n.url).then(() => MeshoptDecoder.ready);
|
|
12
|
+
}
|
|
13
|
+
dispose() {
|
|
14
|
+
delete this._decoderModulePromise;
|
|
15
|
+
}
|
|
16
|
+
async decodeGltfBufferAsync(e, t, n, r, i) {
|
|
17
|
+
await this._decoderModulePromise, a === 0 && (MeshoptDecoder.useWorkers(1), a = 1);
|
|
18
|
+
let s = await MeshoptDecoder.decodeGltfBufferAsync(t, n, e, r, i);
|
|
19
|
+
return o !== null && clearTimeout(o), o = setTimeout(() => {
|
|
20
|
+
MeshoptDecoder.useWorkers(0), a = 0, o = null;
|
|
21
|
+
}, 1e3), s;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
s.Configuration = { decoder: { url: `${e._DefaultCdnUrl}/meshopt_decoder.js` } }, s._Default = null;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.js
|
|
27
|
+
var c = "EXT_meshopt_compression", l = class {
|
|
28
|
+
constructor(e) {
|
|
29
|
+
this.name = c, this.enabled = e.isExtensionUsed(c), this._loader = e;
|
|
30
|
+
}
|
|
31
|
+
dispose() {
|
|
32
|
+
this._loader = null;
|
|
33
|
+
}
|
|
34
|
+
loadBufferViewAsync(e, t) {
|
|
35
|
+
return i.LoadExtensionAsync(e, t, this.name, async (n, i) => {
|
|
36
|
+
let a = t;
|
|
37
|
+
if (a._meshOptData) return await a._meshOptData;
|
|
38
|
+
let o = r.Get(`${e}/buffer`, this._loader.gltf.buffers, i.buffer);
|
|
39
|
+
return a._meshOptData = this._loader.loadBufferAsync(`/buffers/${o.index}`, o, i.byteOffset || 0, i.byteLength).then(async (e) => await s.Default.decodeGltfBufferAsync(e, i.count, i.byteStride, i.mode, i.filter)), await a._meshOptData;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
t(c), n(c, !0, (e) => new l(e));
|
|
44
|
+
//#endregion
|
|
45
|
+
export { l as EXT_meshopt_compression };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as e, t } from "./glTFLoaderExtensionRegistry-BrcdADCj.js";
|
|
2
|
+
import { ArrayItem as n, GLTFLoader as r } from "./glTFLoader-DBsVDPMF.js";
|
|
3
|
+
//#region node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.js
|
|
4
|
+
var i = "EXT_texture_avif", a = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
this.name = i, this._loader = e, this.enabled = e.isExtensionUsed(i);
|
|
7
|
+
}
|
|
8
|
+
dispose() {
|
|
9
|
+
this._loader = null;
|
|
10
|
+
}
|
|
11
|
+
_loadTextureAsync(e, t, i) {
|
|
12
|
+
return r.LoadExtensionAsync(e, t, this.name, async (a, o) => {
|
|
13
|
+
let s = t.sampler == null ? r.DefaultSampler : n.Get(`${e}/sampler`, this._loader.gltf.samplers, t.sampler), c = n.Get(`${a}/source`, this._loader.gltf.images, o.source);
|
|
14
|
+
return await this._loader._createTextureAsync(e, s, c, (e) => {
|
|
15
|
+
i(e);
|
|
16
|
+
}, void 0, !t._textureInfo.nonColorData);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
e(i), t(i, !0, (e) => new a(e));
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as EXT_texture_avif };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as e, t } from "./glTFLoaderExtensionRegistry-BrcdADCj.js";
|
|
2
|
+
import { ArrayItem as n, GLTFLoader as r } from "./glTFLoader-DBsVDPMF.js";
|
|
3
|
+
//#region node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.js
|
|
4
|
+
var i = "EXT_texture_webp", a = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
this.name = i, this._loader = e, this.enabled = e.isExtensionUsed(i);
|
|
7
|
+
}
|
|
8
|
+
dispose() {
|
|
9
|
+
this._loader = null;
|
|
10
|
+
}
|
|
11
|
+
_loadTextureAsync(e, t, i) {
|
|
12
|
+
return r.LoadExtensionAsync(e, t, this.name, async (a, o) => {
|
|
13
|
+
let s = t.sampler == null ? r.DefaultSampler : n.Get(`${e}/sampler`, this._loader.gltf.samplers, t.sampler), c = n.Get(`${a}/source`, this._loader.gltf.images, o.source);
|
|
14
|
+
return await this._loader._createTextureAsync(e, s, c, (e) => {
|
|
15
|
+
i(e);
|
|
16
|
+
}, void 0, !t._textureInfo.nonColorData);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
e(i), t(i, !0, (e) => new a(e));
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as EXT_texture_webp };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { r as e, t } from "./glTFLoaderExtensionRegistry-BrcdADCj.js";
|
|
2
|
+
//#region node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.js
|
|
3
|
+
var n = "ExtrasAsMetadata", r = class {
|
|
4
|
+
_assignExtras(e, t) {
|
|
5
|
+
if (t.extras && Object.keys(t.extras).length > 0) {
|
|
6
|
+
let n = e.metadata = e.metadata || {}, r = n.gltf = n.gltf || {};
|
|
7
|
+
r.extras = t.extras;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
constructor(e) {
|
|
11
|
+
this.name = n, this.enabled = !0, this._loader = e;
|
|
12
|
+
}
|
|
13
|
+
dispose() {
|
|
14
|
+
this._loader = null;
|
|
15
|
+
}
|
|
16
|
+
loadNodeAsync(e, t, n) {
|
|
17
|
+
return this._loader.loadNodeAsync(e, t, (e) => {
|
|
18
|
+
this._assignExtras(e, t), n(e);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
loadCameraAsync(e, t, n) {
|
|
22
|
+
return this._loader.loadCameraAsync(e, t, (e) => {
|
|
23
|
+
this._assignExtras(e, t), n(e);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
createMaterial(e, t, n) {
|
|
27
|
+
let r = this._loader.createMaterial(e, t, n);
|
|
28
|
+
return this._assignExtras(r, t), r;
|
|
29
|
+
}
|
|
30
|
+
loadAnimationAsync(e, t) {
|
|
31
|
+
return this._loader.loadAnimationAsync(e, t).then((e) => (this._assignExtras(e, t), e));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
e(n), t(n, !1, (e) => new r(e));
|
|
35
|
+
//#endregion
|
|
36
|
+
export { r as ExtrasAsMetadata };
|