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
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./procedural.vertex-
|
|
2
|
-
import{aN as j,au as Z,aO as E,az as Q,aw as Y,aP as ae,aQ as ne,aR as D,aS as J,ay as G,aT as ee,aU as F,aV as L,aA as _,c as I}from"./index-JRwY7p9T.js";class oe{constructor(e){this.name=j.NAME_PROCEDURALTEXTURE,this.scene=e}register(){this.scene._beforeClearStage.registerStep(j.STEP_BEFORECLEAR_PROCEDURALTEXTURE,this,this._beforeClear)}rebuild(){}dispose(){}_beforeClear(){if(this.scene.proceduralTexturesEnabled){Z.StartPerformanceCounter("Procedural textures",this.scene.proceduralTextures.length>0);for(let e=0;e<this.scene.proceduralTextures.length;e++){const s=this.scene.proceduralTextures[e];s._shouldRender()&&s.render()}Z.EndPerformanceCounter("Procedural textures",this.scene.proceduralTextures.length>0)}}}let ue=(()=>{var t;let e=Y,s=[],a,o=[],h=[],f,m=[],x=[],u,d=[],C=[],A,w=[],M=[],O;return t=class extends e{get shaderLanguage(){return this._shaderLanguage}constructor(r,i,l,R,n=null,b=!0,T=!1,q=0){super(null,R,!b),this.isEnabled=(E(this,s),E(this,o,!0)),this.autoClear=(E(this,h),E(this,m,!0)),this.onGenerated=E(this,x),this.onGeneratedObservable=new Q,this.onBeforeGenerationObservable=new Q,this.nodeMaterialSource=null,this.defines="",this._generateMipMaps=E(this,d,void 0),this._drawWrapper=E(this,C),this._textures={},this._size=E(this,w,void 0),this._textureType=E(this,M),this._currentRefreshId=-1,this._frameId=-1,this._refreshRate=1,this._vertexBuffers={},this._uniforms=new Array,this._samplers=new Array,this._floats={},this._ints={},this._floatsArrays={},this._colors3={},this._colors4={},this._vectors2={},this._vectors3={},this._vectors4={},this._matrices={},this._fallbackTextureUsed=!1,this._cachedDefines=null,this._contentUpdateId=-1,this._rtWrapper=null,n!==null&&!(n instanceof Y)?(this._options=n,this._fallbackTexture=n.fallbackTexture??null):(this._options={},this._fallbackTexture=n),this._shaderLanguage=this._options.shaderLanguage??0,R=this.getScene()||ae.LastCreatedScene;let H=R._getComponent(j.NAME_PROCEDURALTEXTURE);H||(H=new oe(R),R._addComponent(H)),this._options.skipSceneRegistration||R.proceduralTextures.push(this),this._fullEngine=R.getEngine(),this.name=r,this.isRenderTarget=!0,this._size=i,this._textureType=q,this._generateMipMaps=b,this._drawWrapper=new ne(this._fullEngine),this.setFragment(l);const ie=this._createRtWrapper(T,i,b,q);this._texture=ie.texture;const z=[];z.push(1,1),z.push(-1,1),z.push(-1,-1),z.push(1,-1),this._vertexBuffers[D.PositionKind]=new D(this._fullEngine,z,D.PositionKind,!1,!1,2),this._createIndexBuffer()}_createRtWrapper(r,i,l,R){return r?(this._rtWrapper=this._fullEngine.createRenderTargetCubeTexture(i,{generateMipMaps:l,generateDepthBuffer:!1,generateStencilBuffer:!1,type:R,...this._options}),this.setFloat("face",0)):(this._rtWrapper=this._fullEngine.createRenderTargetTexture(i,{generateMipMaps:l,generateDepthBuffer:!1,generateStencilBuffer:!1,type:R,...this._options}),this._rtWrapper.is3D&&(this.setFloat("layer",0),this.setInt("layerNum",0))),this._rtWrapper}getEffect(){return this._drawWrapper.effect}_setEffect(r){this._drawWrapper.effect=r}getContent(){return this._contentData&&this._frameId===this._contentUpdateId?this._contentData:(this._contentData?this._contentData.then(r=>{this._contentData=this.readPixels(0,0,r),this._contentUpdateId=this._frameId}):(this._contentData=this.readPixels(0,0),this._contentUpdateId=this._frameId),this._contentData)}_createIndexBuffer(){const r=this._fullEngine,i=[];i.push(0),i.push(1),i.push(2),i.push(0),i.push(2),i.push(3),this._indexBuffer=r.createIndexBuffer(i)}_rebuild(){const r=this._vertexBuffers[D.PositionKind];r&&r._rebuild(),this._createIndexBuffer(),this.refreshRate===J.REFRESHRATE_RENDER_ONCE&&(this.refreshRate=J.REFRESHRATE_RENDER_ONCE)}reset(){this._drawWrapper.effect?.dispose(),this._drawWrapper.effect=null,this._cachedDefines=null}_getDefines(){return this.defines}executeWhenReady(r){if(this.isReady()){r(this);return}const i=this.getEffect();i&&i.executeWhenCompiled(()=>{r(this)})}isReady(){const r=this._fullEngine;if(this.nodeMaterialSource)return this._drawWrapper.effect?.isReady()??!1;if(!this._fragment)return!1;if(this._fallbackTextureUsed)return!0;if(!this._texture)return!1;const i=this._getDefines();if(this._drawWrapper.effect&&i===this._cachedDefines&&this._drawWrapper.effect.isReady())return!0;const l={vertex:"procedural",fragmentElement:this._fragment.fragmentElement,fragmentSource:this._fragment.fragmentSource,fragment:typeof this._fragment=="string"?this._fragment:void 0};return this._cachedDefines!==i&&(this._cachedDefines=i,this._drawWrapper.effect=r.createEffect(l,[D.PositionKind],this._uniforms,this._samplers,i,void 0,void 0,()=>{this._rtWrapper?.dispose(),this._rtWrapper=this._texture=null,this._fallbackTexture&&(this._texture=this._fallbackTexture._texture,this._texture&&this._texture.incrementReferences()),this._fallbackTextureUsed=!0},void 0,this._shaderLanguage,async()=>{this._options.extraInitializationsAsync?this.shaderLanguage===1?await Promise.all([G(()=>import("./procedural.vertex-Bq_A-zE0.js"),__vite__mapDeps([0,1,2]),import.meta.url),this._options.extraInitializationsAsync()]):await Promise.all([G(()=>import("./procedural.vertex-DzkBufoo.js"),__vite__mapDeps([3,1,2]),import.meta.url),this._options.extraInitializationsAsync()]):this.shaderLanguage===1?await G(()=>import("./procedural.vertex-Bq_A-zE0.js"),__vite__mapDeps([0,1,2]),import.meta.url):await G(()=>import("./procedural.vertex-DzkBufoo.js"),__vite__mapDeps([3,1,2]),import.meta.url)})),this._drawWrapper.effect.isReady()}resetRefreshCounter(){this._currentRefreshId=-1}setFragment(r){this._fragment=r}get refreshRate(){return this._refreshRate}set refreshRate(r){this._refreshRate=r,this.resetRefreshCounter()}_shouldRender(){return!this.isEnabled||!this.isReady()||!this._texture?(this._texture&&(this._texture.isReady=!1),!1):this._fallbackTextureUsed?!1:this._currentRefreshId===-1?(this._currentRefreshId=1,this._frameId++,!0):this.refreshRate===this._currentRefreshId?(this._currentRefreshId=1,this._frameId++,!0):(this._currentRefreshId++,!1)}getRenderSize(){return this._size}resize(r,i){if(this._fallbackTextureUsed||!this._rtWrapper||!this._texture)return;const l=this._texture.isCube;this._rtWrapper.dispose();const R=this._createRtWrapper(l,r,i,this._textureType);this._texture=R.texture,this._size=r,this._generateMipMaps=i}_checkUniform(r){this._uniforms.indexOf(r)===-1&&this._uniforms.push(r)}setTexture(r,i){return this._samplers.indexOf(r)===-1&&this._samplers.push(r),this._textures[r]=i,this}setFloat(r,i){return this._checkUniform(r),this._floats[r]=i,this}setInt(r,i){return this._checkUniform(r),this._ints[r]=i,this}setFloats(r,i){return this._checkUniform(r),this._floatsArrays[r]=i,this}setColor3(r,i){return this._checkUniform(r),this._colors3[r]=i,this}setColor4(r,i){return this._checkUniform(r),this._colors4[r]=i,this}setVector2(r,i){return this._checkUniform(r),this._vectors2[r]=i,this}setVector3(r,i){return this._checkUniform(r),this._vectors3[r]=i,this}setVector4(r,i){return this._checkUniform(r),this._vectors4[r]=i,this}setMatrix(r,i){return this._checkUniform(r),this._matrices[r]=i,this}render(r){const i=this.getScene();if(!i)return;const l=this._fullEngine;if(l.enableEffect(this._drawWrapper),this.onBeforeGenerationObservable.notifyObservers(this),l.setState(!1),!this.nodeMaterialSource){for(const n in this._textures)this._drawWrapper.effect.setTexture(n,this._textures[n]);for(const n in this._ints)this._drawWrapper.effect.setInt(n,this._ints[n]);for(const n in this._floats)this._drawWrapper.effect.setFloat(n,this._floats[n]);for(const n in this._floatsArrays)this._drawWrapper.effect.setArray(n,this._floatsArrays[n]);for(const n in this._colors3)this._drawWrapper.effect.setColor3(n,this._colors3[n]);for(const n in this._colors4){const b=this._colors4[n];this._drawWrapper.effect.setFloat4(n,b.r,b.g,b.b,b.a)}for(const n in this._vectors2)this._drawWrapper.effect.setVector2(n,this._vectors2[n]);for(const n in this._vectors3)this._drawWrapper.effect.setVector3(n,this._vectors3[n]);for(const n in this._vectors4)this._drawWrapper.effect.setVector4(n,this._vectors4[n]);for(const n in this._matrices)this._drawWrapper.effect.setMatrix(n,this._matrices[n])}if(!this._texture||!this._rtWrapper)return;l._enableGPUDebugMarkers&&l._debugPushGroup?.(`procedural texture generation for ${this.name}`);const R=l.currentViewport;if(this.isCube)for(let n=0;n<6;n++)l.bindFramebuffer(this._rtWrapper,n,void 0,void 0,!0),l.bindBuffers(this._vertexBuffers,this._indexBuffer,this._drawWrapper.effect),this._drawWrapper.effect.setFloat("face",n),this.autoClear&&l.clear(i.clearColor,!0,!1,!1),l.drawElementsType(ee.TriangleFillMode,0,6),l.unBindFramebuffer(this._rtWrapper,!0);else{let n=1;this._rtWrapper.is3D?n=this._rtWrapper.depth:this._rtWrapper.is2DArray&&(n=this._rtWrapper.layers);for(let b=0;b<n;b++){if(l.bindFramebuffer(this._rtWrapper,0,void 0,void 0,!0,0,b),l.bindBuffers(this._vertexBuffers,this._indexBuffer,this._drawWrapper.effect),this._rtWrapper.is3D||this._rtWrapper.is2DArray){this._drawWrapper.effect?.setFloat("layer",n!==1?b/(n-1):0),this._drawWrapper.effect?.setInt("layerNum",b);for(const T in this._textures)this._drawWrapper.effect.setTexture(T,this._textures[T])}this.autoClear&&l.clear(i.clearColor,!0,!1,!1),l.drawElementsType(ee.TriangleFillMode,0,6),l.unBindFramebuffer(this._rtWrapper,!this._generateMipMaps)}}R&&l.setViewport(R),this.isCube&&l.generateMipMapsForCubemap(this._texture,!0),l._enableGPUDebugMarkers&&l._debugPopGroup?.(),this.onGenerated&&this.onGenerated(),this.onGeneratedObservable.notifyObservers(this)}clone(){const r=this.getSize(),i=new t(this.name,r.width,this._fragment,this.getScene(),this._fallbackTexture,this._generateMipMaps);return i.hasAlpha=this.hasAlpha,i.level=this.level,i.coordinatesMode=this.coordinatesMode,i}dispose(){const r=this.getScene();if(!r)return;const i=r.proceduralTextures.indexOf(this);i>=0&&r.proceduralTextures.splice(i,1);const l=this._vertexBuffers[D.PositionKind];l&&(l.dispose(),this._vertexBuffers[D.PositionKind]=null),this._indexBuffer&&this._fullEngine._releaseBuffer(this._indexBuffer)&&(this._indexBuffer=null),this.onGeneratedObservable.clear(),this.onBeforeGenerationObservable.clear(),super.dispose()}},(()=>{const W=typeof Symbol=="function"&&Symbol.metadata?Object.create(e[Symbol.metadata]??null):void 0;a=[L()],f=[L()],u=[L()],A=[L()],O=[L()],F(t,null,O,{kind:"getter",name:"refreshRate",static:!1,private:!1,access:{has:r=>"refreshRate"in r,get:r=>r.refreshRate},metadata:W},null,s),F(null,null,a,{kind:"field",name:"isEnabled",static:!1,private:!1,access:{has:r=>"isEnabled"in r,get:r=>r.isEnabled,set:(r,i)=>{r.isEnabled=i}},metadata:W},o,h),F(null,null,f,{kind:"field",name:"autoClear",static:!1,private:!1,access:{has:r=>"autoClear"in r,get:r=>r.autoClear,set:(r,i)=>{r.autoClear=i}},metadata:W},m,x),F(null,null,u,{kind:"field",name:"_generateMipMaps",static:!1,private:!1,access:{has:r=>"_generateMipMaps"in r,get:r=>r._generateMipMaps,set:(r,i)=>{r._generateMipMaps=i}},metadata:W},d,C),F(null,null,A,{kind:"field",name:"_size",static:!1,private:!1,access:{has:r=>"_size"in r,get:r=>r._size,set:(r,i)=>{r._size=i}},metadata:W},w,M),W&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:W})})(),t})();const le="textureProcessor";var y;(function(t){t[t.Linear=0]="Linear",t[t.SRGB=1]="SRGB"})(y||(y={}));var p;(function(t){t[t.R=1]="R",t[t.G=2]="G",t[t.B=4]="B",t[t.A=8]="A",t[t.RGB=7]="RGB",t[t.RGBA=15]="RGBA"})(p||(p={}));var c;(function(t){t[t.RGBA=0]="RGBA",t[t.R=1]="R",t[t.G=2]="G",t[t.B=3]="B",t[t.A=4]="A"})(c||(c={}));function he(t){return{texture:null,factor:t}}function g(t,e,s,a){const o={texture:t,factor:e};return s&&(o.channel=s),a&&(o.colorSpace=a),o}function S(t){return t.factor??new _(1,1,1,1)}function ce(t,e){return new _(t.r*e.r,t.g*e.g,t.b*e.b,t.a*e.a)}function fe(t,e,s){return new _(t.r+(e.r-t.r)*s.r,t.g+(e.g-t.g)*s.g,t.b+(e.b-t.b)*s.b,t.a+(e.a-t.a)*s.a)}function N(t){let e=0,s=512;for(const a of t)if(a.texture){const o=a.texture.getSize(),h=Math.max(o.width,o.height);h>e&&(e=h,s=o.width===o.height?h:o)}return s}function k(t){return!t.getTextureMatrix().isIdentity()}function te(t){if(t.length<=1)return!0;const e=t[0].getTextureMatrix();for(let s=1;s<t.length;s++)if(!e.equals(t[s].getTextureMatrix()))return!1;return!0}function V(t,e,s){if(e.coordinatesIndex=t.coordinatesIndex,e.wrapU=t.wrapU,e.wrapV=t.wrapV,s){const a=t;e.uOffset=a.uOffset??0,e.vOffset=a.vOffset??0,e.uScale=a.uScale??1,e.vScale=a.vScale??1,e.wAng=a.wAng??0}}function re(t){switch(t){case c.R:return"R";case c.G:return"G";case c.B:return"B";case c.A:return"A";default:return""}}function _e(t,e){switch(e){case c.R:return new _(t.r,t.r,t.r,t.a);case c.G:return new _(t.g,t.g,t.g,t.a);case c.B:return new _(t.b,t.b,t.b,t.a);case c.A:return new _(t.a,t.a,t.a,t.a);default:return t}}function me(t){const e=["OP_INVERT"];return t&p.R&&e.push("INVERT_R"),t&p.G&&e.push("INVERT_G"),t&p.B&&e.push("INVERT_B"),t&p.A&&e.push("INVERT_A"),e}function X(t){const e=[];return t&p.R||e.push("OUTPUT_MASK_R_ZERO"),t&p.G||e.push("OUTPUT_MASK_G_ZERO"),t&p.B||e.push("OUTPUT_MASK_B_ZERO"),t&p.A||e.push("OUTPUT_MASK_A_ONE"),e}function U(t,e){return new _(e&p.R?t.r:0,e&p.G?t.g:0,e&p.B?t.b:0,e&p.A?t.a:1)}function v(t,e,s){const a=[];return t.texture&&(a.push(`OPERAND_${e}_TEXTURE`),s&&k(t.texture)&&a.push(`OPERAND_${e}_MATRIX`),t.colorSpace&&a.push(`OPERAND_${e}_SRGB`),t.channel&&a.push(`OPERAND_${e}_CHANNEL_${re(t.channel)}`)),(t.factor!==void 0||!t.texture)&&a.push(`OPERAND_${e}_FACTOR`),a}function ge(t,e){const s=[];return t.texture&&(s.push("LERP_T_TEXTURE"),e&&k(t.texture)&&s.push("LERP_T_MATRIX"),t.factor!==void 0&&s.push("LERP_T_FACTOR"),t.colorSpace&&s.push("LERP_T_SRGB"),t.channel&&s.push(`LERP_T_CHANNEL_${re(t.channel)}`)),s}function P(t,e,s,a,o){e.texture&&(t.setTexture(s,e.texture),o&&k(e.texture)&&t.setMatrix(`${s}Matrix`,e.texture.getTextureMatrix())),(e.factor!==void 0||!e.texture)&&t.setColor4(a,S(e))}function pe(t,e,s){e.texture?(t.setTexture("textureT",e.texture),s&&k(e.texture)&&t.setMatrix("textureTMatrix",e.texture.getTextureMatrix()),e.factor!==void 0&&t.setColor4("factorT",e.factor)):t.setColor4("factorT",S(e))}function K(t,e,s,a,o=y.Linear){const h={type:0,format:5,samplingMode:2,generateDepthBuffer:!1,generateMipMaps:!1,gammaSpace:o===y.SRGB,shaderLanguage:a.getEngine().isWebGPU?1:0,extraInitializationsAsync:async()=>{a.getEngine().isWebGPU?await Promise.all([G(()=>import("./textureProcessor.fragment-CyBHPXX2.js"),__vite__mapDeps([4,1,2]),import.meta.url)]):await Promise.all([G(()=>import("./textureProcessor.fragment-CwNRejEe.js"),__vite__mapDeps([5,1,2]),import.meta.url)])},skipSceneRegistration:!0},f=new ue(t,s,le,a,h);return f.refreshRate=-1,f.defines=e.length>0?"#define "+e.join(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./procedural.vertex-BMAV1XYH.js","./index-YcXsPtFI.js","./index-DcTTrc-8.css","./procedural.vertex-CRCZXfiw.js","./textureProcessor.fragment--dZBsr4X.js","./textureProcessor.fragment-BlZ9kg3B.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{aN as j,au as Z,aO as E,az as Q,aw as Y,aP as ae,aQ as ne,aR as D,aS as J,ay as G,aT as ee,aU as F,aV as L,aA as _,c as I}from"./index-YcXsPtFI.js";class oe{constructor(e){this.name=j.NAME_PROCEDURALTEXTURE,this.scene=e}register(){this.scene._beforeClearStage.registerStep(j.STEP_BEFORECLEAR_PROCEDURALTEXTURE,this,this._beforeClear)}rebuild(){}dispose(){}_beforeClear(){if(this.scene.proceduralTexturesEnabled){Z.StartPerformanceCounter("Procedural textures",this.scene.proceduralTextures.length>0);for(let e=0;e<this.scene.proceduralTextures.length;e++){const s=this.scene.proceduralTextures[e];s._shouldRender()&&s.render()}Z.EndPerformanceCounter("Procedural textures",this.scene.proceduralTextures.length>0)}}}let ue=(()=>{var t;let e=Y,s=[],a,o=[],h=[],f,m=[],x=[],u,d=[],C=[],A,w=[],M=[],O;return t=class extends e{get shaderLanguage(){return this._shaderLanguage}constructor(r,i,l,R,n=null,b=!0,T=!1,q=0){super(null,R,!b),this.isEnabled=(E(this,s),E(this,o,!0)),this.autoClear=(E(this,h),E(this,m,!0)),this.onGenerated=E(this,x),this.onGeneratedObservable=new Q,this.onBeforeGenerationObservable=new Q,this.nodeMaterialSource=null,this.defines="",this._generateMipMaps=E(this,d,void 0),this._drawWrapper=E(this,C),this._textures={},this._size=E(this,w,void 0),this._textureType=E(this,M),this._currentRefreshId=-1,this._frameId=-1,this._refreshRate=1,this._vertexBuffers={},this._uniforms=new Array,this._samplers=new Array,this._floats={},this._ints={},this._floatsArrays={},this._colors3={},this._colors4={},this._vectors2={},this._vectors3={},this._vectors4={},this._matrices={},this._fallbackTextureUsed=!1,this._cachedDefines=null,this._contentUpdateId=-1,this._rtWrapper=null,n!==null&&!(n instanceof Y)?(this._options=n,this._fallbackTexture=n.fallbackTexture??null):(this._options={},this._fallbackTexture=n),this._shaderLanguage=this._options.shaderLanguage??0,R=this.getScene()||ae.LastCreatedScene;let H=R._getComponent(j.NAME_PROCEDURALTEXTURE);H||(H=new oe(R),R._addComponent(H)),this._options.skipSceneRegistration||R.proceduralTextures.push(this),this._fullEngine=R.getEngine(),this.name=r,this.isRenderTarget=!0,this._size=i,this._textureType=q,this._generateMipMaps=b,this._drawWrapper=new ne(this._fullEngine),this.setFragment(l);const ie=this._createRtWrapper(T,i,b,q);this._texture=ie.texture;const z=[];z.push(1,1),z.push(-1,1),z.push(-1,-1),z.push(1,-1),this._vertexBuffers[D.PositionKind]=new D(this._fullEngine,z,D.PositionKind,!1,!1,2),this._createIndexBuffer()}_createRtWrapper(r,i,l,R){return r?(this._rtWrapper=this._fullEngine.createRenderTargetCubeTexture(i,{generateMipMaps:l,generateDepthBuffer:!1,generateStencilBuffer:!1,type:R,...this._options}),this.setFloat("face",0)):(this._rtWrapper=this._fullEngine.createRenderTargetTexture(i,{generateMipMaps:l,generateDepthBuffer:!1,generateStencilBuffer:!1,type:R,...this._options}),this._rtWrapper.is3D&&(this.setFloat("layer",0),this.setInt("layerNum",0))),this._rtWrapper}getEffect(){return this._drawWrapper.effect}_setEffect(r){this._drawWrapper.effect=r}getContent(){return this._contentData&&this._frameId===this._contentUpdateId?this._contentData:(this._contentData?this._contentData.then(r=>{this._contentData=this.readPixels(0,0,r),this._contentUpdateId=this._frameId}):(this._contentData=this.readPixels(0,0),this._contentUpdateId=this._frameId),this._contentData)}_createIndexBuffer(){const r=this._fullEngine,i=[];i.push(0),i.push(1),i.push(2),i.push(0),i.push(2),i.push(3),this._indexBuffer=r.createIndexBuffer(i)}_rebuild(){const r=this._vertexBuffers[D.PositionKind];r&&r._rebuild(),this._createIndexBuffer(),this.refreshRate===J.REFRESHRATE_RENDER_ONCE&&(this.refreshRate=J.REFRESHRATE_RENDER_ONCE)}reset(){this._drawWrapper.effect?.dispose(),this._drawWrapper.effect=null,this._cachedDefines=null}_getDefines(){return this.defines}executeWhenReady(r){if(this.isReady()){r(this);return}const i=this.getEffect();i&&i.executeWhenCompiled(()=>{r(this)})}isReady(){const r=this._fullEngine;if(this.nodeMaterialSource)return this._drawWrapper.effect?.isReady()??!1;if(!this._fragment)return!1;if(this._fallbackTextureUsed)return!0;if(!this._texture)return!1;const i=this._getDefines();if(this._drawWrapper.effect&&i===this._cachedDefines&&this._drawWrapper.effect.isReady())return!0;const l={vertex:"procedural",fragmentElement:this._fragment.fragmentElement,fragmentSource:this._fragment.fragmentSource,fragment:typeof this._fragment=="string"?this._fragment:void 0};return this._cachedDefines!==i&&(this._cachedDefines=i,this._drawWrapper.effect=r.createEffect(l,[D.PositionKind],this._uniforms,this._samplers,i,void 0,void 0,()=>{this._rtWrapper?.dispose(),this._rtWrapper=this._texture=null,this._fallbackTexture&&(this._texture=this._fallbackTexture._texture,this._texture&&this._texture.incrementReferences()),this._fallbackTextureUsed=!0},void 0,this._shaderLanguage,async()=>{this._options.extraInitializationsAsync?this.shaderLanguage===1?await Promise.all([G(()=>import("./procedural.vertex-BMAV1XYH.js"),__vite__mapDeps([0,1,2]),import.meta.url),this._options.extraInitializationsAsync()]):await Promise.all([G(()=>import("./procedural.vertex-CRCZXfiw.js"),__vite__mapDeps([3,1,2]),import.meta.url),this._options.extraInitializationsAsync()]):this.shaderLanguage===1?await G(()=>import("./procedural.vertex-BMAV1XYH.js"),__vite__mapDeps([0,1,2]),import.meta.url):await G(()=>import("./procedural.vertex-CRCZXfiw.js"),__vite__mapDeps([3,1,2]),import.meta.url)})),this._drawWrapper.effect.isReady()}resetRefreshCounter(){this._currentRefreshId=-1}setFragment(r){this._fragment=r}get refreshRate(){return this._refreshRate}set refreshRate(r){this._refreshRate=r,this.resetRefreshCounter()}_shouldRender(){return!this.isEnabled||!this.isReady()||!this._texture?(this._texture&&(this._texture.isReady=!1),!1):this._fallbackTextureUsed?!1:this._currentRefreshId===-1?(this._currentRefreshId=1,this._frameId++,!0):this.refreshRate===this._currentRefreshId?(this._currentRefreshId=1,this._frameId++,!0):(this._currentRefreshId++,!1)}getRenderSize(){return this._size}resize(r,i){if(this._fallbackTextureUsed||!this._rtWrapper||!this._texture)return;const l=this._texture.isCube;this._rtWrapper.dispose();const R=this._createRtWrapper(l,r,i,this._textureType);this._texture=R.texture,this._size=r,this._generateMipMaps=i}_checkUniform(r){this._uniforms.indexOf(r)===-1&&this._uniforms.push(r)}setTexture(r,i){return this._samplers.indexOf(r)===-1&&this._samplers.push(r),this._textures[r]=i,this}setFloat(r,i){return this._checkUniform(r),this._floats[r]=i,this}setInt(r,i){return this._checkUniform(r),this._ints[r]=i,this}setFloats(r,i){return this._checkUniform(r),this._floatsArrays[r]=i,this}setColor3(r,i){return this._checkUniform(r),this._colors3[r]=i,this}setColor4(r,i){return this._checkUniform(r),this._colors4[r]=i,this}setVector2(r,i){return this._checkUniform(r),this._vectors2[r]=i,this}setVector3(r,i){return this._checkUniform(r),this._vectors3[r]=i,this}setVector4(r,i){return this._checkUniform(r),this._vectors4[r]=i,this}setMatrix(r,i){return this._checkUniform(r),this._matrices[r]=i,this}render(r){const i=this.getScene();if(!i)return;const l=this._fullEngine;if(l.enableEffect(this._drawWrapper),this.onBeforeGenerationObservable.notifyObservers(this),l.setState(!1),!this.nodeMaterialSource){for(const n in this._textures)this._drawWrapper.effect.setTexture(n,this._textures[n]);for(const n in this._ints)this._drawWrapper.effect.setInt(n,this._ints[n]);for(const n in this._floats)this._drawWrapper.effect.setFloat(n,this._floats[n]);for(const n in this._floatsArrays)this._drawWrapper.effect.setArray(n,this._floatsArrays[n]);for(const n in this._colors3)this._drawWrapper.effect.setColor3(n,this._colors3[n]);for(const n in this._colors4){const b=this._colors4[n];this._drawWrapper.effect.setFloat4(n,b.r,b.g,b.b,b.a)}for(const n in this._vectors2)this._drawWrapper.effect.setVector2(n,this._vectors2[n]);for(const n in this._vectors3)this._drawWrapper.effect.setVector3(n,this._vectors3[n]);for(const n in this._vectors4)this._drawWrapper.effect.setVector4(n,this._vectors4[n]);for(const n in this._matrices)this._drawWrapper.effect.setMatrix(n,this._matrices[n])}if(!this._texture||!this._rtWrapper)return;l._enableGPUDebugMarkers&&l._debugPushGroup?.(`procedural texture generation for ${this.name}`);const R=l.currentViewport;if(this.isCube)for(let n=0;n<6;n++)l.bindFramebuffer(this._rtWrapper,n,void 0,void 0,!0),l.bindBuffers(this._vertexBuffers,this._indexBuffer,this._drawWrapper.effect),this._drawWrapper.effect.setFloat("face",n),this.autoClear&&l.clear(i.clearColor,!0,!1,!1),l.drawElementsType(ee.TriangleFillMode,0,6),l.unBindFramebuffer(this._rtWrapper,!0);else{let n=1;this._rtWrapper.is3D?n=this._rtWrapper.depth:this._rtWrapper.is2DArray&&(n=this._rtWrapper.layers);for(let b=0;b<n;b++){if(l.bindFramebuffer(this._rtWrapper,0,void 0,void 0,!0,0,b),l.bindBuffers(this._vertexBuffers,this._indexBuffer,this._drawWrapper.effect),this._rtWrapper.is3D||this._rtWrapper.is2DArray){this._drawWrapper.effect?.setFloat("layer",n!==1?b/(n-1):0),this._drawWrapper.effect?.setInt("layerNum",b);for(const T in this._textures)this._drawWrapper.effect.setTexture(T,this._textures[T])}this.autoClear&&l.clear(i.clearColor,!0,!1,!1),l.drawElementsType(ee.TriangleFillMode,0,6),l.unBindFramebuffer(this._rtWrapper,!this._generateMipMaps)}}R&&l.setViewport(R),this.isCube&&l.generateMipMapsForCubemap(this._texture,!0),l._enableGPUDebugMarkers&&l._debugPopGroup?.(),this.onGenerated&&this.onGenerated(),this.onGeneratedObservable.notifyObservers(this)}clone(){const r=this.getSize(),i=new t(this.name,r.width,this._fragment,this.getScene(),this._fallbackTexture,this._generateMipMaps);return i.hasAlpha=this.hasAlpha,i.level=this.level,i.coordinatesMode=this.coordinatesMode,i}dispose(){const r=this.getScene();if(!r)return;const i=r.proceduralTextures.indexOf(this);i>=0&&r.proceduralTextures.splice(i,1);const l=this._vertexBuffers[D.PositionKind];l&&(l.dispose(),this._vertexBuffers[D.PositionKind]=null),this._indexBuffer&&this._fullEngine._releaseBuffer(this._indexBuffer)&&(this._indexBuffer=null),this.onGeneratedObservable.clear(),this.onBeforeGenerationObservable.clear(),super.dispose()}},(()=>{const W=typeof Symbol=="function"&&Symbol.metadata?Object.create(e[Symbol.metadata]??null):void 0;a=[L()],f=[L()],u=[L()],A=[L()],O=[L()],F(t,null,O,{kind:"getter",name:"refreshRate",static:!1,private:!1,access:{has:r=>"refreshRate"in r,get:r=>r.refreshRate},metadata:W},null,s),F(null,null,a,{kind:"field",name:"isEnabled",static:!1,private:!1,access:{has:r=>"isEnabled"in r,get:r=>r.isEnabled,set:(r,i)=>{r.isEnabled=i}},metadata:W},o,h),F(null,null,f,{kind:"field",name:"autoClear",static:!1,private:!1,access:{has:r=>"autoClear"in r,get:r=>r.autoClear,set:(r,i)=>{r.autoClear=i}},metadata:W},m,x),F(null,null,u,{kind:"field",name:"_generateMipMaps",static:!1,private:!1,access:{has:r=>"_generateMipMaps"in r,get:r=>r._generateMipMaps,set:(r,i)=>{r._generateMipMaps=i}},metadata:W},d,C),F(null,null,A,{kind:"field",name:"_size",static:!1,private:!1,access:{has:r=>"_size"in r,get:r=>r._size,set:(r,i)=>{r._size=i}},metadata:W},w,M),W&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:W})})(),t})();const le="textureProcessor";var y;(function(t){t[t.Linear=0]="Linear",t[t.SRGB=1]="SRGB"})(y||(y={}));var p;(function(t){t[t.R=1]="R",t[t.G=2]="G",t[t.B=4]="B",t[t.A=8]="A",t[t.RGB=7]="RGB",t[t.RGBA=15]="RGBA"})(p||(p={}));var c;(function(t){t[t.RGBA=0]="RGBA",t[t.R=1]="R",t[t.G=2]="G",t[t.B=3]="B",t[t.A=4]="A"})(c||(c={}));function he(t){return{texture:null,factor:t}}function g(t,e,s,a){const o={texture:t,factor:e};return s&&(o.channel=s),a&&(o.colorSpace=a),o}function S(t){return t.factor??new _(1,1,1,1)}function ce(t,e){return new _(t.r*e.r,t.g*e.g,t.b*e.b,t.a*e.a)}function fe(t,e,s){return new _(t.r+(e.r-t.r)*s.r,t.g+(e.g-t.g)*s.g,t.b+(e.b-t.b)*s.b,t.a+(e.a-t.a)*s.a)}function N(t){let e=0,s=512;for(const a of t)if(a.texture){const o=a.texture.getSize(),h=Math.max(o.width,o.height);h>e&&(e=h,s=o.width===o.height?h:o)}return s}function k(t){return!t.getTextureMatrix().isIdentity()}function te(t){if(t.length<=1)return!0;const e=t[0].getTextureMatrix();for(let s=1;s<t.length;s++)if(!e.equals(t[s].getTextureMatrix()))return!1;return!0}function V(t,e,s){if(e.coordinatesIndex=t.coordinatesIndex,e.wrapU=t.wrapU,e.wrapV=t.wrapV,s){const a=t;e.uOffset=a.uOffset??0,e.vOffset=a.vOffset??0,e.uScale=a.uScale??1,e.vScale=a.vScale??1,e.wAng=a.wAng??0}}function re(t){switch(t){case c.R:return"R";case c.G:return"G";case c.B:return"B";case c.A:return"A";default:return""}}function _e(t,e){switch(e){case c.R:return new _(t.r,t.r,t.r,t.a);case c.G:return new _(t.g,t.g,t.g,t.a);case c.B:return new _(t.b,t.b,t.b,t.a);case c.A:return new _(t.a,t.a,t.a,t.a);default:return t}}function me(t){const e=["OP_INVERT"];return t&p.R&&e.push("INVERT_R"),t&p.G&&e.push("INVERT_G"),t&p.B&&e.push("INVERT_B"),t&p.A&&e.push("INVERT_A"),e}function X(t){const e=[];return t&p.R||e.push("OUTPUT_MASK_R_ZERO"),t&p.G||e.push("OUTPUT_MASK_G_ZERO"),t&p.B||e.push("OUTPUT_MASK_B_ZERO"),t&p.A||e.push("OUTPUT_MASK_A_ONE"),e}function U(t,e){return new _(e&p.R?t.r:0,e&p.G?t.g:0,e&p.B?t.b:0,e&p.A?t.a:1)}function v(t,e,s){const a=[];return t.texture&&(a.push(`OPERAND_${e}_TEXTURE`),s&&k(t.texture)&&a.push(`OPERAND_${e}_MATRIX`),t.colorSpace&&a.push(`OPERAND_${e}_SRGB`),t.channel&&a.push(`OPERAND_${e}_CHANNEL_${re(t.channel)}`)),(t.factor!==void 0||!t.texture)&&a.push(`OPERAND_${e}_FACTOR`),a}function ge(t,e){const s=[];return t.texture&&(s.push("LERP_T_TEXTURE"),e&&k(t.texture)&&s.push("LERP_T_MATRIX"),t.factor!==void 0&&s.push("LERP_T_FACTOR"),t.colorSpace&&s.push("LERP_T_SRGB"),t.channel&&s.push(`LERP_T_CHANNEL_${re(t.channel)}`)),s}function P(t,e,s,a,o){e.texture&&(t.setTexture(s,e.texture),o&&k(e.texture)&&t.setMatrix(`${s}Matrix`,e.texture.getTextureMatrix())),(e.factor!==void 0||!e.texture)&&t.setColor4(a,S(e))}function pe(t,e,s){e.texture?(t.setTexture("textureT",e.texture),s&&k(e.texture)&&t.setMatrix("textureTMatrix",e.texture.getTextureMatrix()),e.factor!==void 0&&t.setColor4("factorT",e.factor)):t.setColor4("factorT",S(e))}function K(t,e,s,a,o=y.Linear){const h={type:0,format:5,samplingMode:2,generateDepthBuffer:!1,generateMipMaps:!1,gammaSpace:o===y.SRGB,shaderLanguage:a.getEngine().isWebGPU?1:0,extraInitializationsAsync:async()=>{a.getEngine().isWebGPU?await Promise.all([G(()=>import("./textureProcessor.fragment--dZBsr4X.js"),__vite__mapDeps([4,1,2]),import.meta.url)]):await Promise.all([G(()=>import("./textureProcessor.fragment-BlZ9kg3B.js"),__vite__mapDeps([5,1,2]),import.meta.url)])},skipSceneRegistration:!0},f=new ue(t,s,le,a,h);return f.refreshRate=-1,f.defines=e.length>0?"#define "+e.join(`
|
|
3
3
|
#define `)+`
|
|
4
4
|
`:"",f}async function $(t){return await new Promise((e,s)=>{t.executeWhenReady(()=>{try{t.render(),e()}catch(a){s(a instanceof Error?a:new Error(String(a)))}})})}async function se(t,e,s,a,o,h){if(!e.texture&&!s.texture){const A=ce(S(e),S(s));return{texture:null,factor:h?U(A,h):A}}const f=[];e.texture&&f.push(e.texture),s.texture&&f.push(s.texture);const m=te(f),x=!m,u=[...v(e,"A",x),...v(s,"B",x),...h?X(h):[]];o&&u.push("OUTPUT_SRGB");const d=K(t,u,N([e,s]),a,o);P(d,e,"textureA","factorA",x),P(d,s,"textureB","factorB",x);try{await $(d)}catch(A){throw e.dispose?.(),s.dispose?.(),A}e.dispose?.(),s.dispose?.(),V(f[0],d,m);const C={texture:d,dispose:()=>d.dispose()};return o&&(C.colorSpace=o),C}async function B(t,e,s,a,o,h,f){if(!e.texture&&!s.texture&&!a.texture){const w=fe(S(e),S(s),S(a));return{texture:null,factor:f?U(w,f):w}}const m=[];e.texture&&m.push(e.texture),s.texture&&m.push(s.texture),a.texture&&m.push(a.texture);const x=te(m),u=!x,d=["OP_LERP",...v(e,"A",u),...v(s,"B",u),...ge(a,u),...f?X(f):[]];h&&d.push("OUTPUT_SRGB");const C=K(t,d,N([e,s,a]),o,h);P(C,e,"textureA","factorA",u),P(C,s,"textureB","factorB",u),pe(C,a,u);try{await $(C)}catch(w){throw e.dispose?.(),s.dispose?.(),a.dispose?.(),w}e.dispose?.(),s.dispose?.(),a.dispose?.(),V(m[0],C,x);const A={texture:C,dispose:()=>C.dispose()};return h&&(A.colorSpace=h),A}async function de(t,e,s,a=p.RGBA,o,h){if(!e.texture){const u=S(e),d=new _(a&p.R?1-u.r:u.r,a&p.G?1-u.g:u.g,a&p.B?1-u.b:u.b,a&p.A?1-u.a:u.a);return{texture:null,factor:h?U(d,h):d}}const f=[...v(e,"A",!1),...me(a),...h?X(h):[]];o&&f.push("OUTPUT_SRGB");const m=K(t,f,N([e]),s,o);P(m,e,"textureA","factorA",!1);try{await $(m)}catch(u){throw e.dispose?.(),u}e.dispose?.(),V(e.texture,m,!0);const x={texture:m,dispose:()=>m.dispose()};return o&&(x.colorSpace=o),x}async function xe(t,e,s,a=!1,o,h){if(!e.texture){const u=S(e),d=a?Math.max(u.r,u.g,u.b,u.a):Math.max(u.r,u.g,u.b),C=new _(d,d,d,a?d:u.a);return{texture:null,factor:h?U(C,h):C}}const f=[...v(e,"A",!1),"OP_CHANNEL_MAX",...h?X(h):[]];a&&f.push("CHANNEL_MAX_INCLUDE_ALPHA"),o&&f.push("OUTPUT_SRGB");const m=K(t,f,N([e]),s,o);P(m,e,"textureA","factorA",!1);try{await $(m)}catch(u){throw e.dispose?.(),u}e.dispose?.(),V(e.texture,m,!0);const x={texture:m,dispose:()=>m.dispose()};return o&&(x.colorSpace=o),x}async function Te(t,e,s,a,o,h){if(!e.texture){const f=_e(S(e),s);return{texture:null,factor:h?U(f,h):f}}return await se(t,{...e,channel:s},he(new _(1,1,1,1)),a,o,h)}class be{constructor(e){this._specWorkflow=!1,this._diffuseTransmissionTint=I.White(),this._diffuseTransmissionTintTexture=null,this._material=e}get material(){return this._material}get isUnlit(){return this._material.unlit}set isUnlit(e){this._material.unlit=e}set backFaceCulling(e){this._material.backFaceCulling=e}get backFaceCulling(){return this._material.backFaceCulling}set twoSidedLighting(e){this._material.twoSidedLighting=e}get twoSidedLighting(){return this._material.twoSidedLighting}set alphaCutOff(e){this._material.alphaCutOff=e}get alphaCutOff(){return this._material.alphaCutOff}set useAlphaFromBaseColorTexture(e){this._material._useAlphaFromBaseColorTexture=e}get useAlphaFromBaseColorTexture(){return this._material._useAlphaFromBaseColorTexture}get transparencyAsAlphaCoverage(){return!1}set transparencyAsAlphaCoverage(e){}set baseColor(e){this._material.baseColor=e}get baseColor(){return this._material.baseColor}set baseColorTexture(e){this._material.baseColorTexture=e}get baseColorTexture(){return this._material.baseColorTexture}set baseDiffuseRoughness(e){this._material.baseDiffuseRoughness=e}get baseDiffuseRoughness(){return this._material.baseDiffuseRoughness}set baseDiffuseRoughnessTexture(e){this._material.baseDiffuseRoughnessTexture=e}get baseDiffuseRoughnessTexture(){return this._material.baseDiffuseRoughnessTexture}set baseMetalness(e){this._material.baseMetalness=e}get baseMetalness(){return this._material.baseMetalness}set baseMetalnessTexture(e){this._material.baseMetalnessTexture=e}get baseMetalnessTexture(){return this._material.baseMetalnessTexture}set useRoughnessFromMetallicTextureGreen(e){this._material._useRoughnessFromMetallicTextureGreen=e}set useMetallicFromMetallicTextureBlue(e){this._material._useMetallicFromMetallicTextureBlue=e}enableSpecularEdgeColor(e=!1){}configureSpecularGlossiness(){this._specWorkflow=!0}set specularWeight(e){this._material.specularWeight=e}get specularWeight(){return this._material.specularWeight}set specularWeightTexture(e){this._material.specularColorTexture===e?(this._material.specularWeightTexture=null,this._material._useSpecularWeightFromSpecularColorTexture=!0,this._material._useSpecularWeightFromAlpha=!0):this._material.specularWeightTexture=e}get specularWeightTexture(){return this._material.specularWeightTexture}set specularColor(e){this._material.specularColor=e}get specularColor(){return this._material.specularColor}set specularColorTexture(e){this._material.specularColorTexture=e,this._material.specularWeightTexture===this._material.specularColorTexture&&(this._material.specularWeightTexture=null,this._material._useSpecularWeightFromSpecularColorTexture=!0,this._material._useSpecularWeightFromAlpha=!0)}get specularColorTexture(){return this._material.specularColorTexture}set specularRoughness(e){this._material.specularRoughness=e}get specularRoughness(){return this._material.specularRoughness}set specularRoughnessTexture(e){this._material.specularRoughnessTexture=e}get specularRoughnessTexture(){return this._material.specularRoughnessTexture}set specularIor(e){this._material.specularIor=e}get specularIor(){return this._material.specularIor}set glossiness(e){this._material.specularRoughness=Math.max(1-e,0)}get glossiness(){return 1-this._material.specularRoughness}set emissionColor(e){this._material.emissionColor=e}get emissionColor(){return this._material.emissionColor}set emissionLuminance(e){this._material.emissionLuminance=e}get emissionLuminance(){return this._material.emissionLuminance}set emissionColorTexture(e){this._material.emissionColorTexture=e}get emissionColorTexture(){return this._material.emissionColorTexture}set ambientOcclusionTexture(e){this._material.ambientOcclusionTexture=e}get ambientOcclusionTexture(){return this._material.ambientOcclusionTexture}set ambientOcclusionTextureStrength(e){const s=this._material.ambientOcclusionTexture;s&&(s.level=e)}get ambientOcclusionTextureStrength(){return this._material.ambientOcclusionTexture?.level??1}configureCoat(){}set coatWeight(e){this._material.coatWeight=e}get coatWeight(){return this._material.coatWeight}set coatWeightTexture(e){this._material.coatWeightTexture=e}get coatWeightTexture(){return this._material.coatWeightTexture}set coatColor(e){this._material.coatColor=e}get coatColor(){return this._material.coatColor}set coatColorTexture(e){this._material.coatColorTexture=e}set coatRoughness(e){this._material.coatRoughness=e}get coatRoughness(){return this._material.coatRoughness}set coatRoughnessTexture(e){this._material.coatRoughnessTexture=e,e&&(this._material._useCoatRoughnessFromGreenChannel=!0)}get coatRoughnessTexture(){return this._material.coatRoughnessTexture}set coatIor(e){this._material.coatIor=e}get coatIor(){return this._material.coatIor}set coatDarkening(e){this._material.coatDarkening=e}get coatDarkening(){return this._material.coatDarkening}set coatDarkeningTexture(e){this._material.coatDarkeningTexture=e}set coatRoughnessAnisotropy(e){this._material.coatRoughnessAnisotropy=e}get coatRoughnessAnisotropy(){return this._material.coatRoughnessAnisotropy}set geometryCoatTangentAngle(e){this._material.geometryCoatTangentAngle=e}set geometryCoatTangentTexture(e){this._material.geometryCoatTangentTexture=e,e&&(this._material._useCoatRoughnessAnisotropyFromTangentTexture=!0)}get geometryCoatTangentTexture(){return this._material.geometryCoatTangentTexture}configureTransmission(){this._material.geometryThinWalled=1,this._material.transmissionDepth=0}set transmissionWeight(e){this._material.transmissionWeight=e}set transmissionWeightTexture(e){this._material.transmissionWeightTexture=e}get transmissionWeightTexture(){return this._material.transmissionWeightTexture}get transmissionWeight(){return this._material.transmissionWeight}set transmissionScatter(e){this._material.transmissionScatter=e}get transmissionScatter(){return this._material.transmissionScatter}set transmissionScatterTexture(e){this._material.transmissionScatterTexture=e}get transmissionScatterTexture(){return this._material.transmissionScatterTexture}set transmissionScatterAnisotropy(e){this._material.transmissionScatterAnisotropy=e}set transmissionDispersionAbbeNumber(e){this._material.transmissionDispersionAbbeNumber=e}set transmissionDispersionScale(e){this._material.transmissionDispersionScale=e}set transmissionDepth(e){e!==Number.MAX_VALUE||this._material.transmissionDepth!==0?this._material.transmissionDepth=e:this._material.transmissionDepth=0}get transmissionDepth(){return this._material.transmissionDepth}set transmissionColor(e){e.equals(I.White())||(this._material.transmissionColor=e)}get transmissionColor(){return this._material.transmissionColor}get refractionBackgroundTexture(){return this._material.backgroundRefractionTexture}set refractionBackgroundTexture(e){this._material.backgroundRefractionTexture=e}configureVolume(){this._material.geometryThinWalled=0}set geometryThinWalled(e){this._material.geometryThinWalled=e?1:0}get geometryThinWalled(){return!!this._material.geometryThinWalled}set volumeThicknessTexture(e){this._material.geometryThicknessTexture=e,this._material._useGeometryThicknessFromGreenChannel=!0}set volumeThickness(e){this._material.geometryThickness=e}configureSubsurface(){this._material.geometryThinWalled=1,this._material.subsurfaceScatterAnisotropy=1}set subsurfaceWeight(e){this._material.subsurfaceWeight=e}get subsurfaceWeight(){return this._material.subsurfaceWeight}set subsurfaceWeightTexture(e){this._material.subsurfaceWeightTexture=e,this._material._useSubsurfaceWeightFromTextureAlpha=!0}get subsurfaceWeightTexture(){return this._material.subsurfaceWeightTexture}set subsurfaceColor(e){this._material.subsurfaceColor=e}set subsurfaceColorTexture(e){this._material.subsurfaceColorTexture=e}set diffuseTransmissionTint(e){this._diffuseTransmissionTint=e}get diffuseTransmissionTint(){return this._diffuseTransmissionTint}set diffuseTransmissionTintTexture(e){this._diffuseTransmissionTintTexture=e}get subsurfaceRadius(){return this._material.subsurfaceRadius}set subsurfaceRadius(e){this._material.subsurfaceRadius=e}get subsurfaceRadiusScale(){return this._material.subsurfaceRadiusScale}set subsurfaceRadiusScale(e){this._material.subsurfaceRadiusScale=e}set subsurfaceScatterAnisotropy(e){this._material.subsurfaceScatterAnisotropy=e}isTranslucent(){return this.transmissionWeight>0||this.subsurfaceWeight>0}configureFuzz(){}set fuzzWeight(e){this._material.fuzzWeight=e}set fuzzWeightTexture(e){this._material.fuzzWeightTexture=e}set fuzzColor(e){this._material.fuzzColor=e}set fuzzColorTexture(e){this._material.fuzzColorTexture=e}set fuzzRoughness(e){this._material.fuzzRoughness=e}set fuzzRoughnessTexture(e){this._material.fuzzRoughnessTexture=e,this._material._useFuzzRoughnessFromTextureAlpha=!0}set specularRoughnessAnisotropy(e){this._material.specularRoughnessAnisotropy=e}get specularRoughnessAnisotropy(){return this._material.specularRoughnessAnisotropy}set geometryTangentAngle(e){this._material.geometryTangentAngle=e}set geometryTangentTexture(e){this._material.geometryTangentTexture=e,this._material._useSpecularRoughnessAnisotropyFromTangentTexture=!0}get geometryTangentTexture(){return this._material.geometryTangentTexture}configureGltfStyleAnisotropy(e=!0){this._material._useGltfStyleAnisotropy=e}set thinFilmWeight(e){this._material.thinFilmWeight=e}set thinFilmIor(e){this._material.thinFilmIor=e}set thinFilmThicknessMinimum(e){this._material.thinFilmThicknessMin=e/1e3}set thinFilmThicknessMaximum(e){this._material.thinFilmThickness=e/1e3}set thinFilmWeightTexture(e){this._material.thinFilmWeightTexture=e}set thinFilmThicknessTexture(e){this._material.thinFilmThicknessTexture=e,this._material._useThinFilmThicknessFromTextureGreen=!0}set unlit(e){this._material.unlit=e}set geometryOpacity(e){this._material.geometryOpacity=e}get geometryOpacity(){return this._material.geometryOpacity}set geometryNormalTexture(e){this._material.geometryNormalTexture=e}get geometryNormalTexture(){return this._material.geometryNormalTexture}setNormalMapInversions(e,s){}set geometryCoatNormalTexture(e){this._material.geometryCoatNormalTexture=e}get geometryCoatNormalTexture(){return this._material.geometryCoatNormalTexture}set geometryCoatNormalTextureScale(e){this._material.geometryCoatNormalTexture&&(this._material.geometryCoatNormalTexture.level=e)}async finalizeAsync(e){if(this._diffuseTransmissionTint&&!this._diffuseTransmissionTint.equals(I.White())||this._diffuseTransmissionTintTexture){if(this._material.geometryThinWalled)this.subsurfaceColor=this._diffuseTransmissionTint,this.subsurfaceColorTexture=this._diffuseTransmissionTintTexture;else if(await this.copySurfaceToCoatAsync(e,this.subsurfaceWeight,this.subsurfaceWeightTexture,c.A,this._diffuseTransmissionTint,this._diffuseTransmissionTintTexture,!0),e._disposed)return}if(this.transmissionWeight>0){if(this._material.geometryThinWalled||this._material.transmissionDepth===0)this._material.transmissionColor=this._material.baseColor,this._material.transmissionColorTexture=this._material.baseColorTexture;else if((!this.baseColor.equals(I.White())||this.baseColorTexture!==null)&&(await this.copySurfaceToCoatAsync(e,this.transmissionWeight,this.transmissionWeightTexture,c.R,this.baseColor,this.baseColorTexture,!1),e._disposed))return}if(this._specWorkflow){const s=await de("newRoughnessTexture ("+this._material.name+")",await Te("glossiness ("+this._material.name+")",g(this.specularColorTexture,new _(this.specularColor.r,this.specularColor.g,this.specularColor.b,this.glossiness),c.A,y.Linear),c.A,this._material.getScene(),y.Linear,p.R),this._material.getScene(),p.R,y.Linear,p.R);if(e._disposed){s.texture?.dispose();return}this.specularRoughnessTexture=s.texture,this.specularRoughness=s.factor?s.factor.r:1;const a=await xe("metallicTexture ("+this._material.name+")",g(this.specularColorTexture,this.specularColor.toColor4(),c.RGBA,y.Linear),this._material.getScene(),!1,y.SRGB,p.RGB);if(e._disposed){a.texture?.dispose();return}this.baseMetalnessTexture=a.texture,this.baseMetalness=a.factor?a.factor.r:1;const o=await B("newBaseColor ("+this._material.name+")",g(this.baseColorTexture,this.baseColor.toColor4(),c.RGBA,y.Linear),g(this.specularColorTexture,this.specularColor.toColor4(),c.RGBA,y.Linear),{...a,dispose:void 0,colorSpace:y.Linear},this._material.getScene(),y.SRGB,p.RGB);if(e._disposed){o.texture?.dispose();return}this.baseColorTexture?.dispose(),this.baseColorTexture=o.texture,this.baseColor=o.factor?new I(o.factor.r,o.factor.g,o.factor.b):I.White(),this.specularColorTexture?.dispose(),this.specularColorTexture=null}}async copySurfaceToCoatAsync(e,s,a,o,h,f,m=!1){const x=this._material.coatWeight,u=this._material.coatWeightTexture,d=this._material.coatColor.clone(),C=this._material.coatColorTexture,A=this._material.geometryCoatNormalTexture,w=new _(x,x,x,x),M=new _(s,s,s,s);this.coatWeightTexture=null,this.coatWeight=1;const O=await Promise.allSettled([B("lerpExistingCoat",g(null,new _(1,1,1,1)),g(C,d.toColor4(),c.RGBA,y.SRGB),g(u,w,c.R),this._material.getScene(),y.SRGB),B("lerpSurfaceColor",g(null,new _(1,1,1,1)),g(f,h.toColor4(),c.RGBA,y.SRGB),g(a,M,o),this._material.getScene(),y.SRGB)]),W=O.find(T=>T.status==="rejected");if(W){for(const T of O)T.status==="fulfilled"&&T.value.texture?.dispose();throw W.reason}const[r,i]=O.map(T=>T.value);if(e._disposed){r.texture?.dispose(),i.texture?.dispose();return}const l=await se("newCoatColor ("+this._material.name+")",r,i,this._material.getScene(),y.SRGB);if(e._disposed){l.texture?.dispose();return}l.texture?(this.coatColorTexture=l.texture,this.coatColor=I.White()):l.factor&&(this.coatColorTexture=null,this.coatColor.fromArray([l.factor.r,l.factor.g,l.factor.b]));const R=await B("newCoatIor ("+this._material.name+")",g(null,new _(this._material.specularIor,this._material.specularIor,this._material.specularIor,1),c.R),g(null,new _(this.coatIor,this.coatIor,this.coatIor,1),c.R),g(u,w,c.R),this._material.getScene());if(e._disposed){R.texture?.dispose();return}this.coatIor=R.factor?R.factor.r:this.coatIor;const n=await B("newCoatRoughness ("+this._material.name+")",g(this.specularRoughnessTexture,new _(this.specularRoughness,this.specularRoughness,this.specularRoughness,1),c.G),g(this.coatRoughnessTexture,new _(this.coatRoughness,this.coatRoughness,this.coatRoughness,1),c.G),g(u,w,c.R),this._material.getScene());if(e._disposed){n.texture?.dispose();return}this.coatRoughness=n.factor?n.factor.r:1,this.coatRoughnessTexture=n.texture;const b=await B("newCoatDarkening ("+this._material.name+")",g(null,new _(0,0,0,1),c.R),g(null,new _(this.coatDarkening,this.coatDarkening,this.coatDarkening,1),c.R),g(u,w,c.R),this._material.getScene());if(e._disposed){b.texture?.dispose();return}if(this.coatDarkening=b.factor?b.factor.r:this.coatDarkening,m){const T=await B("newSpecularRoughness ("+this._material.name+")",g(this.specularRoughnessTexture,new _(this._material.specularRoughness,this._material.specularRoughness,this._material.specularRoughness,1),c.G),g(null,new _(1,1,1,1),c.R),g(a,M,o),this._material.getScene());if(e._disposed){T.texture?.dispose();return}this.specularRoughness=T.factor?T.factor.r:1,this.specularRoughnessTexture=T.texture}if(A||this.geometryNormalTexture){const T=await B("newCoatNormal ("+this._material.name+")",g(this.geometryNormalTexture,this.geometryNormalTexture?new _(1,1,1,1):new _(.5,.5,1,1),c.RGBA),g(A,A?new _(1,1,1,1):new _(.5,.5,1,1),c.RGBA),g(u,w,c.R),this._material.getScene());if(e._disposed){T.texture?.dispose();return}T.texture&&(this.geometryCoatNormalTexture=T.texture)}}}export{be as OpenPBRMaterialLoadingAdapter};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.js";const n="sceneFragmentDeclaration",c=`uniform mat4 viewProjection;
|
|
2
2
|
#ifdef MULTIVIEW
|
|
3
3
|
uniform mat4 viewProjectionR;
|
|
4
4
|
#endif
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as f}from"./index-
|
|
1
|
+
import{S as f}from"./index-YcXsPtFI.js";import"./sceneUboDeclaration-1bB3YoON.js";import"./meshUboDeclaration-dDsFbRSv.js";const o="openpbrUboDeclaration",i=`uniform vTangentSpaceParams: vec2f;uniform vLightingIntensity: vec4f;uniform pointSize: f32;uniform vDebugMode: vec2f;uniform renderTargetSize: vec2f;uniform cameraInfo: vec4f;uniform vTextureRepetitionHexTilingParams: vec4f;uniform backgroundRefractionMatrix: mat4x4f;uniform vBackgroundRefractionInfos: vec3f;uniform vReflectionInfos: vec2f;uniform reflectionMatrix: mat4x4f;uniform vReflectionMicrosurfaceInfos: vec3f;uniform vReflectionPosition: vec3f;uniform vReflectionSize: vec3f;uniform vReflectionFilteringInfo: vec2f;uniform vReflectionDominantDirection: vec3f;uniform vReflectionColor: vec3f;uniform vSphericalL00: vec3f;uniform vSphericalL1_1: vec3f;uniform vSphericalL10: vec3f;uniform vSphericalL11: vec3f;uniform vSphericalL2_2: vec3f;uniform vSphericalL2_1: vec3f;uniform vSphericalL20: vec3f;uniform vSphericalL21: vec3f;uniform vSphericalL22: vec3f;uniform vSphericalX: vec3f;uniform vSphericalY: vec3f;uniform vSphericalZ: vec3f;uniform vSphericalXX_ZZ: vec3f;uniform vSphericalYY_ZZ: vec3f;uniform vSphericalZZ: vec3f;uniform vSphericalXY: vec3f;uniform vSphericalYZ: vec3f;uniform vSphericalZX: vec3f;uniform vBaseWeight: f32;uniform vBaseColor: vec4f;uniform vBaseDiffuseRoughness: f32;uniform vReflectanceInfo: vec4f;uniform vSpecularColor: vec4f;uniform vSpecularAnisotropy: vec3f;uniform vTransmissionWeight : f32;uniform vTransmissionColor : vec3f;uniform vTransmissionDepth : f32;uniform vTransmissionScatter : vec3f;uniform vTransmissionScatterAnisotropy : f32;uniform vTransmissionDispersionScale : f32;uniform vTransmissionDispersionAbbeNumber : f32;uniform vSubsurfaceWeight: f32;uniform vSubsurfaceColor: vec3f;uniform vSubsurfaceRadius: f32;uniform vSubsurfaceRadiusScale: vec3f;uniform vSubsurfaceScatterAnisotropy: f32;uniform vCoatWeight: f32;uniform vCoatColor: vec3f;uniform vCoatRoughness: f32;uniform vCoatRoughnessAnisotropy: f32;uniform vCoatIor: f32;uniform vCoatDarkening : f32;uniform vFuzzWeight: f32;uniform vFuzzColor: vec3f;uniform vFuzzRoughness: f32;uniform vGeometryThinWalled: f32;uniform vGeometryCoatTangent: vec2f;uniform vGeometryThickness: f32;uniform vEmissionColor: vec3f;uniform vThinFilmWeight: f32;uniform vThinFilmThickness: vec2f;uniform vThinFilmIor: f32;uniform vBaseWeightInfos: vec2f;uniform baseWeightMatrix: mat4x4f;uniform vBaseColorInfos: vec2f;uniform baseColorMatrix: mat4x4f;uniform vBaseDiffuseRoughnessInfos: vec2f;uniform baseDiffuseRoughnessMatrix: mat4x4f;uniform vBaseMetalnessInfos: vec2f;uniform baseMetalnessMatrix: mat4x4f;uniform vSpecularWeightInfos: vec2f;uniform specularWeightMatrix: mat4x4f;uniform vSpecularColorInfos: vec2f;uniform specularColorMatrix: mat4x4f;uniform vSpecularRoughnessInfos: vec2f;uniform specularRoughnessMatrix: mat4x4f;uniform vSpecularRoughnessAnisotropyInfos: vec2f;uniform specularRoughnessAnisotropyMatrix: mat4x4f;uniform vTransmissionWeightInfos : vec2f;uniform transmissionWeightMatrix : mat4x4f;uniform vTransmissionColorInfos : vec2f;uniform transmissionColorMatrix : mat4x4f;uniform vTransmissionDepthInfos : vec2f;uniform transmissionDepthMatrix : mat4x4f;uniform vTransmissionScatterInfos : vec2f;uniform transmissionScatterMatrix : mat4x4f;uniform vTransmissionDispersionScaleInfos : vec2f;uniform transmissionDispersionScaleMatrix : mat4x4f;uniform vSubsurfaceWeightInfos: vec2f;uniform subsurfaceWeightMatrix: mat4x4f;uniform vSubsurfaceColorInfos: vec2f;uniform subsurfaceColorMatrix: mat4x4f;uniform vSubsurfaceRadiusScaleInfos: vec2f;uniform subsurfaceRadiusScaleMatrix: mat4x4f;uniform vCoatWeightInfos: vec2f;uniform coatWeightMatrix: mat4x4f;uniform vCoatColorInfos: vec2f;uniform coatColorMatrix: mat4x4f;uniform vCoatRoughnessInfos: vec2f;uniform coatRoughnessMatrix: mat4x4f;uniform vCoatRoughnessAnisotropyInfos: vec2f;uniform coatRoughnessAnisotropyMatrix: mat4x4f;uniform vCoatDarkeningInfos : vec2f;uniform coatDarkeningMatrix : mat4x4f;uniform vFuzzWeightInfos: vec2f;uniform fuzzWeightMatrix: mat4x4f;uniform vFuzzColorInfos: vec2f;uniform fuzzColorMatrix: mat4x4f;uniform vFuzzRoughnessInfos: vec2f;uniform fuzzRoughnessMatrix: mat4x4f;uniform vGeometryNormalInfos: vec2f;uniform geometryNormalMatrix: mat4x4f;uniform vGeometryTangentInfos: vec2f;uniform geometryTangentMatrix: mat4x4f;uniform vGeometryCoatNormalInfos: vec2f;uniform geometryCoatNormalMatrix: mat4x4f;uniform vGeometryCoatTangentInfos: vec2f;uniform geometryCoatTangentMatrix: mat4x4f;uniform vGeometryOpacityInfos: vec2f;uniform geometryOpacityMatrix: mat4x4f;uniform vGeometryThicknessInfos: vec2f;uniform geometryThicknessMatrix: mat4x4f;uniform vEmissionColorInfos: vec2f;uniform emissionColorMatrix: mat4x4f;uniform vThinFilmWeightInfos: vec2f;uniform thinFilmWeightMatrix: mat4x4f;uniform vThinFilmThicknessInfos: vec2f;uniform thinFilmThicknessMatrix: mat4x4f;uniform vAmbientOcclusionInfos: vec2f;uniform ambientOcclusionMatrix: mat4x4f;
|
|
2
2
|
#define ADDITIONAL_UBO_DECLARATION
|
|
3
3
|
#include<sceneUboDeclaration>
|
|
4
4
|
#include<meshUboDeclaration>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as o}from"./index-
|
|
1
|
+
import{S as o}from"./index-YcXsPtFI.js";const e="openpbrUboDeclaration",a=`layout(std140,column_major) uniform;uniform Material {vec2 vTangentSpaceParams;vec4 vLightingIntensity;float pointSize;vec2 vDebugMode;vec2 renderTargetSize;vec4 cameraInfo;vec4 vTextureRepetitionHexTilingParams;mat4 backgroundRefractionMatrix;vec3 vBackgroundRefractionInfos;vec2 vReflectionInfos;mat4 reflectionMatrix;vec3 vReflectionMicrosurfaceInfos;vec3 vReflectionPosition;vec3 vReflectionSize;vec2 vReflectionFilteringInfo;vec3 vReflectionDominantDirection;vec3 vReflectionColor;vec3 vSphericalL00;vec3 vSphericalL1_1;vec3 vSphericalL10;vec3 vSphericalL11;vec3 vSphericalL2_2;vec3 vSphericalL2_1;vec3 vSphericalL20;vec3 vSphericalL21;vec3 vSphericalL22;vec3 vSphericalX;vec3 vSphericalY;vec3 vSphericalZ;vec3 vSphericalXX_ZZ;vec3 vSphericalYY_ZZ;vec3 vSphericalZZ;vec3 vSphericalXY;vec3 vSphericalYZ;vec3 vSphericalZX;float vBaseWeight;vec4 vBaseColor;float vBaseDiffuseRoughness;vec4 vReflectanceInfo;vec4 vSpecularColor;vec3 vSpecularAnisotropy;float vTransmissionWeight;vec3 vTransmissionColor;float vTransmissionDepth;vec3 vTransmissionScatter;float vTransmissionScatterAnisotropy;float vTransmissionDispersionScale;float vTransmissionDispersionAbbeNumber;float vSubsurfaceWeight;vec3 vSubsurfaceColor;float vSubsurfaceRadius;vec3 vSubsurfaceRadiusScale;float vSubsurfaceScatterAnisotropy;float vCoatWeight;vec3 vCoatColor;float vCoatRoughness;float vCoatRoughnessAnisotropy;float vCoatIor;float vCoatDarkening;float vFuzzWeight;vec3 vFuzzColor;float vFuzzRoughness;float vGeometryThinWalled;vec2 vGeometryCoatTangent;float vGeometryThickness;vec3 vEmissionColor;float vThinFilmWeight;vec2 vThinFilmThickness;float vThinFilmIor;vec2 vBaseWeightInfos;mat4 baseWeightMatrix;vec2 vBaseColorInfos;mat4 baseColorMatrix;vec2 vBaseDiffuseRoughnessInfos;mat4 baseDiffuseRoughnessMatrix;vec2 vBaseMetalnessInfos;mat4 baseMetalnessMatrix;vec2 vSpecularWeightInfos;mat4 specularWeightMatrix;vec2 vSpecularColorInfos;mat4 specularColorMatrix;vec2 vSpecularRoughnessInfos;mat4 specularRoughnessMatrix;vec2 vSpecularRoughnessAnisotropyInfos;mat4 specularRoughnessAnisotropyMatrix;vec2 vTransmissionWeightInfos;mat4 transmissionWeightMatrix;vec2 vTransmissionColorInfos;mat4 transmissionColorMatrix;vec2 vTransmissionDepthInfos;mat4 transmissionDepthMatrix;vec2 vTransmissionScatterInfos;mat4 transmissionScatterMatrix;vec2 vTransmissionDispersionScaleInfos;mat4 transmissionDispersionScaleMatrix;vec2 vSubsurfaceWeightInfos;mat4 subsurfaceWeightMatrix;vec2 vSubsurfaceColorInfos;mat4 subsurfaceColorMatrix;vec2 vSubsurfaceRadiusScaleInfos;mat4 subsurfaceRadiusScaleMatrix;vec2 vCoatWeightInfos;mat4 coatWeightMatrix;vec2 vCoatColorInfos;mat4 coatColorMatrix;vec2 vCoatRoughnessInfos;mat4 coatRoughnessMatrix;vec2 vCoatRoughnessAnisotropyInfos;mat4 coatRoughnessAnisotropyMatrix;vec2 vCoatDarkeningInfos;mat4 coatDarkeningMatrix;vec2 vFuzzWeightInfos;mat4 fuzzWeightMatrix;vec2 vFuzzColorInfos;mat4 fuzzColorMatrix;vec2 vFuzzRoughnessInfos;mat4 fuzzRoughnessMatrix;vec2 vGeometryNormalInfos;mat4 geometryNormalMatrix;vec2 vGeometryTangentInfos;mat4 geometryTangentMatrix;vec2 vGeometryCoatNormalInfos;mat4 geometryCoatNormalMatrix;vec2 vGeometryCoatTangentInfos;mat4 geometryCoatTangentMatrix;vec2 vGeometryOpacityInfos;mat4 geometryOpacityMatrix;vec2 vGeometryThicknessInfos;mat4 geometryThicknessMatrix;vec2 vEmissionColorInfos;mat4 emissionColorMatrix;vec2 vThinFilmWeightInfos;mat4 thinFilmWeightMatrix;vec2 vThinFilmThicknessInfos;mat4 thinFilmThicknessMatrix;vec2 vAmbientOcclusionInfos;mat4 ambientOcclusionMatrix;
|
|
2
2
|
#define ADDITIONAL_UBO_DECLARATION
|
|
3
3
|
};
|
|
4
4
|
#include<sceneUboDeclaration>
|
python_cad_tools/_viewer_static/assets/{packingFunctions-BD5WZtBT.js → packingFunctions-BWIusbYB.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.js";const t="packingFunctions",c=`vec4 pack(float depth)
|
|
2
2
|
{const vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const vec4 bit_mask=vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}
|
|
3
3
|
float unpack(vec4 color)
|
|
4
4
|
{const vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(color,bit_shift);}`;e.IncludesShadersStore[t]||(e.IncludesShadersStore[t]=c);const o={name:t,shader:c};export{o as p};
|
python_cad_tools/_viewer_static/assets/{packingFunctions-D3gaUkUa.js → packingFunctions-yE7XM0N6.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.js";const t="packingFunctions",c=`fn pack(depth: f32)->vec4f
|
|
2
2
|
{const bit_shift: vec4f= vec4f(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const bit_mask: vec4f= vec4f(0.0,1.0/255.0,1.0/255.0,1.0/255.0);var res: vec4f=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}
|
|
3
3
|
fn unpack(color: vec4f)->f32
|
|
4
4
|
{const bit_shift: vec4f= vec4f(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(color,bit_shift);}`;e.IncludesShadersStoreWGSL[t]||(e.IncludesShadersStoreWGSL[t]=c);const r={name:t,shader:c};export{r as p};
|
python_cad_tools/_viewer_static/assets/{pass.fragment-CzZpaqYk.js → pass.fragment-DsLu0lV1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as r}from"./index-
|
|
1
|
+
import{S as r}from"./index-YcXsPtFI.js";const e="passPixelShader",t=`varying vUV: vec2f;var textureSamplerSampler: sampler;var textureSampler: texture_2d<f32>;
|
|
2
2
|
#define CUSTOM_FRAGMENT_DEFINITIONS
|
|
3
3
|
@fragment
|
|
4
4
|
fn main(input: FragmentInputs)->FragmentOutputs {fragmentOutputs.color=textureSample(textureSampler,textureSamplerSampler,input.vUV);}`;r.ShadersStoreWGSL[e]||(r.ShadersStoreWGSL[e]=t);const S={name:e,shader:t};export{S as passPixelShaderWGSL};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as t}from"./index-
|
|
1
|
+
import{S as t}from"./index-YcXsPtFI.js";const e="passCubePixelShader",r=`varying vUV: vec2f;var textureSamplerSampler: sampler;var textureSampler: texture_cube<f32>;
|
|
2
2
|
#define CUSTOM_FRAGMENT_DEFINITIONS
|
|
3
3
|
@fragment
|
|
4
4
|
fn main(input: FragmentInputs)->FragmentOutputs {var uv: vec2f=input.vUV*2.0-1.0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as r}from"./index-
|
|
1
|
+
import{S as r}from"./index-YcXsPtFI.js";const e="passCubePixelShader",t=`varying vec2 vUV;uniform samplerCube textureSampler;
|
|
2
2
|
#define CUSTOM_FRAGMENT_DEFINITIONS
|
|
3
3
|
void main(void)
|
|
4
4
|
{vec2 uv=vUV*2.0-1.0;
|
python_cad_tools/_viewer_static/assets/{pbr.fragment-sZ-foSaO.js → pbr.fragment-BUBggeRz.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 z,o as K,l as $,i as q,t as Z,b as J,s as j,a as Q,c as ee,d as ae,e as ie}from"./oitFragment-C1JYx8fS.js";import{s as re}from"./sceneUboDeclaration-1bB3YoON.js";import{m as ne}from"./meshUboDeclaration-dDsFbRSv.js";import{p as fe}from"./pbrUboDeclaration-CMkwjzTB.js";import{m as oe}from"./mainUVVaryingDeclaration-CoUbOUEQ.js";import{p as te,s as ce,i as le,a as de,b as se,c as Ee,h as Re,d as Se,e as me,f as Ce,g as ue,j as ve}from"./pbrDebug-RHma8ghT.js";import{s as Ie,r as Ae}from"./reflectionFunction-CpMEFzxv.js";import{p as pe,a as Ne}from"./pbrIBLFunctions-D5A_AxnZ.js";import{c as Oe,a as Te}from"./clipPlaneFragment-Cllz8e_G.js";import{l as Le}from"./logDepthDeclaration-DHeJwlJR.js";import{f as _e,l as Me,a as De}from"./fogFragment-BzLCRCIz.js";import{h as Fe}from"./helperFunctions-DeCJcXoK.js";import{h as ge}from"./harmonicsFunctions-BVmgiiRj.js";import{p as Pe}from"./pbrBRDFFunctions-C50h7JEU.js";import{b as he,a as Ue,c as be}from"./bumpFragment-VvIKAANw.js";import{d as ye,l as Ge}from"./lightFragment-BRkIPUO1.js";const i="samplerFragmentAlternateDeclaration",T=`#ifdef _DEFINENAME_
|
|
2
2
|
#if _DEFINENAME_DIRECTUV==1
|
|
3
3
|
#define v_VARYINGNAME_UV vMainUV1
|
|
4
4
|
#elif _DEFINENAME_DIRECTUV==2
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.js";import{s as r}from"./sceneUboDeclaration-1bB3YoON.js";import{m as E}from"./meshUboDeclaration-dDsFbRSv.js";import{p as a}from"./pbrUboDeclaration-CMkwjzTB.js";import{u as _,p as o,s as l,l as N,v as s,a as I,b as A,c,d,e as f,f as m}from"./vertexColorMixing-C6OHmVcI.js";import{m as M}from"./mainUVVaryingDeclaration-CoUbOUEQ.js";import{h as p}from"./helperFunctions-DeCJcXoK.js";import{p as R}from"./pbrBRDFFunctions-C50h7JEU.js";import{b as u,a as T,i as V,m as S,c as x,d as v,e as D,f as C,g as O,h as L}from"./bakedVertexAnimation-CZalW6MY.js";import{h as F}from"./harmonicsFunctions-BVmgiiRj.js";import{b as G}from"./bumpVertexDeclaration-DaRKbtcX.js";import{c as U,a as W}from"./clipPlaneVertex-ChqMABPH.js";import{f as h,a as P,l as g}from"./logDepthVertex-Dt5zdVFA.js";import{l as X}from"./logDepthDeclaration-DHeJwlJR.js";import{b as Y}from"./bumpVertex-DLicej86.js";const t="pbrVertexShader",n=`#define PBR_VERTEX_SHADER
|
|
2
2
|
#include<pbrUboDeclaration>
|
|
3
3
|
#define CUSTOM_VERTEX_BEGIN
|
|
4
4
|
#ifndef USE_VERTEX_PULLING
|
python_cad_tools/_viewer_static/assets/{pbrBRDFFunctions-Dv8-Akv1.js → pbrBRDFFunctions-C50h7JEU.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as f}from"./index-
|
|
1
|
+
import{S as f}from"./index-YcXsPtFI.js";const e="pbrBRDFFunctions",r=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
|
|
2
2
|
#define BRDF_DIFFUSE_MODEL_EON 0
|
|
3
3
|
#define BRDF_DIFFUSE_MODEL_BURLEY 1
|
|
4
4
|
#define BRDF_DIFFUSE_MODEL_LAMBERT 2
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.js";import"./mainUVVaryingDeclaration-CoUbOUEQ.js";import"./oitFragment-C1JYx8fS.js";const t="pbrFragmentExtraDeclaration",v=`varying vPositionW: vec3f;
|
|
2
2
|
#if DEBUGMODE>0
|
|
3
3
|
varying vClipSpacePosition: vec4f;
|
|
4
4
|
#endif
|
python_cad_tools/_viewer_static/assets/{pbrIBLFunctions-D_X-tzpO.js → pbrIBLFunctions-D5A_AxnZ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e}from"./index-
|
|
1
|
+
import{S as e}from"./index-YcXsPtFI.js";const r="pbrFragmentReflectionDeclaration",i=`#ifdef REFLECTION
|
|
2
2
|
#ifdef REFLECTIONMAP_3D
|
|
3
3
|
var reflectionSamplerSampler: sampler;var reflectionSampler: texture_cube<f32>;
|
|
4
4
|
#ifdef LODBASEDMICROSFURACE
|