python-cad-tools 0.1.3.dev2__py3-none-any.whl → 0.1.4__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/_viewer_static/asset-manifest.json +1 -1
- python_cad_tools/_viewer_static/assets/{animationGroup-CjhCwiIi.js → animationGroup-DsIEQ73q.js} +1 -1
- python_cad_tools/_viewer_static/assets/{bakedVertexAnimation-_xBvgBl7.js → bakedVertexAnimation-CZalW6MY.js} +1 -1
- python_cad_tools/_viewer_static/assets/{basisTextureLoader-D5LtrhD-.js → basisTextureLoader-COAjXVqP.js} +1 -1
- python_cad_tools/_viewer_static/assets/{brdfTextureTools-D9U08KSH.js → brdfTextureTools-BHIclPmG.js} +2 -2
- python_cad_tools/_viewer_static/assets/{bumpFragment-BkzgDMwt.js → bumpFragment-VvIKAANw.js} +1 -1
- python_cad_tools/_viewer_static/assets/{bumpVertex-BXtiaDZI.js → bumpVertex-DLicej86.js} +1 -1
- python_cad_tools/_viewer_static/assets/{bumpVertexDeclaration-CchYDl1F.js → bumpVertexDeclaration-DaRKbtcX.js} +1 -1
- python_cad_tools/_viewer_static/assets/{clipPlaneFragment-pIdOfJ_5.js → clipPlaneFragment-Cllz8e_G.js} +1 -1
- python_cad_tools/_viewer_static/assets/{clipPlaneVertex-Kl_G8tpP.js → clipPlaneVertex-ChqMABPH.js} +1 -1
- python_cad_tools/_viewer_static/assets/{cubemapToSphericalPolynomial-CJ4cRmPh.js → cubemapToSphericalPolynomial-Xk086_Qo.js} +1 -1
- python_cad_tools/_viewer_static/assets/dds-C6ZccGbi.js +1 -0
- python_cad_tools/_viewer_static/assets/{dds.pure-BoNGq59u.js → dds.pure-DQ1rbFUk.js} +1 -1
- python_cad_tools/_viewer_static/assets/{ddsTextureLoader-D8JRisWC.js → ddsTextureLoader-CL_A0T2G.js} +1 -1
- python_cad_tools/_viewer_static/assets/{default.fragment-D0gXI89M.js → default.fragment-hdxpe8Dp.js} +1 -1
- python_cad_tools/_viewer_static/assets/{default.vertex-BdO0XLk6.js → default.vertex-BLL2IEXP.js} +1 -1
- python_cad_tools/_viewer_static/assets/{defaultUboDeclaration-BJ4b62qj.js → defaultUboDeclaration-kpQOJEVS.js} +1 -1
- python_cad_tools/_viewer_static/assets/{dumpTools-B7F8Ed3A.js → dumpTools-CUtvg5MO.js} +2 -2
- python_cad_tools/_viewer_static/assets/{envTextureLoader-BnvTfKgF.js → envTextureLoader-Bha4zu64.js} +1 -1
- python_cad_tools/_viewer_static/assets/{exrTextureLoader-C2D3Wx-p.js → exrTextureLoader-DGetsIyD.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphApplyForceBlock-C08kKLog.js → flowGraphApplyForceBlock-D0SE4mA-.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphApplyImpulseBlock-GzK2l9nm.js → flowGraphApplyImpulseBlock-DTkgPEFB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphArrayIndexBlock-DkRHIuYC.js → flowGraphArrayIndexBlock-Cjyt2bwB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphBezierCurveEasingBlock-Csol8jUn.js → flowGraphBezierCurveEasingBlock-DWxYlhxj.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphBinaryOperationBlock-C-xEeg-Z.js → flowGraphBinaryOperationBlock-BeXLKyeD.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphBranchBlock-D7bstQqM.js → flowGraphBranchBlock-BqigJ1AN.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphCachedOperationBlock-C0pDPzaF.js → flowGraphCachedOperationBlock-D2544szv.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphCancelDelayBlock-VwnDZhN9.js → flowGraphCancelDelayBlock-DS-QhXgE.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphCodeExecutionBlock-C5aa0K7t.js → flowGraphCodeExecutionBlock-BY0Vhd0M.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphConditionalDataBlock-B4vfaSDi.js → flowGraphConditionalDataBlock-DoNGzuFZ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphConsoleLogBlock-CuLlYu4c.js → flowGraphConsoleLogBlock-CL1zETuj.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphConstantBlock-DkyD6_YZ.js → flowGraphConstantBlock-b0L3Bfv_.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphContextBlock-IKUbfY32.js → flowGraphContextBlock-CE3gLEM4.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphCounterBlock-tP_5qAQn.js → flowGraphCounterBlock-Z6deq4Xb.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphDataSwitchBlock-DiTgopj3.js → flowGraphDataSwitchBlock-wfFU7ZMz.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphDebounceBlock-FLUJTpdt.js → flowGraphDebounceBlock-B5U221PZ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphDebugBlock-C0EH9zPP.js → flowGraphDebugBlock-CpuIkgZU.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphDoNBlock-DiAdBjnD.js → flowGraphDoNBlock-ByWmK6vQ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphEasingBlock-CXlIILZe.js → flowGraphEasingBlock-CRs4rMj_.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphFlipFlopBlock-5XRf4KeD.js → flowGraphFlipFlopBlock-CK5fJiSy.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphForLoopBlock-RitJ6OS_.js → flowGraphForLoopBlock-H1FPxMZo.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphFunctionReferenceBlock-DvVIlipg.js → flowGraphFunctionReferenceBlock-DrieLYOj.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGLTFDataProvider-BxBUrprf.js → flowGraphGLTFDataProvider-D7vSBwR1.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetAngularVelocityBlock-CqBDBjqf.js → flowGraphGetAngularVelocityBlock-CkYrIYRL.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetAssetBlock-Dk4qKn1w.js → flowGraphGetAssetBlock-BOr56oxs.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetLinearVelocityBlock-DNN6N9mt.js → flowGraphGetLinearVelocityBlock-4Mn8MDsq.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetPhysicsMassPropertiesBlock-CTsHqDvM.js → flowGraphGetPhysicsMassPropertiesBlock-DwufqO-4.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetPropertyBlock-CjX3cseU.js → flowGraphGetPropertyBlock-CAeZqGoL.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetSoundVolumeBlock-DzWJtlM9.js → flowGraphGetSoundVolumeBlock-DfnjXMG_.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphGetVariableBlock-uBq6vXOw.js → flowGraphGetVariableBlock-Bw2aRjaE.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphIndexOfBlock-MpANR6P1.js → flowGraphIndexOfBlock-DuZkczUp.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphInterpolationBlock-BM2_pZfB.js → flowGraphInterpolationBlock-CQUVrJhI.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphIsKeyPressedBlock-X1Q2SR0H.js → flowGraphIsKeyPressedBlock-CKMqA1DR.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphIsSoundPlayingBlock-C_ir8hba.js → flowGraphIsSoundPlayingBlock-CIAX4gsj.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphJsonPointerParserBlock-I5tJhTaw.js → flowGraphJsonPointerParserBlock-Bt9WkFOM.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphKeyDownEventBlock-DSmmDXBR.js → flowGraphKeyDownEventBlock-BwXDwLBi.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphKeyUpEventBlock-BDViriRD.js → flowGraphKeyUpEventBlock-BH_q1Ope.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphKeyboardEventBlock-B7EQjaZe.js → flowGraphKeyboardEventBlock-CU8VJhCC.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphMathBlocks-RIndR7Kr.js → flowGraphMathBlocks-TXHKXyeY.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphMathCombineExtractBlocks-BEMkyBCM.js → flowGraphMathCombineExtractBlocks-DKuB9Mlq.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphMatrixMathBlocks-BAV1wScN.js → flowGraphMatrixMathBlocks-BGDHmBFG.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphMeshPickEventBlock-CcNT5f0d.js → flowGraphMeshPickEventBlock-DdOr-Hvu.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphMultiGateBlock-DSEbX2Mj.js → flowGraphMultiGateBlock-qMXK-ALx.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPauseAnimationBlock-Dfthx2s-.js → flowGraphPauseAnimationBlock-hPtKOUnY.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPauseSoundBlock-DSu8v9Kr.js → flowGraphPauseSoundBlock-BGBSlkM3.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPhysicsCollisionEventBlock-jvE_54c8.js → flowGraphPhysicsCollisionEventBlock-7YfMt_A1.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPlayAnimationBlock-DK8Z5heh.js → flowGraphPlayAnimationBlock-C9_H0W1H.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPlaySoundBlock-XiF7wfi1.js → flowGraphPlaySoundBlock-BhG6uJmA.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPointerDownEventBlock-BOqQHgdZ.js → flowGraphPointerDownEventBlock-GBPgkHfj.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPointerMoveEventBlock-DggBfxkF.js → flowGraphPointerMoveEventBlock-B9xb5ipq.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPointerOutEventBlock-DvZyyUF4.js → flowGraphPointerOutEventBlock-DZE1Ulng.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPointerOverEventBlock-YLki8WEB.js → flowGraphPointerOverEventBlock-Bx_Bbmlm.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphPointerUpEventBlock-D1tqJ9jF.js → flowGraphPointerUpEventBlock-Lfu7DTHO.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphReceiveCustomEventBlock-D3VAKTpt.js → flowGraphReceiveCustomEventBlock-CNMufa4Q.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSceneReadyEventBlock-Dt8AsNSg.js → flowGraphSceneReadyEventBlock-BInxhpxK.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSceneTickEventBlock-BtuZ_Spn.js → flowGraphSceneTickEventBlock-DTDZyoc3.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSendCustomEventBlock-B8Dzycmf.js → flowGraphSendCustomEventBlock-BOGgKOnP.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSequenceBlock-CQsb2okn.js → flowGraphSequenceBlock-D-FGr9Zw.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetAngularVelocityBlock-C3zOq5X7.js → flowGraphSetAngularVelocityBlock-CH6VePBl.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetDelayBlock-DxyUb-8k.js → flowGraphSetDelayBlock-n6qAMb7Q.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetLinearVelocityBlock-DeNTJQ42.js → flowGraphSetLinearVelocityBlock-DcqJhGqB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetPhysicsMotionTypeBlock-i233RoWe.js → flowGraphSetPhysicsMotionTypeBlock-DRWqANvn.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetPropertyBlock-Darrnz2o.js → flowGraphSetPropertyBlock-D_IoFmjW.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetSoundVolumeBlock-KrTTGHr6.js → flowGraphSetSoundVolumeBlock-Cu0qdSne.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSetVariableBlock-8CdS1h8e.js → flowGraphSetVariableBlock-ob3vWA--.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSoundEndedEventBlock-Cuk8JjDG.js → flowGraphSoundEndedEventBlock-C2d303hL.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphStopAnimationBlock-DOsG4sc5.js → flowGraphStopAnimationBlock-BqCklpFH.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphStopSoundBlock-C5IaCPpa.js → flowGraphStopSoundBlock-bk8E55Bx.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphSwitchBlock-ClqiypjM.js → flowGraphSwitchBlock-DvwhuZhG.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphThrottleBlock-C7hhfNo2.js → flowGraphThrottleBlock-DG8TRsJy.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphTransformCoordinatesSystemBlock-BksU6sPJ.js → flowGraphTransformCoordinatesSystemBlock-CH4muGsP.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphTypeToTypeBlocks-DJi_CBW-.js → flowGraphTypeToTypeBlocks-C7hV0GKG.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphUnaryOperationBlock-U15mYQbJ.js → flowGraphUnaryOperationBlock-DiLGLHtc.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphVectorMathBlocks-D4QAvgsk.js → flowGraphVectorMathBlocks-USb1v61c.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphWaitAllBlock-UV6LDk1r.js → flowGraphWaitAllBlock-D5X16kvu.js} +1 -1
- python_cad_tools/_viewer_static/assets/{flowGraphWhileLoopBlock-DPpNHwZP.js → flowGraphWhileLoopBlock-Be9fTLoy.js} +1 -1
- python_cad_tools/_viewer_static/assets/{fogFragment-pKchdx3M.js → fogFragment-BzLCRCIz.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting-oRLzV71m.js → gaussianSplatting-CAfPyqPa.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting-DgjcxjKa.js → gaussianSplatting-DPftVbu_.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting.fragment-BKYuCXf7.js → gaussianSplatting.fragment--eSkFo4e.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting.fragment-NCxeyHg7.js → gaussianSplatting.fragment-bBe4NB4J.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting.vertex-CW0PXB4s.js → gaussianSplatting.vertex-56pdhT0C.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplatting.vertex-zmXoP8p9.js → gaussianSplatting.vertex-B1n9hp15.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.fragment-CgX-XH5m.js → gaussianSplattingVoxel.fragment-BZapF5sB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.fragment--IDQcS1p.js → gaussianSplattingVoxel.fragment-CX6nBRSU.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.vertex-DzuuyEGB.js → gaussianSplattingVoxel.vertex-COp6zd-l.js} +1 -1
- python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.vertex-YB1C1Muy.js → gaussianSplattingVoxel.vertex-aXKOzvn3.js} +1 -1
- python_cad_tools/_viewer_static/assets/{geometry.fragment-EEbMy57o.js → geometry.fragment-BEdt-FQu.js} +1 -1
- python_cad_tools/_viewer_static/assets/{geometry.fragment-DuBDWlLB.js → geometry.fragment-Dr1pGbVQ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{geometry.vertex-3cVZEKxJ.js → geometry.vertex--elQa6vQ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{geometry.vertex-B--XA-QK.js → geometry.vertex-C4cLov7Q.js} +1 -1
- python_cad_tools/_viewer_static/assets/{glowBlurPostProcess.fragment-UNz8njEJ.js → glowBlurPostProcess.fragment-C_S_GG9X.js} +1 -1
- python_cad_tools/_viewer_static/assets/{glowMapGeneration.fragment-CsSqgq6c.js → glowMapGeneration.fragment-B9tAmR9r.js} +1 -1
- python_cad_tools/_viewer_static/assets/{glowMapGeneration.vertex-DOMHadFA.js → glowMapGeneration.vertex-CEIj_3tv.js} +1 -1
- python_cad_tools/_viewer_static/assets/{glowMapMerge.fragment-DXi2v5pz.js → glowMapMerge.fragment-C0kWfvu0.js} +1 -1
- python_cad_tools/_viewer_static/assets/{glowMapMerge.vertex-DgBSWFHP.js → glowMapMerge.vertex-DPy1k2mD.js} +1 -1
- python_cad_tools/_viewer_static/assets/{harmonicsFunctions-BkifmnNV.js → harmonicsFunctions-BVmgiiRj.js} +1 -1
- python_cad_tools/_viewer_static/assets/{helperFunctions-Bx8RYYvi.js → helperFunctions-DeCJcXoK.js} +1 -1
- python_cad_tools/_viewer_static/assets/{iesTextureLoader-Dj5K0vc1.js → iesTextureLoader-CLEy0Gjc.js} +1 -1
- python_cad_tools/_viewer_static/assets/{index-JRwY7p9T.js → index-YcXsPtFI.js} +21 -19
- python_cad_tools/_viewer_static/assets/{kernelBlur.fragment-BRdwtDs7.js → kernelBlur.fragment-DhmP78e4.js} +1 -1
- python_cad_tools/_viewer_static/assets/{kernelBlur.fragment-B9YDiI_M.js → kernelBlur.fragment-DzyofO4j.js} +1 -1
- python_cad_tools/_viewer_static/assets/{kernelBlur.vertex-CWlIunB6.js → kernelBlur.vertex-1S6DR99z.js} +1 -1
- python_cad_tools/_viewer_static/assets/{kernelBlur.vertex-A7OpqdrG.js → kernelBlur.vertex-BUw8hyu8.js} +1 -1
- python_cad_tools/_viewer_static/assets/{kernelBlurVaryingDeclaration-PE5ICZNw.js → kernelBlurVaryingDeclaration-DPnSKXPz.js} +1 -1
- python_cad_tools/_viewer_static/assets/{kernelBlurVaryingDeclaration-YMenN7Se.js → kernelBlurVaryingDeclaration-GWJW2YR3.js} +1 -1
- python_cad_tools/_viewer_static/assets/{ktxTextureLoader-uG9TUdGM.js → ktxTextureLoader-Bz9RqBRq.js} +1 -1
- python_cad_tools/_viewer_static/assets/{lightFragment-CDLhoaId.js → lightFragment-BRkIPUO1.js} +1 -1
- python_cad_tools/_viewer_static/assets/{logDepthDeclaration-BOlhc3aa.js → logDepthDeclaration-DHeJwlJR.js} +1 -1
- python_cad_tools/_viewer_static/assets/{logDepthVertex-BIA9Xrid.js → logDepthVertex-Dt5zdVFA.js} +1 -1
- python_cad_tools/_viewer_static/assets/{mainUVVaryingDeclaration-PmIDYGIz.js → mainUVVaryingDeclaration-CoUbOUEQ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{meshUboDeclaration-BfPhZsyr.js → meshUboDeclaration-dDsFbRSv.js} +1 -1
- python_cad_tools/_viewer_static/assets/{oitFragment-DpKfMtsk.js → oitFragment-C1JYx8fS.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbr.fragment-BAOdoy3Z.js → openpbr.fragment-BJTs78x9.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbr.fragment-BmgNfxS4.js → openpbr.fragment-CnBW8BK7.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbr.vertex-BpB-7aXl.js → openpbr.vertex-Cis9aL4z.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbr.vertex-D-IjPutK.js → openpbr.vertex-Qr3-JJak.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbrMaterial.pure-C6V2SeQx.js → openpbrMaterial.pure-CyogTmBA.js} +3 -3
- python_cad_tools/_viewer_static/assets/{openpbrMaterialLoadingAdapter-CbcwuEwB.js → openpbrMaterialLoadingAdapter-Ia3_0Gp8.js} +2 -2
- python_cad_tools/_viewer_static/assets/{openpbrTransmissionLayerData-BClMu_zp.js → openpbrTransmissionLayerData-D2UaStdu.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbrTransmissionLayerData-1U_DHNWK.js → openpbrTransmissionLayerData-Yc4m_LFv.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbrUboDeclaration-piwBvKOi.js → openpbrUboDeclaration-DfY3S0VX.js} +1 -1
- python_cad_tools/_viewer_static/assets/{openpbrUboDeclaration-DLujw3YH.js → openpbrUboDeclaration-YAeSpo2n.js} +1 -1
- python_cad_tools/_viewer_static/assets/{packingFunctions-BD5WZtBT.js → packingFunctions-BWIusbYB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{packingFunctions-D3gaUkUa.js → packingFunctions-yE7XM0N6.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pass.fragment-CzZpaqYk.js → pass.fragment-DsLu0lV1.js} +1 -1
- python_cad_tools/_viewer_static/assets/{passCube.fragment-DwRJ1H1s.js → passCube.fragment-CmSU0-bM.js} +1 -1
- python_cad_tools/_viewer_static/assets/{passCube.fragment-Bso78Amo.js → passCube.fragment-CwkS-Cl_.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbr.fragment-sZ-foSaO.js → pbr.fragment-BUBggeRz.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbr.vertex-PBjkpyNN.js → pbr.vertex-BXB7uMkC.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbrBRDFFunctions-Dv8-Akv1.js → pbrBRDFFunctions-C50h7JEU.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbrDebug-5RaK38tC.js → pbrDebug-RHma8ghT.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbrIBLFunctions-D_X-tzpO.js → pbrIBLFunctions-D5A_AxnZ.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbrMaterial.pure-RJ6tVczH.js → pbrMaterial.pure-DN58n3w5.js} +2 -2
- python_cad_tools/_viewer_static/assets/{pbrMaterialLoadingAdapter-BqlfZ1xs.js → pbrMaterialLoadingAdapter-COioUqvP.js} +1 -1
- python_cad_tools/_viewer_static/assets/{pbrUboDeclaration-BqNgF1qB.js → pbrUboDeclaration-CMkwjzTB.js} +1 -1
- python_cad_tools/_viewer_static/assets/{postprocess.vertex-9J4kRI6V.js → postprocess.vertex-DYv0bAut.js} +1 -1
- python_cad_tools/_viewer_static/assets/{procedural.vertex-Bq_A-zE0.js → procedural.vertex-BMAV1XYH.js} +1 -1
- python_cad_tools/_viewer_static/assets/{procedural.vertex-DzkBufoo.js → procedural.vertex-CRCZXfiw.js} +1 -1
- python_cad_tools/_viewer_static/assets/{reflectionFunction-n0dvho3A.js → reflectionFunction-CpMEFzxv.js} +1 -1
- python_cad_tools/_viewer_static/assets/{rgbdDecode.fragment-0BuGamw5.js → rgbdDecode.fragment-BZcVE2Bb.js} +1 -1
- python_cad_tools/_viewer_static/assets/{rgbdEncode.fragment-BBGe9kwu.js → rgbdEncode.fragment-BImEwGmR.js} +1 -1
- python_cad_tools/_viewer_static/assets/{rgbdEncode.fragment-DiiD2NE-.js → rgbdEncode.fragment-DPFzMtDN.js} +1 -1
- python_cad_tools/_viewer_static/assets/{sceneUboDeclaration-BmpwedcW.js → sceneUboDeclaration-1bB3YoON.js} +1 -1
- python_cad_tools/_viewer_static/assets/{textureProcessor.fragment-CyBHPXX2.js → textureProcessor.fragment--dZBsr4X.js} +1 -1
- python_cad_tools/_viewer_static/assets/{textureProcessor.fragment-CwNRejEe.js → textureProcessor.fragment-BlZ9kg3B.js} +1 -1
- python_cad_tools/_viewer_static/assets/{tgaTextureLoader-ClB6SRY9.js → tgaTextureLoader-DeroIE2j.js} +1 -1
- python_cad_tools/_viewer_static/assets/{vertexColorMixing-f4wQRwGI.js → vertexColorMixing-C6OHmVcI.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.3.dev2.dist-info → python_cad_tools-0.1.4.dist-info}/METADATA +1 -1
- python_cad_tools-0.1.4.dist-info/RECORD +237 -0
- python_cad_tools/_viewer_static/assets/dds-YsWo1VVF.js +0 -1
- python_cad_tools-0.1.3.dev2.dist-info/RECORD +0 -239
- python_cad_tools-0.1.3.dev2.dist-info/scm_file_list.json +0 -304
- python_cad_tools-0.1.3.dev2.dist-info/scm_version.json +0 -8
- {python_cad_tools-0.1.3.dev2.dist-info → python_cad_tools-0.1.4.dist-info}/WHEEL +0 -0
- {python_cad_tools-0.1.3.dev2.dist-info → python_cad_tools-0.1.4.dist-info}/entry_points.txt +0 -0
- {python_cad_tools-0.1.3.dev2.dist-info → python_cad_tools-0.1.4.dist-info}/licenses/LICENSE +0 -0
- {python_cad_tools-0.1.3.dev2.dist-info → python_cad_tools-0.1.4.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-YcXsPtFI.js";import{k as f}from"./kernelBlurVaryingDeclaration-DPnSKXPz.js";import{p as s}from"./packingFunctions-yE7XM0N6.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-YcXsPtFI.js";import{k as i}from"./kernelBlurVaryingDeclaration-GWJW2YR3.js";import{p as s}from"./packingFunctions-BWIusbYB.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-YcXsPtFI.js";import{k as o}from"./kernelBlurVaryingDeclaration-DPnSKXPz.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,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.js";import{k as d}from"./kernelBlurVaryingDeclaration-GWJW2YR3.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 +1 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.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-YcXsPtFI.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-uG9TUdGM.js → ktxTextureLoader-Bz9RqBRq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
import{L as _,au as d,a_ as G}from"./index-YcXsPtFI.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-CDLhoaId.js → lightFragment-BRkIPUO1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.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-YcXsPtFI.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-BIA9Xrid.js → logDepthVertex-Dt5zdVFA.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.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-YcXsPtFI.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-YcXsPtFI.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-BAOdoy3Z.js → openpbr.fragment-BJTs78x9.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.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-C1JYx8fS.js";import{s as K}from"./sceneUboDeclaration-1bB3YoON.js";import{m as Q}from"./meshUboDeclaration-dDsFbRSv.js";import{o as J}from"./openpbrUboDeclaration-DfY3S0VX.js";import{m as ee}from"./mainUVVaryingDeclaration-CoUbOUEQ.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-RHma8ghT.js";import{s as de,r as ue}from"./reflectionFunction-CpMEFzxv.js";import{p as pe,a as ge}from"./pbrIBLFunctions-D5A_AxnZ.js";import{c as ve,a as Ee}from"./clipPlaneFragment-Cllz8e_G.js";import{l as Se}from"./logDepthDeclaration-DHeJwlJR.js";import{f as he,l as Ie,a as Re}from"./fogFragment-BzLCRCIz.js";import{h as be}from"./helperFunctions-DeCJcXoK.js";import{h as Ne}from"./harmonicsFunctions-BVmgiiRj.js";import{p as Te}from"./pbrBRDFFunctions-C50h7JEU.js";import{o as Ae,a as Le,b as Fe,d as De,c as Oe}from"./openpbrTransmissionLayerData-Yc4m_LFv.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-BmgNfxS4.js → openpbr.fragment-CnBW8BK7.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-YcXsPtFI.js";import{s as Fe,o as Le,a as De,b as Oe,d as Ce,c as Pe}from"./openpbrTransmissionLayerData-D2UaStdu.js";import{o as Me}from"./openpbrUboDeclaration-YAeSpo2n.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-BpB-7aXl.js → openpbr.vertex-Cis9aL4z.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.js";import{s as _}from"./sceneUboDeclaration-1bB3YoON.js";import{m as s}from"./meshUboDeclaration-dDsFbRSv.js";import{o as N}from"./openpbrUboDeclaration-DfY3S0VX.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-C6OHmVcI.js";import{m as S}from"./mainUVVaryingDeclaration-CoUbOUEQ.js";import{h as V}from"./helperFunctions-DeCJcXoK.js";import{p as T}from"./pbrBRDFFunctions-C50h7JEU.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-CZalW6MY.js";import{h as g}from"./harmonicsFunctions-BVmgiiRj.js";import{c as h,a as Y}from"./clipPlaneVertex-ChqMABPH.js";import{f as P,a as b,l as X}from"./logDepthVertex-Dt5zdVFA.js";import{l as y}from"./logDepthDeclaration-DHeJwlJR.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-D-IjPutK.js → openpbr.vertex-Qr3-JJak.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-YcXsPtFI.js";import{o as Z}from"./openpbrUboDeclaration-YAeSpo2n.js";const n="sceneVertexDeclaration",E=`uniform mat4 viewProjection;
|
|
2
2
|
#ifdef MULTIVIEW
|
|
3
3
|
uniform mat4 viewProjectionR;
|
|
4
4
|
#endif
|