python-cad-tools 0.1.1__py3-none-any.whl → 0.1.2.dev2__py3-none-any.whl
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.
- python_cad_tools/__main__.py +4 -0
- python_cad_tools/_viewer_static/asset-manifest.json +1 -1
- python_cad_tools/_viewer_static/assets/{animationGroup-Sd34ntWg.js → animationGroup-CjhCwiIi.js} +1 -1
- python_cad_tools/_viewer_static/assets/{bakedVertexAnimation-Cd_pRdrn.js → bakedVertexAnimation-_xBvgBl7.js} +1 -1
- python_cad_tools/_viewer_static/assets/{basisTextureLoader-DWgvS_1G.js → basisTextureLoader-D5LtrhD-.js} +1 -1
- python_cad_tools/_viewer_static/assets/{brdfTextureTools-CWGiG1W2.js → brdfTextureTools-D9U08KSH.js} +2 -2
- python_cad_tools/_viewer_static/assets/{bumpFragment-CWULheF1.js → bumpFragment-BkzgDMwt.js} +1 -1
- python_cad_tools/_viewer_static/assets/{bumpVertex-DqzFZayE.js → bumpVertex-BXtiaDZI.js} +1 -1
- python_cad_tools/_viewer_static/assets/{bumpVertexDeclaration-C5EFyTio.js → bumpVertexDeclaration-CchYDl1F.js} +1 -1
- python_cad_tools/_viewer_static/assets/{clipPlaneFragment-BXRtt4jj.js → clipPlaneFragment-pIdOfJ_5.js} +1 -1
- python_cad_tools/_viewer_static/assets/{clipPlaneVertex-B_VhD1oQ.js → clipPlaneVertex-Kl_G8tpP.js} +1 -1
- python_cad_tools/_viewer_static/assets/{cubemapToSphericalPolynomial-DRpaukza.js → cubemapToSphericalPolynomial-CJ4cRmPh.js} +1 -1
- python_cad_tools/_viewer_static/assets/dds-YsWo1VVF.js +1 -0
- python_cad_tools/_viewer_static/assets/{dds.pure-DtvJsKvY.js → dds.pure-BoNGq59u.js} +1 -1
- python_cad_tools/_viewer_static/assets/{ddsTextureLoader-H78xux1g.js → ddsTextureLoader-D8JRisWC.js} +1 -1
- python_cad_tools/_viewer_static/assets/{default.fragment-oSQ-tWhe.js → default.fragment-D0gXI89M.js} +1 -1
- python_cad_tools/_viewer_static/assets/{default.vertex-DhFjw_Da.js → default.vertex-BdO0XLk6.js} +1 -1
- python_cad_tools/_viewer_static/assets/{defaultUboDeclaration-BMDHNppx.js → defaultUboDeclaration-BJ4b62qj.js} +1 -1
- python_cad_tools/_viewer_static/assets/{dumpTools-BaNZPjUX.js → dumpTools-B7F8Ed3A.js} +2 -2
- python_cad_tools/_viewer_static/assets/{envTextureLoader-V0YnLcIM.js → envTextureLoader-BnvTfKgF.js} +1 -1
- python_cad_tools/_viewer_static/assets/{exrTextureLoader-CjGyIK3x.js → exrTextureLoader-C2D3Wx-p.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphApplyForceBlock-CW5nuobR.js → flowGraphApplyForceBlock-C08kKLog.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphApplyImpulseBlock-LFqYIkhj.js → flowGraphApplyImpulseBlock-GzK2l9nm.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphArrayIndexBlock-BMOHUbBm.js → flowGraphArrayIndexBlock-DkRHIuYC.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphBezierCurveEasingBlock-knmTiuEk.js → flowGraphBezierCurveEasingBlock-Csol8jUn.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphBinaryOperationBlock-DFLuCAKJ.js → flowGraphBinaryOperationBlock-C-xEeg-Z.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphBranchBlock-BJRHMXMo.js → flowGraphBranchBlock-D7bstQqM.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphCachedOperationBlock-Dng-6jE0.js → flowGraphCachedOperationBlock-C0pDPzaF.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphCancelDelayBlock-CgbK3CQZ.js → flowGraphCancelDelayBlock-VwnDZhN9.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphCodeExecutionBlock-8zMtq9tg.js → flowGraphCodeExecutionBlock-C5aa0K7t.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphConditionalDataBlock-BiLr2rkI.js → flowGraphConditionalDataBlock-B4vfaSDi.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphConsoleLogBlock-J1vcCtNP.js → flowGraphConsoleLogBlock-CuLlYu4c.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphConstantBlock-CFb5nuaV.js → flowGraphConstantBlock-DkyD6_YZ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphContextBlock-DAeGVzhC.js → flowGraphContextBlock-IKUbfY32.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphCounterBlock-lZlAQiJd.js → flowGraphCounterBlock-tP_5qAQn.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphDataSwitchBlock-BIzvmbVy.js → flowGraphDataSwitchBlock-DiTgopj3.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphDebounceBlock-DvNuMVwy.js → flowGraphDebounceBlock-FLUJTpdt.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphDebugBlock-Dymd2VEE.js → flowGraphDebugBlock-C0EH9zPP.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphDoNBlock-v68aoNLH.js → flowGraphDoNBlock-DiAdBjnD.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphEasingBlock-CTnGv92q.js → flowGraphEasingBlock-CXlIILZe.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphFlipFlopBlock-DXsO0Chw.js → flowGraphFlipFlopBlock-5XRf4KeD.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphForLoopBlock-CPpe9T75.js → flowGraphForLoopBlock-RitJ6OS_.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphFunctionReferenceBlock-DjDev4Pq.js → flowGraphFunctionReferenceBlock-DvVIlipg.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGLTFDataProvider-GIYCz4AQ.js → flowGraphGLTFDataProvider-BxBUrprf.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetAngularVelocityBlock-BStkOVeL.js → flowGraphGetAngularVelocityBlock-CqBDBjqf.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetAssetBlock-Eiqoivbz.js → flowGraphGetAssetBlock-Dk4qKn1w.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetLinearVelocityBlock-B0cpV5ws.js → flowGraphGetLinearVelocityBlock-DNN6N9mt.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetPhysicsMassPropertiesBlock-B-H64yaI.js → flowGraphGetPhysicsMassPropertiesBlock-CTsHqDvM.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetPropertyBlock-CUyOsPw0.js → flowGraphGetPropertyBlock-CjX3cseU.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetSoundVolumeBlock-C0FjrsUz.js → flowGraphGetSoundVolumeBlock-DzWJtlM9.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetVariableBlock-O4597zBl.js → flowGraphGetVariableBlock-uBq6vXOw.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphIndexOfBlock-E00Z3KXM.js → flowGraphIndexOfBlock-MpANR6P1.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphInterpolationBlock-DnkA9MNH.js → flowGraphInterpolationBlock-BM2_pZfB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphIsKeyPressedBlock-DDfeuAyf.js → flowGraphIsKeyPressedBlock-X1Q2SR0H.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphIsSoundPlayingBlock-DMXg8jdM.js → flowGraphIsSoundPlayingBlock-C_ir8hba.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphJsonPointerParserBlock-OmCorK0y.js → flowGraphJsonPointerParserBlock-I5tJhTaw.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphKeyDownEventBlock-RuVtj6g2.js → flowGraphKeyDownEventBlock-DSmmDXBR.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphKeyUpEventBlock-DO4pAfHi.js → flowGraphKeyUpEventBlock-BDViriRD.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphKeyboardEventBlock-Bx3pAzzh.js → flowGraphKeyboardEventBlock-B7EQjaZe.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphMathBlocks-7W1XYOC8.js → flowGraphMathBlocks-RIndR7Kr.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphMathCombineExtractBlocks-a4f0Kv6e.js → flowGraphMathCombineExtractBlocks-BEMkyBCM.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphMatrixMathBlocks-C5Z-y1Au.js → flowGraphMatrixMathBlocks-BAV1wScN.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphMeshPickEventBlock-D4m-I4CS.js → flowGraphMeshPickEventBlock-CcNT5f0d.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphMultiGateBlock-BISVSMw6.js → flowGraphMultiGateBlock-DSEbX2Mj.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPauseAnimationBlock-BYP2Z-HG.js → flowGraphPauseAnimationBlock-Dfthx2s-.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPauseSoundBlock-Drh1EeW6.js → flowGraphPauseSoundBlock-DSu8v9Kr.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPhysicsCollisionEventBlock-BoziAQ75.js → flowGraphPhysicsCollisionEventBlock-jvE_54c8.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPlayAnimationBlock-Clry-68M.js → flowGraphPlayAnimationBlock-DK8Z5heh.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPlaySoundBlock-LbBVxGBE.js → flowGraphPlaySoundBlock-XiF7wfi1.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPointerDownEventBlock-DIVXCSHh.js → flowGraphPointerDownEventBlock-BOqQHgdZ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPointerMoveEventBlock-BNNOzY2W.js → flowGraphPointerMoveEventBlock-DggBfxkF.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPointerOutEventBlock-B8f2dOFT.js → flowGraphPointerOutEventBlock-DvZyyUF4.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPointerOverEventBlock-CQr8LCee.js → flowGraphPointerOverEventBlock-YLki8WEB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPointerUpEventBlock-DMg_iEHl.js → flowGraphPointerUpEventBlock-D1tqJ9jF.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphReceiveCustomEventBlock-B8GJm9Ai.js → flowGraphReceiveCustomEventBlock-D3VAKTpt.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSceneReadyEventBlock-Dcdb29K2.js → flowGraphSceneReadyEventBlock-Dt8AsNSg.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSceneTickEventBlock-BLE5p4mi.js → flowGraphSceneTickEventBlock-BtuZ_Spn.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSendCustomEventBlock-BMzDItQ5.js → flowGraphSendCustomEventBlock-B8Dzycmf.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSequenceBlock-DRURovjn.js → flowGraphSequenceBlock-CQsb2okn.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetAngularVelocityBlock-Ba8dhkLM.js → flowGraphSetAngularVelocityBlock-C3zOq5X7.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetDelayBlock-CnQR--Gn.js → flowGraphSetDelayBlock-DxyUb-8k.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetLinearVelocityBlock-Dm1r3vkh.js → flowGraphSetLinearVelocityBlock-DeNTJQ42.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetPhysicsMotionTypeBlock-BNtMLimi.js → flowGraphSetPhysicsMotionTypeBlock-i233RoWe.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetPropertyBlock-C-uv2jhP.js → flowGraphSetPropertyBlock-Darrnz2o.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetSoundVolumeBlock-D9LDx3lg.js → flowGraphSetSoundVolumeBlock-KrTTGHr6.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetVariableBlock-DszzRB5X.js → flowGraphSetVariableBlock-8CdS1h8e.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSoundEndedEventBlock-DeTDSudb.js → flowGraphSoundEndedEventBlock-Cuk8JjDG.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphStopAnimationBlock-DWuwoFWr.js → flowGraphStopAnimationBlock-DOsG4sc5.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphStopSoundBlock-DEnj2cQw.js → flowGraphStopSoundBlock-C5IaCPpa.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSwitchBlock-zs8Fp9ky.js → flowGraphSwitchBlock-ClqiypjM.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphThrottleBlock-BYAKUQXd.js → flowGraphThrottleBlock-C7hhfNo2.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphTransformCoordinatesSystemBlock-DYP54m5P.js → flowGraphTransformCoordinatesSystemBlock-BksU6sPJ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphTypeToTypeBlocks-vFwn79bS.js → flowGraphTypeToTypeBlocks-DJi_CBW-.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphUnaryOperationBlock-CaRh4Ef0.js → flowGraphUnaryOperationBlock-U15mYQbJ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphVectorMathBlocks-BEIhMs-A.js → flowGraphVectorMathBlocks-D4QAvgsk.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphWaitAllBlock-DFbELP_j.js → flowGraphWaitAllBlock-UV6LDk1r.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphWhileLoopBlock-C1OKQ-_F.js → flowGraphWhileLoopBlock-DPpNHwZP.js} +1 -1
- python_cad_tools/_viewer_static/assets/{fogFragment-DtDlQBnz.js → fogFragment-pKchdx3M.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting-Cfigjb15.js → gaussianSplatting-DgjcxjKa.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting-DIn8R8oF.js → gaussianSplatting-oRLzV71m.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting.fragment-BxeRJ2k-.js → gaussianSplatting.fragment-BKYuCXf7.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting.fragment-DNDmvRs-.js → gaussianSplatting.fragment-NCxeyHg7.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting.vertex-D92z5jYn.js → gaussianSplatting.vertex-CW0PXB4s.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting.vertex-DSWfFnKQ.js → gaussianSplatting.vertex-zmXoP8p9.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.fragment-qwx5ntqJ.js → gaussianSplattingVoxel.fragment--IDQcS1p.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.fragment-DBQE2gDk.js → gaussianSplattingVoxel.fragment-CgX-XH5m.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.vertex-CP2kd3jU.js → gaussianSplattingVoxel.vertex-DzuuyEGB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.vertex-Dr-fEg_W.js → gaussianSplattingVoxel.vertex-YB1C1Muy.js} +1 -1
- python_cad_tools/_viewer_static/assets/{geometry.fragment-Dph3muZt.js → geometry.fragment-DuBDWlLB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{geometry.fragment-CsJIm2H0.js → geometry.fragment-EEbMy57o.js} +1 -1
- python_cad_tools/_viewer_static/assets/{geometry.vertex-Bm9Wg3Gi.js → geometry.vertex-3cVZEKxJ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{geometry.vertex-BXGMTA_J.js → geometry.vertex-B--XA-QK.js} +1 -1
- python_cad_tools/_viewer_static/assets/{glowBlurPostProcess.fragment-BJSwKIJD.js → glowBlurPostProcess.fragment-UNz8njEJ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{glowMapGeneration.fragment-DcyS1cTF.js → glowMapGeneration.fragment-CsSqgq6c.js} +1 -1
- python_cad_tools/_viewer_static/assets/{glowMapGeneration.vertex-BGq1Fakj.js → glowMapGeneration.vertex-DOMHadFA.js} +1 -1
- python_cad_tools/_viewer_static/assets/{glowMapMerge.fragment-DxcneU_F.js → glowMapMerge.fragment-DXi2v5pz.js} +1 -1
- python_cad_tools/_viewer_static/assets/{glowMapMerge.vertex-DaJJKqMV.js → glowMapMerge.vertex-DgBSWFHP.js} +1 -1
- python_cad_tools/_viewer_static/assets/{harmonicsFunctions-DzJcvNWG.js → harmonicsFunctions-BkifmnNV.js} +1 -1
- python_cad_tools/_viewer_static/assets/{helperFunctions-Cugfp1Fz.js → helperFunctions-Bx8RYYvi.js} +1 -1
- python_cad_tools/_viewer_static/assets/{iesTextureLoader-CO4G0p2M.js → iesTextureLoader-Dj5K0vc1.js} +1 -1
- python_cad_tools/_viewer_static/assets/{index-B2zBEWsq.js → index-JRwY7p9T.js} +18 -18
- python_cad_tools/_viewer_static/assets/{kernelBlur.fragment-BkKbudbW.js → kernelBlur.fragment-B9YDiI_M.js} +1 -1
- python_cad_tools/_viewer_static/assets/{kernelBlur.fragment-B6CTXTxY.js → kernelBlur.fragment-BRdwtDs7.js} +1 -1
- python_cad_tools/_viewer_static/assets/{kernelBlur.vertex-D371zUfT.js → kernelBlur.vertex-A7OpqdrG.js} +1 -1
- python_cad_tools/_viewer_static/assets/{kernelBlur.vertex-BYwFU5IS.js → kernelBlur.vertex-CWlIunB6.js} +1 -1
- python_cad_tools/_viewer_static/assets/{kernelBlurVaryingDeclaration-YS8JpqdO.js → kernelBlurVaryingDeclaration-PE5ICZNw.js} +1 -1
- python_cad_tools/_viewer_static/assets/{kernelBlurVaryingDeclaration-CgBGaCHg.js → kernelBlurVaryingDeclaration-YMenN7Se.js} +1 -1
- python_cad_tools/_viewer_static/assets/{ktxTextureLoader-ncMSJTjl.js → ktxTextureLoader-uG9TUdGM.js} +1 -1
- python_cad_tools/_viewer_static/assets/{lightFragment-skHiFbKB.js → lightFragment-CDLhoaId.js} +1 -1
- python_cad_tools/_viewer_static/assets/{logDepthDeclaration-BR8XRz9F.js → logDepthDeclaration-BOlhc3aa.js} +1 -1
- python_cad_tools/_viewer_static/assets/{logDepthVertex-UKrhEIvg.js → logDepthVertex-BIA9Xrid.js} +1 -1
- python_cad_tools/_viewer_static/assets/{mainUVVaryingDeclaration-BxQWGFcG.js → mainUVVaryingDeclaration-PmIDYGIz.js} +1 -1
- python_cad_tools/_viewer_static/assets/{meshUboDeclaration-BnX046aQ.js → meshUboDeclaration-BfPhZsyr.js} +1 -1
- python_cad_tools/_viewer_static/assets/{oitFragment-CTMCOfNP.js → oitFragment-DpKfMtsk.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbr.fragment-Dv6qTVVi.js → openpbr.fragment-BAOdoy3Z.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbr.fragment-DPJPqi6p.js → openpbr.fragment-BmgNfxS4.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbr.vertex-CHESW3gB.js → openpbr.vertex-BpB-7aXl.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbr.vertex-Bn2wrdGL.js → openpbr.vertex-D-IjPutK.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbrMaterial.pure-BdK7VgO_.js → openpbrMaterial.pure-C6V2SeQx.js} +3 -3
- python_cad_tools/_viewer_static/assets/{openpbrMaterialLoadingAdapter-Bm_AHDUN.js → openpbrMaterialLoadingAdapter-CbcwuEwB.js} +2 -2
- python_cad_tools/_viewer_static/assets/{openpbrTransmissionLayerData-Ba_ly4LE.js → openpbrTransmissionLayerData-1U_DHNWK.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbrTransmissionLayerData-BDa9qEoN.js → openpbrTransmissionLayerData-BClMu_zp.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbrUboDeclaration-DajhikDS.js → openpbrUboDeclaration-DLujw3YH.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbrUboDeclaration-BY2lSH2C.js → openpbrUboDeclaration-piwBvKOi.js} +1 -1
- python_cad_tools/_viewer_static/assets/{packingFunctions-DTwzBRBx.js → packingFunctions-BD5WZtBT.js} +1 -1
- python_cad_tools/_viewer_static/assets/{packingFunctions-BHPwcGG2.js → packingFunctions-D3gaUkUa.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pass.fragment-9oKU4pI3.js → pass.fragment-CzZpaqYk.js} +1 -1
- python_cad_tools/_viewer_static/assets/{passCube.fragment-CpAeiYx1.js → passCube.fragment-Bso78Amo.js} +1 -1
- python_cad_tools/_viewer_static/assets/{passCube.fragment-DHtSWVRF.js → passCube.fragment-DwRJ1H1s.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbr.fragment-cIhMKwLs.js → pbr.fragment-sZ-foSaO.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbr.vertex-BfdONsf2.js → pbr.vertex-PBjkpyNN.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbrBRDFFunctions-B_ppOzPO.js → pbrBRDFFunctions-Dv8-Akv1.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbrDebug-DDdwL5_t.js → pbrDebug-5RaK38tC.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbrIBLFunctions-b1zdpzOP.js → pbrIBLFunctions-D_X-tzpO.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbrMaterial.pure-BZA7yVhu.js → pbrMaterial.pure-RJ6tVczH.js} +2 -2
- python_cad_tools/_viewer_static/assets/{pbrMaterialLoadingAdapter-BRvKRnjl.js → pbrMaterialLoadingAdapter-BqlfZ1xs.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbrUboDeclaration-CMZp25k3.js → pbrUboDeclaration-BqNgF1qB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{postprocess.vertex-DzdUpNbW.js → postprocess.vertex-9J4kRI6V.js} +1 -1
- python_cad_tools/_viewer_static/assets/{procedural.vertex-Dp-Ng7Pc.js → procedural.vertex-Bq_A-zE0.js} +1 -1
- python_cad_tools/_viewer_static/assets/{procedural.vertex-BnbuQ-1f.js → procedural.vertex-DzkBufoo.js} +1 -1
- python_cad_tools/_viewer_static/assets/{reflectionFunction-DBlr3oDs.js → reflectionFunction-n0dvho3A.js} +1 -1
- python_cad_tools/_viewer_static/assets/{rgbdDecode.fragment-CyvnZFOJ.js → rgbdDecode.fragment-0BuGamw5.js} +1 -1
- python_cad_tools/_viewer_static/assets/{rgbdEncode.fragment-iscgpA1_.js → rgbdEncode.fragment-BBGe9kwu.js} +1 -1
- python_cad_tools/_viewer_static/assets/{rgbdEncode.fragment-Dz4zLnoD.js → rgbdEncode.fragment-DiiD2NE-.js} +1 -1
- python_cad_tools/_viewer_static/assets/{sceneUboDeclaration-BzFIc4mb.js → sceneUboDeclaration-BmpwedcW.js} +1 -1
- python_cad_tools/_viewer_static/assets/{textureProcessor.fragment-JMKyWZng.js → textureProcessor.fragment-CwNRejEe.js} +1 -1
- python_cad_tools/_viewer_static/assets/{textureProcessor.fragment-C9D0rd-M.js → textureProcessor.fragment-CyBHPXX2.js} +1 -1
- python_cad_tools/_viewer_static/assets/{tgaTextureLoader-oxTElIQJ.js → tgaTextureLoader-ClB6SRY9.js} +1 -1
- python_cad_tools/_viewer_static/assets/{vertexColorMixing-mdC9xZe1.js → vertexColorMixing-f4wQRwGI.js} +1 -1
- python_cad_tools/_viewer_static/index.html +1 -1
- python_cad_tools/build-info.json +1 -1
- {python_cad_tools-0.1.1.dist-info → python_cad_tools-0.1.2.dev2.dist-info}/METADATA +1 -1
- python_cad_tools-0.1.2.dev2.dist-info/RECORD +239 -0
- {python_cad_tools-0.1.1.dist-info → python_cad_tools-0.1.2.dev2.dist-info}/scm_file_list.json +168 -167
- python_cad_tools-0.1.2.dev2.dist-info/scm_version.json +8 -0
- python_cad_tools/_viewer_static/assets/dds-Dkb2Cx2N.js +0 -1
- python_cad_tools-0.1.1.dist-info/RECORD +0 -238
- python_cad_tools-0.1.1.dist-info/scm_version.json +0 -8
- {python_cad_tools-0.1.1.dist-info → python_cad_tools-0.1.2.dev2.dist-info}/WHEEL +0 -0
- {python_cad_tools-0.1.1.dist-info → python_cad_tools-0.1.2.dev2.dist-info}/entry_points.txt +0 -0
- {python_cad_tools-0.1.1.dist-info → python_cad_tools-0.1.2.dev2.dist-info}/licenses/LICENSE +0 -0
- {python_cad_tools-0.1.1.dist-info → python_cad_tools-0.1.2.dev2.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";import{k as i}from"./kernelBlurVaryingDeclaration-YMenN7Se.js";import{p as s}from"./packingFunctions-BD5WZtBT.js";const t="kernelBlurFragment",a=`#ifdef DOF
|
|
2
2
|
factor=sampleCoC(sampleCoord{X});
|
|
3
3
|
computedWeight=KERNEL_WEIGHT{X}*factor;sumOfWeights+=computedWeight;
|
|
4
4
|
#else
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";import{k as f}from"./kernelBlurVaryingDeclaration-PE5ICZNw.js";import{p as s}from"./packingFunctions-D3gaUkUa.js";const t="kernelBlurFragment",l=`#ifdef DOF
|
|
2
2
|
factor=sampleCoC(fragmentInputs.sampleCoord{X});
|
|
3
3
|
computedWeight=KERNEL_WEIGHT{X}*factor;sumOfWeights+=computedWeight;
|
|
4
4
|
#else
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";import{k as d}from"./kernelBlurVaryingDeclaration-YMenN7Se.js";const n="kernelBlurVertex",o="sampleCoord{X}=sampleCenter+delta*KERNEL_OFFSET{X};";e.IncludesShadersStore[n]||(e.IncludesShadersStore[n]=o);const s={name:n,shader:o},a="kernelBlurVertexShader",t=`attribute vec2 position;uniform vec2 delta;varying vec2 sampleCenter;
|
|
2
2
|
#include<kernelBlurVaryingDeclaration>[0..varyingCount]
|
|
3
3
|
const vec2 madd=vec2(0.5,0.5);
|
|
4
4
|
#define CUSTOM_VERTEX_DEFINITIONS
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";import{k as o}from"./kernelBlurVaryingDeclaration-PE5ICZNw.js";const t="kernelBlurVertex",s="vertexOutputs.sampleCoord{X}=vertexOutputs.sampleCenter+uniforms.delta*KERNEL_OFFSET{X};";e.IncludesShadersStoreWGSL[t]||(e.IncludesShadersStoreWGSL[t]=s);const d={name:t,shader:s},n="kernelBlurVertexShader",a=`attribute position: vec2f;uniform delta: vec2f;varying sampleCenter: vec2f;
|
|
2
2
|
#include<kernelBlurVaryingDeclaration>[0..varyingCount]
|
|
3
3
|
#define CUSTOM_VERTEX_DEFINITIONS
|
|
4
4
|
@vertex
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";const r="kernelBlurVaryingDeclaration",a="varying sampleCoord{X}: vec2f;";e.IncludesShadersStoreWGSL[r]||(e.IncludesShadersStoreWGSL[r]=a);const o={name:r,shader:a};export{o as k};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";const r="kernelBlurVaryingDeclaration",a="varying vec2 sampleCoord{X};";e.IncludesShadersStore[r]||(e.IncludesShadersStore[r]=a);const o={name:r,shader:a};export{o as k};
|
python_cad_tools/_viewer_static/assets/{ktxTextureLoader-ncMSJTjl.js → ktxTextureLoader-uG9TUdGM.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as _,au as d,a_ as G}from"./index-B2zBEWsq.js";class n{constructor(s,e){if(this.data=s,this.isInvalid=!1,!n.IsValid(s)){this.isInvalid=!0,_.Error("texture missing KTX identifier");return}const a=Uint32Array.BYTES_PER_ELEMENT,r=new DataView(this.data.buffer,this.data.byteOffset+12,13*a),i=r.getUint32(0,!0)===67305985;if(this.glType=r.getUint32(1*a,i),this.glTypeSize=r.getUint32(2*a,i),this.glFormat=r.getUint32(3*a,i),this.glInternalFormat=r.getUint32(4*a,i),this.glBaseInternalFormat=r.getUint32(5*a,i),this.pixelWidth=r.getUint32(6*a,i),this.pixelHeight=r.getUint32(7*a,i),this.pixelDepth=r.getUint32(8*a,i),this.numberOfArrayElements=r.getUint32(9*a,i),this.numberOfFaces=r.getUint32(10*a,i),this.numberOfMipmapLevels=r.getUint32(11*a,i),this.bytesOfKeyValueData=r.getUint32(12*a,i),this.glType!==0){_.Error("only compressed formats currently supported"),this.isInvalid=!0;return}else this.numberOfMipmapLevels=Math.max(1,this.numberOfMipmapLevels);if(this.pixelHeight===0||this.pixelDepth!==0){_.Error("only 2D textures currently supported"),this.isInvalid=!0;return}if(this.numberOfArrayElements!==0){_.Error("texture arrays not currently supported"),this.isInvalid=!0;return}if(this.numberOfFaces!==e){_.Error("number of faces expected"+e+", but found "+this.numberOfFaces),this.isInvalid=!0;return}this.loadType=n.COMPRESSED_2D}uploadLevels(s,e){this.loadType===n.COMPRESSED_2D&&this._upload2DCompressedLevels(s,e)}_upload2DCompressedLevels(s,e){let a=n.HEADER_LEN+this.bytesOfKeyValueData,r=this.pixelWidth,c=this.pixelHeight;const i=e?this.numberOfMipmapLevels:1;for(let f=0;f<i;f++){const l=new Int32Array(this.data.buffer,this.data.byteOffset+a,1)[0];a+=4;for(let R=0;R<this.numberOfFaces;R++){const T=new Uint8Array(this.data.buffer,this.data.byteOffset+a,l);s.getEngine()._uploadCompressedDataToTextureDirectly(s,s.format,r,c,T,R,f),a+=l,a+=3-(l+3)%4}r=Math.max(1,r*.5),c=Math.max(1,c*.5)}}static IsValid(s){if(s.byteLength>=12){const e=new Uint8Array(s.buffer,s.byteOffset,12);if(e[0]===171&&e[1]===75&&e[2]===84&&e[3]===88&&e[4]===32&&e[5]===49&&e[6]===49&&e[7]===187&&e[8]===13&&e[9]===10&&e[10]===26&&e[11]===10)return!0}return!1}}n.HEADER_LEN=64;n.COMPRESSED_2D=0;n.COMPRESSED_3D=1;n.TEX_2D=2;n.TEX_3D=3;var h;(function(t){t[t.ETC1S=0]="ETC1S",t[t.UASTC4x4=1]="UASTC4x4"})(h||(h={}));var m;(function(t){t[t.ASTC_4X4_RGBA=0]="ASTC_4X4_RGBA",t[t.ASTC_4x4_RGBA=0]="ASTC_4x4_RGBA",t[t.BC7_RGBA=1]="BC7_RGBA",t[t.BC3_RGBA=2]="BC3_RGBA",t[t.BC1_RGB=3]="BC1_RGB",t[t.PVRTC1_4_RGBA=4]="PVRTC1_4_RGBA",t[t.PVRTC1_4_RGB=5]="PVRTC1_4_RGB",t[t.ETC2_RGBA=6]="ETC2_RGBA",t[t.ETC1_RGB=7]="ETC1_RGB",t[t.RGBA32=8]="RGBA32",t[t.R8=9]="R8",t[t.RG8=10]="RG8"})(m||(m={}));var U;(function(t){t[t.COMPRESSED_RGBA_BPTC_UNORM_EXT=36492]="COMPRESSED_RGBA_BPTC_UNORM_EXT",t[t.COMPRESSED_RGBA_ASTC_4X4_KHR=37808]="COMPRESSED_RGBA_ASTC_4X4_KHR",t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",t[t.RGBA8Format=32856]="RGBA8Format",t[t.R8Format=33321]="R8Format",t[t.RG8Format=33323]="RG8Format"})(U||(U={}));function A(t,s){const e=s?.jsDecoderModule||KTX2DECODER;t&&(t.wasmBaseUrl&&(e.Transcoder.WasmBaseUrl=t.wasmBaseUrl),t.wasmUASTCToASTC&&(e.LiteTranscoder_UASTC_ASTC.WasmModuleURL=t.wasmUASTCToASTC),t.wasmUASTCToBC7&&(e.LiteTranscoder_UASTC_BC7.WasmModuleURL=t.wasmUASTCToBC7),t.wasmUASTCToRGBA_UNORM&&(e.LiteTranscoder_UASTC_RGBA_UNORM.WasmModuleURL=t.wasmUASTCToRGBA_UNORM),t.wasmUASTCToRGBA_SRGB&&(e.LiteTranscoder_UASTC_RGBA_SRGB.WasmModuleURL=t.wasmUASTCToRGBA_SRGB),t.wasmUASTCToR8_UNORM&&(e.LiteTranscoder_UASTC_R8_UNORM.WasmModuleURL=t.wasmUASTCToR8_UNORM),t.wasmUASTCToRG8_UNORM&&(e.LiteTranscoder_UASTC_RG8_UNORM.WasmModuleURL=t.wasmUASTCToRG8_UNORM),t.jsMSCTranscoder&&(e.MSCTranscoder.JSModuleURL=t.jsMSCTranscoder),t.wasmMSCTranscoder&&(e.MSCTranscoder.WasmModuleURL=t.wasmMSCTranscoder),t.wasmZSTDDecoder&&(e.ZSTDDecoder.WasmModuleURL=t.wasmZSTDDecoder)),s&&(s.wasmUASTCToASTC&&(e.LiteTranscoder_UASTC_ASTC.WasmBinary=s.wasmUASTCToASTC),s.wasmUASTCToBC7&&(e.LiteTranscoder_UASTC_BC7.WasmBinary=s.wasmUASTCToBC7),s.wasmUASTCToRGBA_UNORM&&(e.LiteTranscoder_UASTC_RGBA_UNORM.WasmBinary=s.wasmUASTCToRGBA_UNORM),s.wasmUASTCToRGBA_SRGB&&(e.LiteTranscoder_UASTC_RGBA_SRGB.WasmBinary=s.wasmUASTCToRGBA_SRGB),s.wasmUASTCToR8_UNORM&&(e.LiteTranscoder_UASTC_R8_UNORM.WasmBinary=s.wasmUASTCToR8_UNORM),s.wasmUASTCToRG8_UNORM&&(e.LiteTranscoder_UASTC_RG8_UNORM.WasmBinary=s.wasmUASTCToRG8_UNORM),s.jsMSCTranscoder&&(e.MSCTranscoder.JSModule=s.jsMSCTranscoder),s.wasmMSCTranscoder&&(e.MSCTranscoder.WasmBinary=s.wasmMSCTranscoder),s.wasmZSTDDecoder&&(e.ZSTDDecoder.WasmBinary=s.wasmZSTDDecoder))}function M(t){typeof t>"u"&&typeof KTX2DECODER<"u"&&(t=KTX2DECODER);let s;onmessage=e=>{if(e.data)switch(e.data.action){case"init":{const a=e.data.urls;a&&(a.jsDecoderModule&&typeof t>"u"&&(importScripts(a.jsDecoderModule),t=KTX2DECODER),A(a)),e.data.wasmBinaries&&A(void 0,{...e.data.wasmBinaries,jsDecoderModule:t}),s=new t.KTX2Decoder,postMessage({action:"init"});break}case"setDefaultDecoderOptions":{t.KTX2Decoder.DefaultDecoderOptions=e.data.options;break}case"decode":s.decode(e.data.data,e.data.caps,e.data.options).then(a=>{const r=[];for(let c=0;c<a.mipmaps.length;++c){const i=a.mipmaps[c];i&&i.data&&r.push(i.data.buffer)}postMessage({action:"decoded",success:!0,decodedData:a},r)}).catch(a=>{postMessage({action:"decoded",success:!1,msg:a})});break}}}async function y(t,s,e){return await new Promise((a,r)=>{const c=f=>{t.removeEventListener("error",c),t.removeEventListener("message",i),r(f)},i=f=>{f.data.action==="init"&&(t.removeEventListener("error",c),t.removeEventListener("message",i),a(t))};t.addEventListener("error",c),t.addEventListener("message",i),t.postMessage({action:"init",urls:e,wasmBinaries:s})})}class w{constructor(){this._isDirty=!0,this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC=!0,this._ktx2DecoderOptions={}}get isDirty(){return this._isDirty}get useRGBAIfASTCBC7NotAvailableWhenUASTC(){return this._useRGBAIfASTCBC7NotAvailableWhenUASTC}set useRGBAIfASTCBC7NotAvailableWhenUASTC(s){this._useRGBAIfASTCBC7NotAvailableWhenUASTC!==s&&(this._useRGBAIfASTCBC7NotAvailableWhenUASTC=s,this._isDirty=!0)}get useRGBAIfOnlyBC1BC3AvailableWhenUASTC(){return this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC}set useRGBAIfOnlyBC1BC3AvailableWhenUASTC(s){this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC!==s&&(this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC=s,this._isDirty=!0)}get forceRGBA(){return this._forceRGBA}set forceRGBA(s){this._forceRGBA!==s&&(this._forceRGBA=s,this._isDirty=!0)}get forceR8(){return this._forceR8}set forceR8(s){this._forceR8!==s&&(this._forceR8=s,this._isDirty=!0)}get forceRG8(){return this._forceRG8}set forceRG8(s){this._forceRG8!==s&&(this._forceRG8=s,this._isDirty=!0)}get bypassTranscoders(){return this._bypassTranscoders}set bypassTranscoders(s){this._bypassTranscoders!==s&&(this._bypassTranscoders=s,this._isDirty=!0)}_getKTX2DecoderOptions(){if(!this._isDirty)return this._ktx2DecoderOptions;this._isDirty=!1;const s={};return this._useRGBAIfASTCBC7NotAvailableWhenUASTC!==void 0&&(s.useRGBAIfASTCBC7NotAvailableWhenUASTC=this._useRGBAIfASTCBC7NotAvailableWhenUASTC),this._forceRGBA!==void 0&&(s.forceRGBA=this._forceRGBA),this._forceR8!==void 0&&(s.forceR8=this._forceR8),this._forceRG8!==void 0&&(s.forceRG8=this._forceRG8),this._bypassTranscoders!==void 0&&(s.bypassTranscoders=this._bypassTranscoders),this.useRGBAIfOnlyBC1BC3AvailableWhenUASTC&&(s.transcodeFormatDecisionTree={UASTC:{transcodeFormat:[m.BC1_RGB,m.BC3_RGBA],yes:{transcodeFormat:m.RGBA32,engineFormat:32856,roundToMultiple4:!1}}}),this._ktx2DecoderOptions=s,s}}class o{static GetDefaultNumWorkers(){return typeof navigator!="object"||!navigator.hardwareConcurrency?1:Math.min(Math.floor(navigator.hardwareConcurrency*.5),4)}static _Initialize(s){if(o._WorkerPoolPromise||o._DecoderModulePromise)return;const e={wasmBaseUrl:d.ScriptBaseUrl,jsDecoderModule:d.GetBabylonScriptURL(this.URLConfig.jsDecoderModule,!0),wasmUASTCToASTC:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToASTC,!0),wasmUASTCToBC7:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToBC7,!0),wasmUASTCToRGBA_UNORM:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRGBA_UNORM,!0),wasmUASTCToRGBA_SRGB:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRGBA_SRGB,!0),wasmUASTCToR8_UNORM:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToR8_UNORM,!0),wasmUASTCToRG8_UNORM:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRG8_UNORM,!0),jsMSCTranscoder:d.GetBabylonScriptURL(this.URLConfig.jsMSCTranscoder,!0),wasmMSCTranscoder:d.GetBabylonScriptURL(this.URLConfig.wasmMSCTranscoder,!0),wasmZSTDDecoder:d.GetBabylonScriptURL(this.URLConfig.wasmZSTDDecoder,!0)};s&&typeof Worker=="function"&&typeof URL<"u"?o._WorkerPoolPromise=new Promise(a=>{const r=`${A}(${M})()`,c=URL.createObjectURL(new Blob([r],{type:"application/javascript"}));a(new G(s,async()=>await y(new Worker(c),void 0,e)))}):typeof o._KTX2DecoderModule>"u"?o._DecoderModulePromise=d.LoadBabylonScriptAsync(e.jsDecoderModule).then(()=>(o._KTX2DecoderModule=KTX2DECODER,o._KTX2DecoderModule.MSCTranscoder.UseFromWorkerThread=!1,o._KTX2DecoderModule.WASMMemoryManager.LoadBinariesFromCurrentThread=!0,A(e,o._KTX2DecoderModule),new o._KTX2DecoderModule.KTX2Decoder)):(o._KTX2DecoderModule.MSCTranscoder.UseFromWorkerThread=!1,o._KTX2DecoderModule.WASMMemoryManager.LoadBinariesFromCurrentThread=!0,o._DecoderModulePromise=Promise.resolve(new o._KTX2DecoderModule.KTX2Decoder))}constructor(s,e=o.DefaultNumWorkers){this._engine=s;const a=typeof e=="object"&&e.workerPool||o.WorkerPool;if(a)o._WorkerPoolPromise=Promise.resolve(a);else{typeof e=="object"?o._KTX2DecoderModule=e?.binariesAndModulesContainer?.jsDecoderModule:typeof KTX2DECODER<"u"&&(o._KTX2DecoderModule=KTX2DECODER);const r=typeof e=="number"?e:e.numWorkers??o.DefaultNumWorkers;o._Initialize(r)}}async _uploadAsync(s,e,a){const r=this._engine.getCaps(),c={astc:!!r.astc,bptc:!!r.bptc,s3tc:!!r.s3tc,pvrtc:!!r.pvrtc,etc2:!!r.etc2,etc1:!!r.etc1};if(o._WorkerPoolPromise){const i=await o._WorkerPoolPromise;return await new Promise((f,l)=>{i.push((R,T)=>{const C=S=>{R.removeEventListener("error",C),R.removeEventListener("message",p),l(S),T()},p=S=>{if(S.data.action==="decoded"){if(R.removeEventListener("error",C),R.removeEventListener("message",p),!S.data.success)l({message:S.data.msg});else try{this._createTexture(S.data.decodedData,e,a),f()}catch(u){l({message:u})}T()}};R.addEventListener("error",C),R.addEventListener("message",p),R.postMessage({action:"setDefaultDecoderOptions",options:o.DefaultDecoderOptions._getKTX2DecoderOptions()});const B=new Uint8Array(s.byteLength);B.set(new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),R.postMessage({action:"decode",data:B,caps:c,options:a},[B.buffer])})})}else if(o._DecoderModulePromise){const i=await o._DecoderModulePromise;return o.DefaultDecoderOptions.isDirty&&(o._KTX2DecoderModule.KTX2Decoder.DefaultDecoderOptions=o.DefaultDecoderOptions._getKTX2DecoderOptions()),await new Promise((f,l)=>{i.decode(s,r).then(R=>{this._createTexture(R,e),f()}).catch(R=>{l({message:R})})})}throw new Error("KTX2 decoder module is not available")}_createTexture(s,e,a){this._engine._bindTextureDirectly(3553,e),a&&(a.transcodedFormat=s.transcodedFormat,a.isInGammaSpace=s.isInGammaSpace,a.hasAlpha=s.hasAlpha,a.transcoderName=s.transcoderName);let c=!0;switch(s.transcodedFormat){case 32856:e.type=0,e.format=5;break;case 33321:e.type=0,e.format=6;break;case 33323:e.type=0,e.format=7;break;default:e.format=s.transcodedFormat,c=!1;break}if(e._gammaSpace=s.isInGammaSpace,e.generateMipMaps=s.mipmaps.length>1,e.width=s.mipmaps[0].width,e.height=s.mipmaps[0].height,s.errors)throw new Error("KTX2 container - could not transcode the data. "+s.errors);for(let i=0;i<s.mipmaps.length;++i){const f=s.mipmaps[i];if(!f||!f.data)throw new Error("KTX2 container - could not transcode one of the image");c?(e.width=f.width,e.height=f.height,this._engine._uploadDataToTextureDirectly(e,f.data,0,i,void 0,!0)):this._engine._uploadCompressedDataToTextureDirectly(e,s.transcodedFormat,f.width,f.height,f.data,0,i)}e._extension=".ktx2",e.isReady=!0,this._engine._bindTextureDirectly(3553,null)}static IsValid(s){if(s.byteLength>=12){const e=new Uint8Array(s.buffer,s.byteOffset,12);if(e[0]===171&&e[1]===75&&e[2]===84&&e[3]===88&&e[4]===32&&e[5]===50&&e[6]===48&&e[7]===187&&e[8]===13&&e[9]===10&&e[10]===26&&e[11]===10)return!0}return!1}}o.URLConfig={jsDecoderModule:"https://cdn.babylonjs.com/babylon.ktx2Decoder.js",wasmUASTCToASTC:null,wasmUASTCToBC7:null,wasmUASTCToRGBA_UNORM:null,wasmUASTCToRGBA_SRGB:null,wasmUASTCToR8_UNORM:null,wasmUASTCToRG8_UNORM:null,jsMSCTranscoder:null,wasmMSCTranscoder:null,wasmZSTDDecoder:null};o.DefaultNumWorkers=o.GetDefaultNumWorkers();o.DefaultDecoderOptions=new w;function D(t){switch(t){case 35916:return 33776;case 35918:return 33778;case 35919:return 33779;case 37493:return 37492;case 37497:return 37496;case 37495:return 37494;case 37840:return 37808;case 37841:return 37809;case 37842:return 37810;case 37843:return 37811;case 37844:return 37812;case 37845:return 37813;case 37846:return 37814;case 37847:return 37815;case 37848:return 37816;case 37849:return 37817;case 37850:return 37818;case 37851:return 37819;case 37852:return 37820;case 37853:return 37821;case 36493:return 36492}return null}class O{constructor(){this.supportCascades=!1}loadCubeData(s,e,a,r){if(Array.isArray(s))return;e._invertVScale=!e.invertY;const c=e.getEngine(),i=new n(s,6),f=D(i.glInternalFormat);f!==null?(e.format=f,e._useSRGBBuffer=c._getUseSRGBBuffer(!0,!e.generateMipMaps),e._gammaSpace=!0):e.format=i.glInternalFormat;const l=i.numberOfMipmapLevels>1&&e.generateMipMaps;c._unpackFlipY(!0),i.uploadLevels(e,e.generateMipMaps),e.width=i.pixelWidth,e.height=i.pixelHeight,c._setCubeMapTextureParams(e,l,i.numberOfMipmapLevels-1),e.isReady=!0,e.onLoadedObservable.notifyObservers(e),e.onLoadedObservable.clear(),r&&r()}loadData(s,e,a,r){if(n.IsValid(s)){e._invertVScale=!e.invertY;const c=new n(s,1),i=D(c.glInternalFormat);i!==null?(e.format=i,e._useSRGBBuffer=e.getEngine()._getUseSRGBBuffer(!0,!e.generateMipMaps),e._gammaSpace=!0):e.format=c.glInternalFormat,a(c.pixelWidth,c.pixelHeight,e.generateMipMaps,!0,()=>{c.uploadLevels(e,e.generateMipMaps)},c.isInvalid)}else o.IsValid(s)?new o(e.getEngine())._uploadAsync(s,e,r).then(()=>{a(e.width,e.height,e.generateMipMaps,!0,()=>{},!1)},i=>{_.Warn(`Failed to load KTX2 texture data: ${i.message}`),a(0,0,!1,!1,()=>{},!0)}):(_.Error("texture missing KTX identifier"),a(0,0,!1,!1,()=>{},!0))}}export{O as _KTXTextureLoader};
|
|
1
|
+
import{L as _,au as d,a_ as G}from"./index-JRwY7p9T.js";class n{constructor(s,e){if(this.data=s,this.isInvalid=!1,!n.IsValid(s)){this.isInvalid=!0,_.Error("texture missing KTX identifier");return}const a=Uint32Array.BYTES_PER_ELEMENT,r=new DataView(this.data.buffer,this.data.byteOffset+12,13*a),i=r.getUint32(0,!0)===67305985;if(this.glType=r.getUint32(1*a,i),this.glTypeSize=r.getUint32(2*a,i),this.glFormat=r.getUint32(3*a,i),this.glInternalFormat=r.getUint32(4*a,i),this.glBaseInternalFormat=r.getUint32(5*a,i),this.pixelWidth=r.getUint32(6*a,i),this.pixelHeight=r.getUint32(7*a,i),this.pixelDepth=r.getUint32(8*a,i),this.numberOfArrayElements=r.getUint32(9*a,i),this.numberOfFaces=r.getUint32(10*a,i),this.numberOfMipmapLevels=r.getUint32(11*a,i),this.bytesOfKeyValueData=r.getUint32(12*a,i),this.glType!==0){_.Error("only compressed formats currently supported"),this.isInvalid=!0;return}else this.numberOfMipmapLevels=Math.max(1,this.numberOfMipmapLevels);if(this.pixelHeight===0||this.pixelDepth!==0){_.Error("only 2D textures currently supported"),this.isInvalid=!0;return}if(this.numberOfArrayElements!==0){_.Error("texture arrays not currently supported"),this.isInvalid=!0;return}if(this.numberOfFaces!==e){_.Error("number of faces expected"+e+", but found "+this.numberOfFaces),this.isInvalid=!0;return}this.loadType=n.COMPRESSED_2D}uploadLevels(s,e){this.loadType===n.COMPRESSED_2D&&this._upload2DCompressedLevels(s,e)}_upload2DCompressedLevels(s,e){let a=n.HEADER_LEN+this.bytesOfKeyValueData,r=this.pixelWidth,c=this.pixelHeight;const i=e?this.numberOfMipmapLevels:1;for(let f=0;f<i;f++){const l=new Int32Array(this.data.buffer,this.data.byteOffset+a,1)[0];a+=4;for(let R=0;R<this.numberOfFaces;R++){const T=new Uint8Array(this.data.buffer,this.data.byteOffset+a,l);s.getEngine()._uploadCompressedDataToTextureDirectly(s,s.format,r,c,T,R,f),a+=l,a+=3-(l+3)%4}r=Math.max(1,r*.5),c=Math.max(1,c*.5)}}static IsValid(s){if(s.byteLength>=12){const e=new Uint8Array(s.buffer,s.byteOffset,12);if(e[0]===171&&e[1]===75&&e[2]===84&&e[3]===88&&e[4]===32&&e[5]===49&&e[6]===49&&e[7]===187&&e[8]===13&&e[9]===10&&e[10]===26&&e[11]===10)return!0}return!1}}n.HEADER_LEN=64;n.COMPRESSED_2D=0;n.COMPRESSED_3D=1;n.TEX_2D=2;n.TEX_3D=3;var h;(function(t){t[t.ETC1S=0]="ETC1S",t[t.UASTC4x4=1]="UASTC4x4"})(h||(h={}));var m;(function(t){t[t.ASTC_4X4_RGBA=0]="ASTC_4X4_RGBA",t[t.ASTC_4x4_RGBA=0]="ASTC_4x4_RGBA",t[t.BC7_RGBA=1]="BC7_RGBA",t[t.BC3_RGBA=2]="BC3_RGBA",t[t.BC1_RGB=3]="BC1_RGB",t[t.PVRTC1_4_RGBA=4]="PVRTC1_4_RGBA",t[t.PVRTC1_4_RGB=5]="PVRTC1_4_RGB",t[t.ETC2_RGBA=6]="ETC2_RGBA",t[t.ETC1_RGB=7]="ETC1_RGB",t[t.RGBA32=8]="RGBA32",t[t.R8=9]="R8",t[t.RG8=10]="RG8"})(m||(m={}));var U;(function(t){t[t.COMPRESSED_RGBA_BPTC_UNORM_EXT=36492]="COMPRESSED_RGBA_BPTC_UNORM_EXT",t[t.COMPRESSED_RGBA_ASTC_4X4_KHR=37808]="COMPRESSED_RGBA_ASTC_4X4_KHR",t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",t[t.RGBA8Format=32856]="RGBA8Format",t[t.R8Format=33321]="R8Format",t[t.RG8Format=33323]="RG8Format"})(U||(U={}));function A(t,s){const e=s?.jsDecoderModule||KTX2DECODER;t&&(t.wasmBaseUrl&&(e.Transcoder.WasmBaseUrl=t.wasmBaseUrl),t.wasmUASTCToASTC&&(e.LiteTranscoder_UASTC_ASTC.WasmModuleURL=t.wasmUASTCToASTC),t.wasmUASTCToBC7&&(e.LiteTranscoder_UASTC_BC7.WasmModuleURL=t.wasmUASTCToBC7),t.wasmUASTCToRGBA_UNORM&&(e.LiteTranscoder_UASTC_RGBA_UNORM.WasmModuleURL=t.wasmUASTCToRGBA_UNORM),t.wasmUASTCToRGBA_SRGB&&(e.LiteTranscoder_UASTC_RGBA_SRGB.WasmModuleURL=t.wasmUASTCToRGBA_SRGB),t.wasmUASTCToR8_UNORM&&(e.LiteTranscoder_UASTC_R8_UNORM.WasmModuleURL=t.wasmUASTCToR8_UNORM),t.wasmUASTCToRG8_UNORM&&(e.LiteTranscoder_UASTC_RG8_UNORM.WasmModuleURL=t.wasmUASTCToRG8_UNORM),t.jsMSCTranscoder&&(e.MSCTranscoder.JSModuleURL=t.jsMSCTranscoder),t.wasmMSCTranscoder&&(e.MSCTranscoder.WasmModuleURL=t.wasmMSCTranscoder),t.wasmZSTDDecoder&&(e.ZSTDDecoder.WasmModuleURL=t.wasmZSTDDecoder)),s&&(s.wasmUASTCToASTC&&(e.LiteTranscoder_UASTC_ASTC.WasmBinary=s.wasmUASTCToASTC),s.wasmUASTCToBC7&&(e.LiteTranscoder_UASTC_BC7.WasmBinary=s.wasmUASTCToBC7),s.wasmUASTCToRGBA_UNORM&&(e.LiteTranscoder_UASTC_RGBA_UNORM.WasmBinary=s.wasmUASTCToRGBA_UNORM),s.wasmUASTCToRGBA_SRGB&&(e.LiteTranscoder_UASTC_RGBA_SRGB.WasmBinary=s.wasmUASTCToRGBA_SRGB),s.wasmUASTCToR8_UNORM&&(e.LiteTranscoder_UASTC_R8_UNORM.WasmBinary=s.wasmUASTCToR8_UNORM),s.wasmUASTCToRG8_UNORM&&(e.LiteTranscoder_UASTC_RG8_UNORM.WasmBinary=s.wasmUASTCToRG8_UNORM),s.jsMSCTranscoder&&(e.MSCTranscoder.JSModule=s.jsMSCTranscoder),s.wasmMSCTranscoder&&(e.MSCTranscoder.WasmBinary=s.wasmMSCTranscoder),s.wasmZSTDDecoder&&(e.ZSTDDecoder.WasmBinary=s.wasmZSTDDecoder))}function M(t){typeof t>"u"&&typeof KTX2DECODER<"u"&&(t=KTX2DECODER);let s;onmessage=e=>{if(e.data)switch(e.data.action){case"init":{const a=e.data.urls;a&&(a.jsDecoderModule&&typeof t>"u"&&(importScripts(a.jsDecoderModule),t=KTX2DECODER),A(a)),e.data.wasmBinaries&&A(void 0,{...e.data.wasmBinaries,jsDecoderModule:t}),s=new t.KTX2Decoder,postMessage({action:"init"});break}case"setDefaultDecoderOptions":{t.KTX2Decoder.DefaultDecoderOptions=e.data.options;break}case"decode":s.decode(e.data.data,e.data.caps,e.data.options).then(a=>{const r=[];for(let c=0;c<a.mipmaps.length;++c){const i=a.mipmaps[c];i&&i.data&&r.push(i.data.buffer)}postMessage({action:"decoded",success:!0,decodedData:a},r)}).catch(a=>{postMessage({action:"decoded",success:!1,msg:a})});break}}}async function y(t,s,e){return await new Promise((a,r)=>{const c=f=>{t.removeEventListener("error",c),t.removeEventListener("message",i),r(f)},i=f=>{f.data.action==="init"&&(t.removeEventListener("error",c),t.removeEventListener("message",i),a(t))};t.addEventListener("error",c),t.addEventListener("message",i),t.postMessage({action:"init",urls:e,wasmBinaries:s})})}class w{constructor(){this._isDirty=!0,this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC=!0,this._ktx2DecoderOptions={}}get isDirty(){return this._isDirty}get useRGBAIfASTCBC7NotAvailableWhenUASTC(){return this._useRGBAIfASTCBC7NotAvailableWhenUASTC}set useRGBAIfASTCBC7NotAvailableWhenUASTC(s){this._useRGBAIfASTCBC7NotAvailableWhenUASTC!==s&&(this._useRGBAIfASTCBC7NotAvailableWhenUASTC=s,this._isDirty=!0)}get useRGBAIfOnlyBC1BC3AvailableWhenUASTC(){return this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC}set useRGBAIfOnlyBC1BC3AvailableWhenUASTC(s){this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC!==s&&(this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC=s,this._isDirty=!0)}get forceRGBA(){return this._forceRGBA}set forceRGBA(s){this._forceRGBA!==s&&(this._forceRGBA=s,this._isDirty=!0)}get forceR8(){return this._forceR8}set forceR8(s){this._forceR8!==s&&(this._forceR8=s,this._isDirty=!0)}get forceRG8(){return this._forceRG8}set forceRG8(s){this._forceRG8!==s&&(this._forceRG8=s,this._isDirty=!0)}get bypassTranscoders(){return this._bypassTranscoders}set bypassTranscoders(s){this._bypassTranscoders!==s&&(this._bypassTranscoders=s,this._isDirty=!0)}_getKTX2DecoderOptions(){if(!this._isDirty)return this._ktx2DecoderOptions;this._isDirty=!1;const s={};return this._useRGBAIfASTCBC7NotAvailableWhenUASTC!==void 0&&(s.useRGBAIfASTCBC7NotAvailableWhenUASTC=this._useRGBAIfASTCBC7NotAvailableWhenUASTC),this._forceRGBA!==void 0&&(s.forceRGBA=this._forceRGBA),this._forceR8!==void 0&&(s.forceR8=this._forceR8),this._forceRG8!==void 0&&(s.forceRG8=this._forceRG8),this._bypassTranscoders!==void 0&&(s.bypassTranscoders=this._bypassTranscoders),this.useRGBAIfOnlyBC1BC3AvailableWhenUASTC&&(s.transcodeFormatDecisionTree={UASTC:{transcodeFormat:[m.BC1_RGB,m.BC3_RGBA],yes:{transcodeFormat:m.RGBA32,engineFormat:32856,roundToMultiple4:!1}}}),this._ktx2DecoderOptions=s,s}}class o{static GetDefaultNumWorkers(){return typeof navigator!="object"||!navigator.hardwareConcurrency?1:Math.min(Math.floor(navigator.hardwareConcurrency*.5),4)}static _Initialize(s){if(o._WorkerPoolPromise||o._DecoderModulePromise)return;const e={wasmBaseUrl:d.ScriptBaseUrl,jsDecoderModule:d.GetBabylonScriptURL(this.URLConfig.jsDecoderModule,!0),wasmUASTCToASTC:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToASTC,!0),wasmUASTCToBC7:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToBC7,!0),wasmUASTCToRGBA_UNORM:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRGBA_UNORM,!0),wasmUASTCToRGBA_SRGB:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRGBA_SRGB,!0),wasmUASTCToR8_UNORM:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToR8_UNORM,!0),wasmUASTCToRG8_UNORM:d.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRG8_UNORM,!0),jsMSCTranscoder:d.GetBabylonScriptURL(this.URLConfig.jsMSCTranscoder,!0),wasmMSCTranscoder:d.GetBabylonScriptURL(this.URLConfig.wasmMSCTranscoder,!0),wasmZSTDDecoder:d.GetBabylonScriptURL(this.URLConfig.wasmZSTDDecoder,!0)};s&&typeof Worker=="function"&&typeof URL<"u"?o._WorkerPoolPromise=new Promise(a=>{const r=`${A}(${M})()`,c=URL.createObjectURL(new Blob([r],{type:"application/javascript"}));a(new G(s,async()=>await y(new Worker(c),void 0,e)))}):typeof o._KTX2DecoderModule>"u"?o._DecoderModulePromise=d.LoadBabylonScriptAsync(e.jsDecoderModule).then(()=>(o._KTX2DecoderModule=KTX2DECODER,o._KTX2DecoderModule.MSCTranscoder.UseFromWorkerThread=!1,o._KTX2DecoderModule.WASMMemoryManager.LoadBinariesFromCurrentThread=!0,A(e,o._KTX2DecoderModule),new o._KTX2DecoderModule.KTX2Decoder)):(o._KTX2DecoderModule.MSCTranscoder.UseFromWorkerThread=!1,o._KTX2DecoderModule.WASMMemoryManager.LoadBinariesFromCurrentThread=!0,o._DecoderModulePromise=Promise.resolve(new o._KTX2DecoderModule.KTX2Decoder))}constructor(s,e=o.DefaultNumWorkers){this._engine=s;const a=typeof e=="object"&&e.workerPool||o.WorkerPool;if(a)o._WorkerPoolPromise=Promise.resolve(a);else{typeof e=="object"?o._KTX2DecoderModule=e?.binariesAndModulesContainer?.jsDecoderModule:typeof KTX2DECODER<"u"&&(o._KTX2DecoderModule=KTX2DECODER);const r=typeof e=="number"?e:e.numWorkers??o.DefaultNumWorkers;o._Initialize(r)}}async _uploadAsync(s,e,a){const r=this._engine.getCaps(),c={astc:!!r.astc,bptc:!!r.bptc,s3tc:!!r.s3tc,pvrtc:!!r.pvrtc,etc2:!!r.etc2,etc1:!!r.etc1};if(o._WorkerPoolPromise){const i=await o._WorkerPoolPromise;return await new Promise((f,l)=>{i.push((R,T)=>{const C=S=>{R.removeEventListener("error",C),R.removeEventListener("message",p),l(S),T()},p=S=>{if(S.data.action==="decoded"){if(R.removeEventListener("error",C),R.removeEventListener("message",p),!S.data.success)l({message:S.data.msg});else try{this._createTexture(S.data.decodedData,e,a),f()}catch(u){l({message:u})}T()}};R.addEventListener("error",C),R.addEventListener("message",p),R.postMessage({action:"setDefaultDecoderOptions",options:o.DefaultDecoderOptions._getKTX2DecoderOptions()});const B=new Uint8Array(s.byteLength);B.set(new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),R.postMessage({action:"decode",data:B,caps:c,options:a},[B.buffer])})})}else if(o._DecoderModulePromise){const i=await o._DecoderModulePromise;return o.DefaultDecoderOptions.isDirty&&(o._KTX2DecoderModule.KTX2Decoder.DefaultDecoderOptions=o.DefaultDecoderOptions._getKTX2DecoderOptions()),await new Promise((f,l)=>{i.decode(s,r).then(R=>{this._createTexture(R,e),f()}).catch(R=>{l({message:R})})})}throw new Error("KTX2 decoder module is not available")}_createTexture(s,e,a){this._engine._bindTextureDirectly(3553,e),a&&(a.transcodedFormat=s.transcodedFormat,a.isInGammaSpace=s.isInGammaSpace,a.hasAlpha=s.hasAlpha,a.transcoderName=s.transcoderName);let c=!0;switch(s.transcodedFormat){case 32856:e.type=0,e.format=5;break;case 33321:e.type=0,e.format=6;break;case 33323:e.type=0,e.format=7;break;default:e.format=s.transcodedFormat,c=!1;break}if(e._gammaSpace=s.isInGammaSpace,e.generateMipMaps=s.mipmaps.length>1,e.width=s.mipmaps[0].width,e.height=s.mipmaps[0].height,s.errors)throw new Error("KTX2 container - could not transcode the data. "+s.errors);for(let i=0;i<s.mipmaps.length;++i){const f=s.mipmaps[i];if(!f||!f.data)throw new Error("KTX2 container - could not transcode one of the image");c?(e.width=f.width,e.height=f.height,this._engine._uploadDataToTextureDirectly(e,f.data,0,i,void 0,!0)):this._engine._uploadCompressedDataToTextureDirectly(e,s.transcodedFormat,f.width,f.height,f.data,0,i)}e._extension=".ktx2",e.isReady=!0,this._engine._bindTextureDirectly(3553,null)}static IsValid(s){if(s.byteLength>=12){const e=new Uint8Array(s.buffer,s.byteOffset,12);if(e[0]===171&&e[1]===75&&e[2]===84&&e[3]===88&&e[4]===32&&e[5]===50&&e[6]===48&&e[7]===187&&e[8]===13&&e[9]===10&&e[10]===26&&e[11]===10)return!0}return!1}}o.URLConfig={jsDecoderModule:"https://cdn.babylonjs.com/babylon.ktx2Decoder.js",wasmUASTCToASTC:null,wasmUASTCToBC7:null,wasmUASTCToRGBA_UNORM:null,wasmUASTCToRGBA_SRGB:null,wasmUASTCToR8_UNORM:null,wasmUASTCToRG8_UNORM:null,jsMSCTranscoder:null,wasmMSCTranscoder:null,wasmZSTDDecoder:null};o.DefaultNumWorkers=o.GetDefaultNumWorkers();o.DefaultDecoderOptions=new w;function D(t){switch(t){case 35916:return 33776;case 35918:return 33778;case 35919:return 33779;case 37493:return 37492;case 37497:return 37496;case 37495:return 37494;case 37840:return 37808;case 37841:return 37809;case 37842:return 37810;case 37843:return 37811;case 37844:return 37812;case 37845:return 37813;case 37846:return 37814;case 37847:return 37815;case 37848:return 37816;case 37849:return 37817;case 37850:return 37818;case 37851:return 37819;case 37852:return 37820;case 37853:return 37821;case 36493:return 36492}return null}class O{constructor(){this.supportCascades=!1}loadCubeData(s,e,a,r){if(Array.isArray(s))return;e._invertVScale=!e.invertY;const c=e.getEngine(),i=new n(s,6),f=D(i.glInternalFormat);f!==null?(e.format=f,e._useSRGBBuffer=c._getUseSRGBBuffer(!0,!e.generateMipMaps),e._gammaSpace=!0):e.format=i.glInternalFormat;const l=i.numberOfMipmapLevels>1&&e.generateMipMaps;c._unpackFlipY(!0),i.uploadLevels(e,e.generateMipMaps),e.width=i.pixelWidth,e.height=i.pixelHeight,c._setCubeMapTextureParams(e,l,i.numberOfMipmapLevels-1),e.isReady=!0,e.onLoadedObservable.notifyObservers(e),e.onLoadedObservable.clear(),r&&r()}loadData(s,e,a,r){if(n.IsValid(s)){e._invertVScale=!e.invertY;const c=new n(s,1),i=D(c.glInternalFormat);i!==null?(e.format=i,e._useSRGBBuffer=e.getEngine()._getUseSRGBBuffer(!0,!e.generateMipMaps),e._gammaSpace=!0):e.format=c.glInternalFormat,a(c.pixelWidth,c.pixelHeight,e.generateMipMaps,!0,()=>{c.uploadLevels(e,e.generateMipMaps)},c.isInvalid)}else o.IsValid(s)?new o(e.getEngine())._uploadAsync(s,e,r).then(()=>{a(e.width,e.height,e.generateMipMaps,!0,()=>{},!1)},i=>{_.Warn(`Failed to load KTX2 texture data: ${i.message}`),a(0,0,!1,!1,()=>{},!0)}):(_.Error("texture missing KTX identifier"),a(0,0,!1,!1,()=>{},!0))}}export{O as _KTXTextureLoader};
|
python_cad_tools/_viewer_static/assets/{lightFragment-skHiFbKB.js → lightFragment-CDLhoaId.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";const i="decalFragment",o=`#ifdef DECAL
|
|
2
2
|
var decalTempColor=decalColor.rgb;var decalTempAlpha=decalColor.a;
|
|
3
3
|
#ifdef GAMMADECAL
|
|
4
4
|
decalTempColor=toLinearSpaceVec3(decalColor.rgb);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as t}from"./index-
|
|
1
|
+
import{S as t}from"./index-JRwY7p9T.js";const e="logDepthDeclaration",o=`#ifdef LOGARITHMICDEPTH
|
|
2
2
|
uniform logarithmicDepthConstant: f32;varying vFragmentDepth: f32;
|
|
3
3
|
#endif
|
|
4
4
|
`;t.IncludesShadersStoreWGSL[e]||(t.IncludesShadersStoreWGSL[e]=o);const a={name:e,shader:o};export{a as l};
|
python_cad_tools/_viewer_static/assets/{logDepthVertex-UKrhEIvg.js → logDepthVertex-BIA9Xrid.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";const t="fogVertexDeclaration",o=`#ifdef FOG
|
|
2
2
|
varying vFogDistance: vec3f;
|
|
3
3
|
#endif
|
|
4
4
|
`;e.IncludesShadersStoreWGSL[t]||(e.IncludesShadersStoreWGSL[t]=o);const i={name:t,shader:o},s="fogVertex",n=`#ifdef FOG
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";const a="mainUVVaryingDeclaration",n=`#ifdef MAINUV{X}
|
|
2
2
|
varying vMainUV{X}: vec2f;
|
|
3
3
|
#endif
|
|
4
4
|
`;e.IncludesShadersStoreWGSL[a]||(e.IncludesShadersStoreWGSL[a]=n);const i={name:a,shader:n};export{i as m};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as s}from"./index-
|
|
1
|
+
import{S as s}from"./index-JRwY7p9T.js";const e="meshUboDeclaration",r=`struct Mesh {world : mat4x4<f32>,
|
|
2
2
|
visibility : f32,};var<uniform> mesh : Mesh;
|
|
3
3
|
#define WORLD_UBO
|
|
4
4
|
`;s.IncludesShadersStoreWGSL[e]||(s.IncludesShadersStoreWGSL[e]=r);const t={name:e,shader:r};export{t as m};
|
python_cad_tools/_viewer_static/assets/{openpbr.fragment-Dv6qTVVi.js → openpbr.fragment-BAOdoy3Z.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";import{p as w,o as X,l as H,i as V,t as B,b as k,s as Y,a as Z,c as j,d as $,e as q}from"./oitFragment-DpKfMtsk.js";import{s as K}from"./sceneUboDeclaration-BmpwedcW.js";import{m as Q}from"./meshUboDeclaration-BfPhZsyr.js";import{o as J}from"./openpbrUboDeclaration-piwBvKOi.js";import{m as ee}from"./mainUVVaryingDeclaration-PmIDYGIz.js";import{p as re,s as ae,i as te,a as ie,b as ne,c as oe,h as fe,d as se,e as le,f as ce,g as _e,j as me}from"./pbrDebug-5RaK38tC.js";import{s as de,r as ue}from"./reflectionFunction-n0dvho3A.js";import{p as pe,a as ge}from"./pbrIBLFunctions-D_X-tzpO.js";import{c as ve,a as Ee}from"./clipPlaneFragment-pIdOfJ_5.js";import{l as Se}from"./logDepthDeclaration-BOlhc3aa.js";import{f as he,l as Ie,a as Re}from"./fogFragment-pKchdx3M.js";import{h as be}from"./helperFunctions-Bx8RYYvi.js";import{h as Ne}from"./harmonicsFunctions-BkifmnNV.js";import{p as Te}from"./pbrBRDFFunctions-Dv8-Akv1.js";import{o as Ae,a as Le,b as Fe,d as De,c as Oe}from"./openpbrTransmissionLayerData-1U_DHNWK.js";const a="openpbrFragmentSamplersDeclaration",I=`#include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_COLOR,_VARYINGNAME_,BaseColor,_SAMPLERNAME_,baseColor)
|
|
2
2
|
#include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_WEIGHT,_VARYINGNAME_,BaseWeight,_SAMPLERNAME_,baseWeight)
|
|
3
3
|
#include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_DIFFUSE_ROUGHNESS,_VARYINGNAME_,BaseDiffuseRoughness,_SAMPLERNAME_,baseDiffuseRoughness)
|
|
4
4
|
#include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_METALNESS,_VARYINGNAME_,BaseMetalness,_SAMPLERNAME_,baseMetalness)
|
python_cad_tools/_viewer_static/assets/{openpbr.fragment-DPJPqi6p.js → openpbr.fragment-BmgNfxS4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,cn as H,co as B,cp as V,s as k,m as Y,bf as Z,cq as $,cr as j,cs as q,an as K,ap as Q,ct as J,ah as ee,o as ie,ai as oe,cu as ae,p as te,cv as re,cw as ne,cx as se,cy as ce,cz as fe,aG as le,cA as _e,cB as de,cC as me,aq as ue,cD as ge,cE as Ee,ar as ve,as as pe,al as he,cF as Ie,cG as Re,aj as Se,ak as Te,cH as Ae,cI as Ne,cJ as be}from"./index-
|
|
1
|
+
import{S as e,cn as H,co as B,cp as V,s as k,m as Y,bf as Z,cq as $,cr as j,cs as q,an as K,ap as Q,ct as J,ah as ee,o as ie,ai as oe,cu as ae,p as te,cv as re,cw as ne,cx as se,cy as ce,cz as fe,aG as le,cA as _e,cB as de,cC as me,aq as ue,cD as ge,cE as Ee,ar as ve,as as pe,al as he,cF as Ie,cG as Re,aj as Se,ak as Te,cH as Ae,cI as Ne,cJ as be}from"./index-JRwY7p9T.js";import{s as Fe,o as Le,a as De,b as Oe,d as Ce,c as Pe}from"./openpbrTransmissionLayerData-BClMu_zp.js";import{o as Me}from"./openpbrUboDeclaration-DLujw3YH.js";const o="openpbrFragmentDeclaration",S=`uniform float vBaseWeight;uniform vec4 vBaseColor;uniform float vBaseDiffuseRoughness;uniform vec4 vReflectanceInfo;uniform vec4 vSpecularColor;uniform vec3 vSpecularAnisotropy;uniform float vTransmissionWeight;uniform vec3 vTransmissionColor;uniform float vTransmissionDepth;uniform vec3 vTransmissionScatter;uniform float vTransmissionScatterAnisotropy;uniform float vTransmissionDispersionScale;uniform float vTransmissionDispersionAbbeNumber;uniform float vSubsurfaceWeight;uniform vec3 vSubsurfaceColor;uniform float vSubsurfaceRadius;uniform vec3 vSubsurfaceRadiusScale;uniform float vSubsurfaceScatterAnisotropy;uniform float vCoatWeight;uniform vec3 vCoatColor;uniform float vCoatRoughness;uniform float vCoatRoughnessAnisotropy;uniform float vCoatIor;uniform float vCoatDarkening;uniform float vFuzzWeight;uniform vec3 vFuzzColor;uniform float vFuzzRoughness;uniform vec2 vGeometryCoatTangent;uniform float vGeometryThickness;uniform vec3 vEmissionColor;uniform float vThinFilmWeight;uniform vec2 vThinFilmThickness;uniform float vThinFilmIor;uniform float vGeometryThinWalled;uniform vec4 vLightingIntensity;uniform float visibility;uniform vec2 renderTargetSize;
|
|
2
2
|
#ifdef BASE_COLOR
|
|
3
3
|
uniform vec2 vBaseColorInfos;
|
|
4
4
|
#endif
|
python_cad_tools/_viewer_static/assets/{openpbr.vertex-CHESW3gB.js → openpbr.vertex-BpB-7aXl.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-JRwY7p9T.js";import{s as _}from"./sceneUboDeclaration-BmpwedcW.js";import{m as s}from"./meshUboDeclaration-BfPhZsyr.js";import{o as N}from"./openpbrUboDeclaration-piwBvKOi.js";import{u as l,p as A,s as I,l as c,v as d,a as m,b as M,c as f,d as u,e as p,f as R}from"./vertexColorMixing-f4wQRwGI.js";import{m as S}from"./mainUVVaryingDeclaration-PmIDYGIz.js";import{h as V}from"./helperFunctions-Bx8RYYvi.js";import{p as T}from"./pbrBRDFFunctions-Dv8-Akv1.js";import{b as x,a as O,i as D,m as v,c as G,d as F,e as C,f as L,g as W,h as U}from"./bakedVertexAnimation-_xBvgBl7.js";import{h as g}from"./harmonicsFunctions-BkifmnNV.js";import{c as h,a as Y}from"./clipPlaneVertex-Kl_G8tpP.js";import{f as P,a as b,l as X}from"./logDepthVertex-BIA9Xrid.js";import{l as y}from"./logDepthDeclaration-BOlhc3aa.js";const t="openpbrNormalMapVertexDeclaration",a=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC) || defined(FUZZ)
|
|
2
2
|
#if defined(TANGENT) && defined(NORMAL)
|
|
3
3
|
varying vTBN0: vec3f;varying vTBN1: vec3f;varying vTBN2: vec3f;
|
|
4
4
|
#endif
|
python_cad_tools/_viewer_static/assets/{openpbr.vertex-Bn2wrdGL.js → openpbr.vertex-D-IjPutK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,bd as A,s as I,m as f,be as c,bf as m,p as d,aq as M,aB as u,aC as R,aF as S,bg as T,bh as p,aG as O,l as D,n as V,bi as v,bj as x,aD as C,aE as F,o as h,aH as G,aI as g,aJ as U,aK as L,aL as P,bk as Y,bl as W,bm as b,q as H,r as y,bn as B,bo as X,t as z}from"./index-
|
|
1
|
+
import{S as e,bd as A,s as I,m as f,be as c,bf as m,p as d,aq as M,aB as u,aC as R,aF as S,bg as T,bh as p,aG as O,l as D,n as V,bi as v,bj as x,aD as C,aE as F,o as h,aH as G,aI as g,aJ as U,aK as L,aL as P,bk as Y,bl as W,bm as b,q as H,r as y,bn as B,bo as X,t as z}from"./index-JRwY7p9T.js";import{o as Z}from"./openpbrUboDeclaration-DLujw3YH.js";const n="sceneVertexDeclaration",E=`uniform mat4 viewProjection;
|
|
2
2
|
#ifdef MULTIVIEW
|
|
3
3
|
uniform mat4 viewProjectionR;
|
|
4
4
|
#endif
|