shaders 3.1.457 → 3.1.459
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/dist/core/{AngularBlur-CIw_xeFr.js → AngularBlur-BzY7RJ8k.js} +16 -32
- package/dist/core/{Arc-Dh0gjBrJ.js → Arc-mmJuqIrG.js} +15 -26
- package/dist/core/{Ascii-CUk527uY.js → Ascii-D67jsGPT.js} +64 -165
- package/dist/core/{Aurora-CJ7evt-F.js → Aurora-CpHlaOfW.js} +93 -289
- package/dist/core/{BarShift-BrOamln6.js → BarShift-B9wsOKYJ.js} +33 -68
- package/dist/core/{BarnDoors-D_lVAMPJ.js → BarnDoors-C7Uzc1at.js} +16 -28
- package/dist/core/{Beam-KKNLzfKR.js → Beam-8CoTk23e.js} +22 -62
- package/dist/core/{Bend-CRuu6NuH.js → Bend-BYVoLE8C.js} +50 -161
- package/dist/core/{Blob-1mhEIcv5.js → Blob--way9kNy.js} +62 -189
- package/dist/core/{BlockDissolve-B9xWZC6U.js → BlockDissolve-f5fwwXWH.js} +17 -32
- package/dist/core/{BlockNoise-DQUBYM1N.js → BlockNoise-BpIuLPlC.js} +17 -29
- package/dist/core/{BlueNoise-BN1q4V6k.js → BlueNoise-C2tYHQRB.js} +14 -23
- package/dist/core/{Blur-Bc8evwsz.js → Blur-CmE46Bvp.js} +41 -114
- package/dist/core/{Boids-C7NstB5L.js → Boids-BgsVOmp1.js} +227 -734
- package/dist/core/{BokehBlur-CWQm00ut.js → BokehBlur-CU5Qphip.js} +197 -722
- package/dist/core/{BrickPattern-CIejlS9-.js → BrickPattern-BIpInb0P.js} +41 -99
- package/dist/core/{BrightnessContrast-Bs8AV0he.js → BrightnessContrast-BAJYnvFu.js} +12 -22
- package/dist/core/{BrushedMetal-D2X_nM8z.js → BrushedMetal-C4a9G-dt.js} +113 -358
- package/dist/core/{Bulge-CdhRTWSH.js → Bulge-C7eYFYDP.js} +19 -46
- package/dist/core/{CRTScreen-BxnPxDw9.js → CRTScreen-CfCxUiP4.js} +34 -94
- package/dist/core/{CarbonFiber-BFogRBFa.js → CarbonFiber-CDWj-Oc3.js} +123 -420
- package/dist/core/{Chalkboard-DEuq4TWm.js → Chalkboard-BfiyhSfN.js} +86 -212
- package/dist/core/{ChannelBlur-Oz40DKPZ.js → ChannelBlur-D2pxXWLQ.js} +17 -45
- package/dist/core/{CheckerWipe-yv4dK6n5.js → CheckerWipe-Cxy0pc7v.js} +18 -36
- package/dist/core/{Checkerboard-BFFF9ajX.js → Checkerboard-Bdaf19G4.js} +12 -17
- package/dist/core/{Chevron-BHbGhnrT.js → Chevron-BsdILsaY.js} +28 -57
- package/dist/core/{ChromaFlow-BXw1jQkn.js → ChromaFlow-DGTgGdzI.js} +31 -86
- package/dist/core/{ChromaticAberration-CWhYEGDU.js → ChromaticAberration-npr_Zzu7.js} +15 -30
- package/dist/core/{Chrome-DdV9RY9D.js → Chrome-DirY2YRZ.js} +156 -546
- package/dist/core/{Circle-DGvP0Svo.js → Circle-CLO08218.js} +15 -31
- package/dist/core/{ColorWheel-BOfvt3mc.js → ColorWheel-D5Hfl4t7.js} +57 -128
- package/dist/core/{CompressionArtifacts-Cm0iOzys.js → CompressionArtifacts-DVlRMU-H.js} +119 -374
- package/dist/core/{ConcentricSpin-B3GHzoS1.js → ConcentricSpin-Dls_rak9.js} +41 -98
- package/dist/core/{ConicGradient-1RKI-gOR.js → ConicGradient-BjVmRAul.js} +18 -31
- package/dist/core/{ContourLines-DDzxvg9k.js → ContourLines-BKcyS-lX.js} +37 -81
- package/dist/core/{CornerPin-VFPI_Jzq.js → CornerPin-CrTdyHSy.js} +96 -268
- package/dist/core/{Crescent-DL6EeZZp.js → Crescent-C77DCA2i.js} +14 -23
- package/dist/core/{Cross-DQIgZt-C.js → Cross-C8SURmac.js} +14 -23
- package/dist/core/{Crystal-CB_U2g2k.js → Crystal-WbJgiOqh.js} +206 -753
- package/dist/core/{CurlNoise-FmbuZEYt.js → CurlNoise-BiFV2K5L.js} +17 -34
- package/dist/core/{CursorRipples-C1hLNWzZ.js → CursorRipples-hIYlb09k.js} +73 -200
- package/dist/core/{CursorTrail-CPW8orHG.js → CursorTrail-CjTJ9OJ0.js} +81 -172
- package/dist/core/{DataMosh-C_esIK54.js → DataMosh-Cmo5-E5_.js} +134 -521
- package/dist/core/{DiamondGradient-CjnjxWEM.js → DiamondGradient-DIxg1EP9.js} +31 -66
- package/dist/core/{DiamondWipe-Cscn7Dyy.js → DiamondWipe-D4T1q5ia.js} +17 -36
- package/dist/core/{DiffuseBlur-DmPHOfr_.js → DiffuseBlur-okj7zVss.js} +13 -22
- package/dist/core/{DisplacementMap-B-cVoGbC.js → DisplacementMap-CHB6_h0f.js} +31 -69
- package/dist/core/{Dither-CBsFenFW.js → Dither-DTnkeWP0.js} +161 -438
- package/dist/core/{DotGrid-CbxlW08N.js → DotGrid-BJBEwt4L.js} +36 -77
- package/dist/core/{DropShadow-B4msUftn.js → DropShadow-CPT5vr4K.js} +39 -86
- package/dist/core/{Duotone-DF3dn0kC.js → Duotone-BWuTPBIw.js} +14 -26
- package/dist/core/{Ellipse-WuGsM7Gr.js → Ellipse-gVe3stQJ.js} +14 -23
- package/dist/core/{Emboss-D5RYAc-U.js → Emboss-DOPfz-ox.js} +85 -200
- package/dist/core/{Engraving-CmNKAHmF.js → Engraving-YNrPy-c7.js} +82 -222
- package/dist/core/{ErosionNoise-DdHtOQl4.js → ErosionNoise-X_2sjC-x.js} +14 -23
- package/dist/core/{Exposure-BSsbosYN.js → Exposure-xVgsHAWw.js} +7 -12
- package/dist/core/{FallingLines-1q5WgiKa.js → FallingLines-DPHJRCvy.js} +68 -205
- package/dist/core/{FilmGrain-CgvcPFDC.js → FilmGrain-CDuL4T8C.js} +22 -51
- package/dist/core/{FilmStock-Bgn9OyQY.js → FilmStock-BmMC2ewO.js} +89 -264
- package/dist/core/{Flip-DJuox9qR.js → Flip-DhpEvnT7.js} +13 -26
- package/dist/core/{FloatingParticles-BGig0_Ks.js → FloatingParticles-Dx3J-Pbe.js} +177 -459
- package/dist/core/{FlowField-0I_PwtkD.js → FlowField-CLbiu5Xo.js} +38 -120
- package/dist/core/{Flower--1qeeCuA.js → Flower-nF4Zq0eP.js} +14 -23
- package/dist/core/{FlowingGradient-DMZ1E9ix.js → FlowingGradient-aNCwZ9nh.js} +61 -185
- package/dist/core/{FlutedGlass-CqSVa4kd.js → FlutedGlass-m19MvmKj.js} +44 -124
- package/dist/core/{Fog-DxFsHnT2.js → Fog-DVclS-y4.js} +125 -330
- package/dist/core/{Form3D-CabM27VZ.js → Form3D-Cv6l3hHQ.js} +328 -974
- package/dist/core/{FractalNoise-DPhwf7-X.js → FractalNoise-BMRqE4LG.js} +26 -55
- package/dist/core/{Frost-BL4zkGjj.js → Frost-Cqc7t9TR.js} +115 -422
- package/dist/core/{GaborNoise-GkEvNPeg.js → GaborNoise-BL4TH_Yh.js} +15 -24
- package/dist/core/{Glass-DPa3OWjZ.js → Glass-D5jcM7J7.js} +6 -6
- package/dist/core/{GlassTiles-B4Y8x78X.js → GlassTiles-BeKB3vfh.js} +29 -90
- package/dist/core/{Glitch-D-QTlz5D.js → Glitch-BmJj_vgQ.js} +83 -295
- package/dist/core/{Glow-C3VfGUb6.js → Glow-wdFqXqWh.js} +11 -20
- package/dist/core/{Godrays-pfr82Onh.js → Godrays-CQ7Gpeni.js} +68 -179
- package/dist/core/{Goo-BPaUKk1S.js → Goo-nc_51UOr.js} +92 -323
- package/dist/core/{GradientMap-DQ4IbzIx.js → GradientMap-BU9r1enO.js} +61 -141
- package/dist/core/{Grayscale-Bpp1Q2KT.js → Grayscale-CGtMggTH.js} +13 -25
- package/dist/core/{Grid-CQRC0rPf.js → Grid-BFx6ufzG.js} +51 -122
- package/dist/core/{GridDistortion-CAKSKhII.js → GridDistortion-B-Hq3rLo.js} +80 -195
- package/dist/core/{Group-UvbIuzy-.js → Group-DnA_clLB.js} +1 -1
- package/dist/core/{HTMLInCanvas-CMxSuq5H.js → HTMLInCanvas-DhCIQ97w.js} +2 -2
- package/dist/core/{Halftone-SiFx0wAg.js → Halftone-eX0AaYyB.js} +114 -283
- package/dist/core/{Heart-DLQnxsbQ.js → Heart-98zfiijj.js} +14 -23
- package/dist/core/{Heatmap-DhvtrL45.js → Heatmap-BCV4Pq0O.js} +92 -271
- package/dist/core/{HexGrid-DsEQNWJB.js → HexGrid-BlRlo8z4.js} +46 -117
- package/dist/core/{Hologram-DR88qD5X.js → Hologram-B5iMaK95.js} +87 -258
- package/dist/core/{Holographic-DKc_nNnT.js → Holographic-DBdODPjj.js} +99 -333
- package/dist/core/{HueShift-B7l4vcZP.js → HueShift-AsoQKt_z.js} +16 -33
- package/dist/core/{ImageTexture-D41xKACO.js → ImageTexture-CRL52DxI.js} +3 -3
- package/dist/core/{InkFlow-Bd4RXQmm.js → InkFlow-JMUVdkv1.js} +60 -148
- package/dist/core/{Invert-CEfJB0WN.js → Invert-BWV7zcBe.js} +7 -12
- package/dist/core/{IrisWipe-O6dc-Aq2.js → IrisWipe-5LICL9Oq.js} +14 -23
- package/dist/core/{IsometricCubes-BBK6Ec0q.js → IsometricCubes-DGFF6e8t.js} +61 -180
- package/dist/core/{Kaleidoscope-DQFV4-lX.js → Kaleidoscope-B7F2_L9x.js} +28 -69
- package/dist/core/{KeyFrames-BjH6gHSf.js → KeyFrames-CVH9NNY6.js} +298 -1172
- package/dist/core/{LensDistortion-BcodYk7_.js → LensDistortion-_QcaFbkh.js} +3 -3
- package/dist/core/{LensFlare-DLjQYsbx.js → LensFlare-h0EG0UVt.js} +119 -396
- package/dist/core/{LightEdge-CF0k0vMa.js → LightEdge-DO7stYlD.js} +169 -491
- package/dist/core/{LightLeak-Bu6xFjg-.js → LightLeak-BxqXrUyh.js} +80 -268
- package/dist/core/{Line-CRGYWOyW.js → Line-BtfkwqKJ.js} +79 -315
- package/dist/core/{LinearBlur-DGfbbIWb.js → LinearBlur-D0_W0tKF.js} +17 -33
- package/dist/core/{LinearGradient--54vTgc2.js → LinearGradient-BiATK9p7.js} +63 -145
- package/dist/core/{LinearWipe-0nTDgTcZ.js → LinearWipe-B1GFY0IT.js} +14 -23
- package/dist/core/{LiquidMetal-Bhenyeg-.js → LiquidMetal-07eJWR7z.js} +106 -341
- package/dist/core/{Liquify-Bg2tEc64.js → Liquify-CfPGxRC3.js} +72 -194
- package/dist/core/{MagneticFilings-Bn5DZWor.js → MagneticFilings-5iGBn4fr.js} +191 -545
- package/dist/core/{Marble-DixQe_Tu.js → Marble-RK87t7fT.js} +30 -88
- package/dist/core/{MeshGradient-Ca3pe_wB.js → MeshGradient-DxUlAoDr.js} +127 -341
- package/dist/core/{Mirror-DObS_qYr.js → Mirror-Bn0fpWtr.js} +26 -67
- package/dist/core/{MultiPointGradient-CtFBgPK6.js → MultiPointGradient-C44VD_6j.js} +26 -50
- package/dist/core/{Neon-m8PtEGdE.js → Neon-aO0w94H6.js} +119 -337
- package/dist/core/{NoiseDissolve-CB-Xj99z.js → NoiseDissolve-BYyXZMjF.js} +23 -64
- package/dist/core/{ObjectTracker-DQbxNZtb.js → ObjectTracker-ZgeKRvaK.js} +5 -5
- package/dist/core/{PagePeel-DOapA4QF.js → PagePeel-DqrIEWWF.js} +67 -215
- package/dist/core/{Paper-CVx1rZ1-.js → Paper-q-nDnqsG.js} +19 -45
- package/dist/core/{Parallelogram-BUR2Mg0g.js → Parallelogram-Cppv2GJm.js} +14 -23
- package/dist/core/{ParticleField-rfpfY_wr.js → ParticleField-B-O9nxdw.js} +247 -765
- package/dist/core/{ParticleFlow-DnZTqxMa.js → ParticleFlow-DVgTyGq4.js} +283 -840
- package/dist/core/{Particles-wfjtqAvF.js → Particles-B49_QWS_.js} +381 -1131
- package/dist/core/{PerlinNoise-B3PkQS1F.js → PerlinNoise-CZVb7VEh.js} +17 -29
- package/dist/core/{Perspective-Bp1nozq3.js → Perspective-Bl3AmawJ.js} +27 -73
- package/dist/core/{PixelSort-DF5Mm0uT.js → PixelSort-7VoL4Ck8.js} +174 -500
- package/dist/core/{PixelThrow-ANJ0F294.js → PixelThrow-CPqOSAmc.js} +25 -56
- package/dist/core/{Pixelate-Bl29QKdg.js → Pixelate-jMtbtFMG.js} +35 -109
- package/dist/core/{Plasma-DdEQKNa7.js → Plasma-DbilAdXY.js} +23 -47
- package/dist/core/{Plastic-RGRWPbc0.js → Plastic-DX61wGBx.js} +125 -379
- package/dist/core/{PolarCoordinates-kNqucXuj.js → PolarCoordinates-KOCO2sd-.js} +19 -44
- package/dist/core/{Polygon-Cg1Yb-TF.js → Polygon-Citu4Kgl.js} +18 -36
- package/dist/core/{Posterize-Bjfq_Et8.js → Posterize-D2-WcAiP.js} +18 -45
- package/dist/core/{Prism-CGeOs8pX.js → Prism-DYPWHdaf.js} +52 -144
- package/dist/core/{ProgressiveBlur-DHvM4Y4m.js → ProgressiveBlur-CTxD1yoj.js} +87 -223
- package/dist/core/{RadialGradient-CiFbgiiX.js → RadialGradient-B6I7KijG.js} +30 -63
- package/dist/core/{RadialWipe-BRvtJQN-.js → RadialWipe-CtjMG_pj.js} +14 -23
- package/dist/core/{RandomBars-BFJiR8ml.js → RandomBars-C6ksDuSF.js} +21 -47
- package/dist/core/{ReactionDiffusion-COFwdqMo.js → ReactionDiffusion-BzipteCn.js} +274 -755
- package/dist/core/{RectangularCoordinates-s25JfGDt.js → RectangularCoordinates-CfdZ347a.js} +18 -39
- package/dist/core/{ReflectivePlane-DP8vG4-U.js → ReflectivePlane-Cpv1p9O3.js} +48 -109
- package/dist/core/{Repeater-B6_lpYav.js → Repeater-H17zapDG.js} +2 -2
- package/dist/core/{Ring-CEaC7ILp.js → Ring-CDpyGwQ6.js} +15 -31
- package/dist/core/{RippleWipe-UrrIoCor.js → RippleWipe-BqL3WbjT.js} +20 -41
- package/dist/core/{Ripples-Cdha1qtk.js → Ripples-OFXx87jz.js} +16 -31
- package/dist/core/{RoundedRect-CLsMHcTd.js → RoundedRect-CuFSyEfW.js} +14 -23
- package/dist/core/{Saturation-Bpjxowys.js → Saturation-DjHX8rx2.js} +18 -45
- package/dist/core/{Scratches-RZkkhOMp.js → Scratches-Glgspe1m.js} +16 -33
- package/dist/core/{Sharpness-fFikIkE3.js → Sharpness-CSOtgpDq.js} +19 -40
- package/dist/core/{Shatter-C_v-Y_F_.js → Shatter-ydD72wnA.js} +79 -199
- package/dist/core/{SimplexNoise-CD-iTgJm.js → SimplexNoise-hkOBRbAM.js} +19 -35
- package/dist/core/{SineWave-D4hvW_8O.js → SineWave-Bp_0CoHZ.js} +20 -42
- package/dist/core/{SliceWipe-pGIB0xIc.js → SliceWipe-B77JxKQI.js} +31 -86
- package/dist/core/{Smoke-NgL8_Wlw.js → Smoke-BMhBhfbI.js} +50 -142
- package/dist/core/{SmokeFill-Cd-U58Bx.js → SmokeFill-L_3k9mKj.js} +173 -497
- package/dist/core/{SmokeFlow-BhjNSfcC.js → SmokeFlow-BNzNH5BF.js} +41 -102
- package/dist/core/{Solarize-DD2cjiZ7.js → Solarize-C7kAzXW_.js} +20 -50
- package/dist/core/{SolidColor-CmSX4SHb.js → SolidColor-Bp_KSGbp.js} +1 -1
- package/dist/core/{Spherize-Cpbor3M3.js → Spherize-Bj2nPPwK.js} +43 -125
- package/dist/core/{Spiral-BLM63kmf.js → Spiral-D3pxBQUb.js} +46 -115
- package/dist/core/{Star-UzeNW_jo.js → Star-CEH9XN1n.js} +14 -23
- package/dist/core/{Stone-B6MARs4o.js → Stone-DwYVLkb6.js} +2 -2
- package/dist/core/{Strands-DR_owki5.js → Strands-C3KJK5qj.js} +73 -224
- package/dist/core/{Stretch-Zhc5gz72.js → Stretch-D4dxm3Eq.js} +25 -62
- package/dist/core/{Stripes-C_i7QbEn.js → Stripes-C189VJJp.js} +27 -46
- package/dist/core/{StudioBackground-CZipQCG_.js → StudioBackground-DBftmr1t.js} +63 -207
- package/dist/core/{SunBurst-BKj7bLZn.js → SunBurst-BWiu3_T9.js} +20 -43
- package/dist/core/{Surface3D-BlexrpDJ.js → Surface3D-BHj5scrr.js} +236 -806
- package/dist/core/{Swirl-CKMRfpSx.js → Swirl-CG20s_S3.js} +35 -126
- package/dist/core/{Teardrop-Dcfd14iX.js → Teardrop-CaZaZqiU.js} +14 -23
- package/dist/core/{Text-2KkuVHxV.js → Text-BbSkUuRh.js} +26 -64
- package/dist/core/{ThinFilm-B7CTONK1.js → ThinFilm-DT5F71JM.js} +77 -202
- package/dist/core/{TiltShift-Yfz7yOnT.js → TiltShift-Bkj3TL8G.js} +90 -238
- package/dist/core/{TimeTrail-3YRaIap8.js → TimeTrail-DNI1as8t.js} +173 -403
- package/dist/core/{Tint-6e9QqUg4.js → Tint-C9ivnlbq.js} +35 -89
- package/dist/core/{Trapezoid-CTww_GcP.js → Trapezoid-Ba413G93.js} +14 -23
- package/dist/core/{TriangularGrid-DfrUVI8m.js → TriangularGrid-Cq7BdUyV.js} +50 -126
- package/dist/core/{Tritone-DmtMlvKc.js → Tritone-C4qZhK3A.js} +17 -41
- package/dist/core/{Truchet-B3__IHji.js → Truchet-BXK_Ot95.js} +60 -152
- package/dist/core/{Twirl-ECiB1asy.js → Twirl-BZDpTksa.js} +18 -41
- package/dist/core/{VHS-BIaAlx98.js → VHS-Ge_vluLk.js} +97 -295
- package/dist/core/{VenetianBlinds-DWnvvXJC.js → VenetianBlinds-Dp92230V.js} +16 -28
- package/dist/core/{Vesica-iFL8Vjcf.js → Vesica-5kOz3lTP.js} +14 -23
- package/dist/core/{Vibrance-CDeIsI81.js → Vibrance-B0y3zjRl.js} +18 -45
- package/dist/core/{VideoTexture-UIOWDMK6.js → VideoTexture-COYSXvPe.js} +3 -3
- package/dist/core/{Vignette-F2HgCda5.js → Vignette-BD_9PM6J.js} +23 -56
- package/dist/core/{Voronoi-DsHYdzB3.js → Voronoi-DIpQvBqc.js} +21 -46
- package/dist/core/{Water-T5GXFBCm.js → Water-D6Y7PaqY.js} +179 -639
- package/dist/core/{Watercolor-yog8LZOs.js → Watercolor-gXjW0cmP.js} +59 -184
- package/dist/core/{WaveDistortion-BWVqDVI3.js → WaveDistortion-CFVOiujJ.js} +84 -178
- package/dist/core/{WaveletNoise-pL_M8jha.js → WaveletNoise-Bm_C1dRt.js} +15 -24
- package/dist/core/{Weave-kQlWbHa6.js → Weave-a9i8xeTZ.js} +34 -74
- package/dist/core/{WebcamTexture-Barzo30S.js → WebcamTexture-BFP7WQuM.js} +13 -22
- package/dist/core/{Wool-CYzG-VrW.js → Wool-BwM9vbek.js} +2 -2
- package/dist/core/{WorleyNoise-Cju8qU_5.js → WorleyNoise-DsKMQk7S.js} +30 -56
- package/dist/core/{ZoomBlur-DqJUm1uw.js → ZoomBlur-DiEaGrqE.js} +10 -19
- package/dist/core/{aa-zeNRf4Lz.js → aa-C759fSpb.js} +108 -277
- package/dist/core/{agents-C_kohsYu.js → agents-BrNOCcxk.js} +246 -298
- package/dist/core/{bevel-ogqjoZKV.js → bevel-1wa44FF7.js} +14 -34
- package/dist/core/{blur-CZuIxzX6.js → blur-fsxhpklK.js} +314 -925
- package/dist/core/{cells-C72CLFsJ.js → cells-CmYMp4aV.js} +92 -191
- package/dist/core/{cellular-qYnxKdPx.js → cellular-7Xgxfk7O.js} +134 -385
- package/dist/core/derivative-p1TouwZG.js +93 -0
- package/dist/core/{device-B0ZwBfOg.js → device-DWPzs8TD.js} +528 -778
- package/dist/core/{edges-CD7gCAto.js → edges-BvIjDyJK.js} +11467 -13731
- package/dist/core/{fields-DgMkoZ6o.js → fields-DORoQP7V.js} +96 -260
- package/dist/core/{geom-B_TNdMNk.js → geom-D1eEB6WE.js} +110 -219
- package/dist/core/{glass-D8xs_kIG.js → glass-DEHkelE5.js} +164 -391
- package/dist/core/index.js +253 -246
- package/dist/core/{lightfields-ffHoLyJn.js → lightfields-Btxs_pA3.js} +125 -320
- package/dist/core/{lighting-D3jc6qOc.js → lighting-CT_di0hW.js} +111 -248
- package/dist/core/{media-fQMXfvXd.js → media-B4AiE8Wu.js} +63 -141
- package/dist/core/{mediaLifecycle-yHZ8w5aj.js → mediaLifecycle-DHrjB2zB.js} +1 -1
- package/dist/core/{noise-DX5Y_I--.js → noise-Be9_Xz5F.js} +939 -2742
- package/dist/core/{noiseColor-DYhX5Js1.js → noiseColor-CCePJCFN.js} +3 -3
- package/dist/core/{noiseColor-DRDY44sf.js → noiseColor-D0SCfBYp.js} +2 -2
- package/dist/core/{noiseStylize-BZD5cOJl.js → noiseStylize-B7Mis4X3.js} +20 -35
- package/dist/core/{porters-DUtQounc.js → porters-BnG6v9YC.js} +762 -2282
- package/dist/core/{propConfigs-k3hs8KYL.js → propConfigs-CvzF7Ot8.js} +1 -1
- package/dist/core/registry.js +225 -224
- package/dist/core/{reveal-DhktaT1C.js → reveal-BPF3DkX1.js} +99 -258
- package/dist/core/{sdf3d-CP87OlsQ.js → sdf3d-OWBwV8hi.js} +931 -3004
- package/dist/core/shaderRegistry-CnWd3DKN.js +433 -0
- package/dist/core/shaders/AngularBlur/index.js +8 -8
- package/dist/core/shaders/Arc/index.js +7 -7
- package/dist/core/shaders/Ascii/index.js +9 -9
- package/dist/core/shaders/Aurora/index.js +11 -10
- package/dist/core/shaders/BarShift/index.js +8 -8
- package/dist/core/shaders/BarnDoors/index.js +9 -9
- package/dist/core/shaders/Beam/index.js +10 -10
- package/dist/core/shaders/Bend/index.js +8 -8
- package/dist/core/shaders/Blob/index.js +7 -7
- package/dist/core/shaders/BlockDissolve/index.js +11 -10
- package/dist/core/shaders/BlockNoise/index.js +15 -14
- package/dist/core/shaders/BlueNoise/index.js +15 -14
- package/dist/core/shaders/Blur/index.js +8 -8
- package/dist/core/shaders/Boids/index.js +11 -10
- package/dist/core/shaders/BokehBlur/index.js +9 -9
- package/dist/core/shaders/BrickPattern/index.js +12 -11
- package/dist/core/shaders/BrightnessContrast/index.js +7 -7
- package/dist/core/shaders/BrushedMetal/index.js +14 -13
- package/dist/core/shaders/Bulge/index.js +7 -7
- package/dist/core/shaders/CRTScreen/index.js +7 -7
- package/dist/core/shaders/CarbonFiber/index.js +14 -13
- package/dist/core/shaders/Chalkboard/index.js +9 -8
- package/dist/core/shaders/ChannelBlur/index.js +8 -8
- package/dist/core/shaders/CheckerWipe/index.js +9 -9
- package/dist/core/shaders/Checkerboard/index.js +10 -9
- package/dist/core/shaders/Chevron/index.js +10 -9
- package/dist/core/shaders/ChromaFlow/index.js +7 -7
- package/dist/core/shaders/ChromaticAberration/index.js +7 -7
- package/dist/core/shaders/Chrome/index.js +14 -13
- package/dist/core/shaders/Circle/index.js +7 -7
- package/dist/core/shaders/ColorWheel/index.js +9 -9
- package/dist/core/shaders/CompressionArtifacts/index.js +7 -7
- package/dist/core/shaders/ConcentricSpin/index.js +8 -8
- package/dist/core/shaders/ConicGradient/index.js +11 -11
- package/dist/core/shaders/ContourLines/index.js +9 -8
- package/dist/core/shaders/CornerPin/index.js +7 -7
- package/dist/core/shaders/Crescent/index.js +7 -7
- package/dist/core/shaders/Cross/index.js +7 -7
- package/dist/core/shaders/Crystal/index.js +13 -12
- package/dist/core/shaders/CurlNoise/index.js +15 -14
- package/dist/core/shaders/CursorRipples/index.js +8 -8
- package/dist/core/shaders/CursorTrail/index.js +8 -8
- package/dist/core/shaders/DataMosh/index.js +9 -8
- package/dist/core/shaders/DiamondGradient/index.js +11 -11
- package/dist/core/shaders/DiamondWipe/index.js +9 -9
- package/dist/core/shaders/DiffuseBlur/index.js +9 -8
- package/dist/core/shaders/DisplacementMap/index.js +8 -8
- package/dist/core/shaders/Dither/index.js +9 -8
- package/dist/core/shaders/DotGrid/index.js +12 -11
- package/dist/core/shaders/DropShadow/index.js +9 -9
- package/dist/core/shaders/Duotone/index.js +7 -7
- package/dist/core/shaders/Ellipse/index.js +7 -7
- package/dist/core/shaders/Emboss/index.js +9 -9
- package/dist/core/shaders/Engraving/index.js +10 -9
- package/dist/core/shaders/ErosionNoise/index.js +15 -14
- package/dist/core/shaders/Exposure/index.js +7 -7
- package/dist/core/shaders/FallingLines/index.js +10 -9
- package/dist/core/shaders/FilmGrain/index.js +9 -8
- package/dist/core/shaders/FilmStock/index.js +8 -8
- package/dist/core/shaders/Flip/index.js +7 -7
- package/dist/core/shaders/FloatingParticles/index.js +11 -10
- package/dist/core/shaders/FlowField/index.js +10 -9
- package/dist/core/shaders/Flower/index.js +7 -7
- package/dist/core/shaders/FlowingGradient/index.js +10 -9
- package/dist/core/shaders/FlutedGlass/index.js +8 -8
- package/dist/core/shaders/Fog/index.js +11 -10
- package/dist/core/shaders/Form3D/index.js +8 -8
- package/dist/core/shaders/FractalNoise/index.js +14 -13
- package/dist/core/shaders/Frost/index.js +13 -12
- package/dist/core/shaders/GaborNoise/index.js +15 -14
- package/dist/core/shaders/Glass/index.js +10 -10
- package/dist/core/shaders/GlassTiles/index.js +8 -8
- package/dist/core/shaders/Glitch/index.js +9 -8
- package/dist/core/shaders/Glow/index.js +8 -8
- package/dist/core/shaders/Godrays/index.js +12 -11
- package/dist/core/shaders/Goo/index.js +10 -10
- package/dist/core/shaders/GradientMap/index.js +8 -8
- package/dist/core/shaders/Grayscale/index.js +7 -7
- package/dist/core/shaders/Grid/index.js +12 -11
- package/dist/core/shaders/GridDistortion/index.js +7 -7
- package/dist/core/shaders/Group/index.js +7 -7
- package/dist/core/shaders/HTMLInCanvas/index.js +8 -8
- package/dist/core/shaders/Halftone/index.js +8 -8
- package/dist/core/shaders/Heart/index.js +7 -7
- package/dist/core/shaders/Heatmap/index.js +12 -11
- package/dist/core/shaders/HexGrid/index.js +12 -11
- package/dist/core/shaders/Hologram/index.js +12 -11
- package/dist/core/shaders/Holographic/index.js +13 -12
- package/dist/core/shaders/HueShift/index.js +8 -8
- package/dist/core/shaders/ImageTexture/index.js +7 -7
- package/dist/core/shaders/InkFlow/index.js +8 -8
- package/dist/core/shaders/Invert/index.js +7 -7
- package/dist/core/shaders/IrisWipe/index.js +9 -9
- package/dist/core/shaders/IsometricCubes/index.js +12 -11
- package/dist/core/shaders/Kaleidoscope/index.js +8 -8
- package/dist/core/shaders/KeyFrames/index.js +8 -8
- package/dist/core/shaders/LensDistortion/index.js +7 -7
- package/dist/core/shaders/LensFlare/index.js +11 -11
- package/dist/core/shaders/LightEdge/index.js +12 -11
- package/dist/core/shaders/LightLeak/index.js +12 -11
- package/dist/core/shaders/Line/index.js +7 -7
- package/dist/core/shaders/LinearBlur/index.js +9 -9
- package/dist/core/shaders/LinearGradient/index.js +9 -9
- package/dist/core/shaders/LinearWipe/index.js +9 -9
- package/dist/core/shaders/LiquidMetal/index.js +14 -13
- package/dist/core/shaders/Liquify/index.js +7 -7
- package/dist/core/shaders/MagneticFilings/index.js +11 -10
- package/dist/core/shaders/Marble/index.js +11 -10
- package/dist/core/shaders/MeshGradient/index.js +15 -14
- package/dist/core/shaders/Mirror/index.js +8 -8
- package/dist/core/shaders/MultiPointGradient/index.js +8 -8
- package/dist/core/shaders/Neon/index.js +7 -7
- package/dist/core/shaders/NoiseDissolve/index.js +11 -10
- package/dist/core/shaders/ObjectTracker/index.js +10 -10
- package/dist/core/shaders/PagePeel/index.js +8 -8
- package/dist/core/shaders/Paper/index.js +9 -8
- package/dist/core/shaders/Parallelogram/index.js +7 -7
- package/dist/core/shaders/ParticleField/index.js +11 -10
- package/dist/core/shaders/ParticleFlow/index.js +11 -10
- package/dist/core/shaders/Particles/index.js +12 -11
- package/dist/core/shaders/PerlinNoise/index.js +15 -14
- package/dist/core/shaders/Perspective/index.js +8 -8
- package/dist/core/shaders/PixelSort/index.js +9 -8
- package/dist/core/shaders/PixelThrow/index.js +7 -7
- package/dist/core/shaders/Pixelate/index.js +7 -7
- package/dist/core/shaders/Plasma/index.js +14 -13
- package/dist/core/shaders/Plastic/index.js +13 -12
- package/dist/core/shaders/PolarCoordinates/index.js +8 -8
- package/dist/core/shaders/Polygon/index.js +7 -7
- package/dist/core/shaders/Posterize/index.js +7 -7
- package/dist/core/shaders/Prism/index.js +7 -7
- package/dist/core/shaders/ProgressiveBlur/index.js +9 -9
- package/dist/core/shaders/RadialGradient/index.js +11 -11
- package/dist/core/shaders/RadialWipe/index.js +9 -9
- package/dist/core/shaders/RandomBars/index.js +11 -10
- package/dist/core/shaders/ReactionDiffusion/index.js +11 -10
- package/dist/core/shaders/RectangularCoordinates/index.js +8 -8
- package/dist/core/shaders/ReflectivePlane/index.js +8 -8
- package/dist/core/shaders/Repeater/index.js +7 -7
- package/dist/core/shaders/Ring/index.js +7 -7
- package/dist/core/shaders/RippleWipe/index.js +9 -9
- package/dist/core/shaders/Ripples/index.js +7 -7
- package/dist/core/shaders/RoundedRect/index.js +7 -7
- package/dist/core/shaders/Saturation/index.js +7 -7
- package/dist/core/shaders/Scratches/index.js +12 -11
- package/dist/core/shaders/Sharpness/index.js +7 -7
- package/dist/core/shaders/Shatter/index.js +7 -7
- package/dist/core/shaders/SimplexNoise/index.js +15 -14
- package/dist/core/shaders/SineWave/index.js +8 -8
- package/dist/core/shaders/SliceWipe/index.js +8 -8
- package/dist/core/shaders/Smoke/index.js +8 -8
- package/dist/core/shaders/SmokeFill/index.js +10 -10
- package/dist/core/shaders/SmokeFlow/index.js +8 -8
- package/dist/core/shaders/Solarize/index.js +7 -7
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +7 -7
- package/dist/core/shaders/Spiral/index.js +9 -8
- package/dist/core/shaders/Star/index.js +7 -7
- package/dist/core/shaders/Stone/index.js +6 -5
- package/dist/core/shaders/Strands/index.js +8 -8
- package/dist/core/shaders/Stretch/index.js +8 -8
- package/dist/core/shaders/Stripes/index.js +11 -10
- package/dist/core/shaders/StudioBackground/index.js +10 -10
- package/dist/core/shaders/SunBurst/index.js +10 -10
- package/dist/core/shaders/Surface3D/index.js +10 -9
- package/dist/core/shaders/Swirl/index.js +7 -7
- package/dist/core/shaders/Teardrop/index.js +7 -7
- package/dist/core/shaders/Text/index.js +11 -11
- package/dist/core/shaders/ThinFilm/index.js +9 -9
- package/dist/core/shaders/TiltShift/index.js +9 -9
- package/dist/core/shaders/TimeTrail/index.js +7 -7
- package/dist/core/shaders/Tint/index.js +7 -7
- package/dist/core/shaders/Trapezoid/index.js +7 -7
- package/dist/core/shaders/TriangularGrid/index.js +12 -11
- package/dist/core/shaders/Tritone/index.js +7 -7
- package/dist/core/shaders/Truchet/index.js +12 -11
- package/dist/core/shaders/Twirl/index.js +7 -7
- package/dist/core/shaders/VHS/index.js +9 -8
- package/dist/core/shaders/VenetianBlinds/index.js +9 -9
- package/dist/core/shaders/Vesica/index.js +7 -7
- package/dist/core/shaders/Vibrance/index.js +7 -7
- package/dist/core/shaders/VideoTexture/index.js +7 -7
- package/dist/core/shaders/Vignette/index.js +7 -7
- package/dist/core/shaders/Voronoi/index.js +12 -12
- package/dist/core/shaders/Water/index.js +13 -12
- package/dist/core/shaders/Watercolor/index.js +9 -8
- package/dist/core/shaders/WaveDistortion/index.js +8 -8
- package/dist/core/shaders/WaveletNoise/index.js +15 -14
- package/dist/core/shaders/Weave/index.js +12 -11
- package/dist/core/shaders/WebcamTexture/index.js +9 -9
- package/dist/core/shaders/Wool/index.js +6 -5
- package/dist/core/shaders/WorleyNoise/index.js +13 -13
- package/dist/core/shaders/ZoomBlur/index.js +8 -8
- package/dist/core/telemetry/index.js +1 -1
- package/dist/core/{tone-DPUvX6X0.js → tone-DgOOeWNY.js} +67 -137
- package/dist/core/utilities/transformations/index.js +1 -1
- package/dist/js/bundle.js +202 -187
- package/dist/js/createShader.js +1 -1
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +198 -183
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -0
- package/dist/react/utils/generatePresetCode.template.d.ts.map +1 -1
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +2 -1
- package/dist/solid/utils/generatePresetCode.template.d.ts.map +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/svelte/utils/generatePresetCode.js +1 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +1 -0
- package/dist/vue/utils/generatePresetCode.template.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/core/shaderRegistry-BIDNV71c.js +0 -433
- /package/dist/core/{canvasRaster-BB2bNhS7.js → canvasRaster-B41z007g.js} +0 -0
- /package/dist/core/{constants-DoOzbl5b.js → constants-BKlzQFdJ.js} +0 -0
- /package/dist/core/{fonts-DPf2-jCd.js → fonts-BMxmjoBM.js} +0 -0
- /package/dist/core/{pointer-DGDGF-yO.js → pointer-DKBz1Qcc.js} +0 -0
- /package/dist/core/{support-6QRFK3xB.js → support-DVuLvN48.js} +0 -0
- /package/dist/core/{transformations-B-zNWNdd.js → transformations-u-UZrXjj.js} +0 -0
|
@@ -1,18 +1,120 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { Mt as vec2f, Ot as smoothstep, _t as max, an as dualImpl, cn as i32, ct as clamp, dn as safeStringify, dt as dot, et as typegpu_default, fn as Void, ft as exp, gt as length, it as abs, kt as sqrt, ln as u32, pn as isAtomic, rt as select, sn as f32, un as stitch, vt as min, yt as mix } from "./edges-BvIjDyJK.js";
|
|
2
|
+
dualImpl({
|
|
3
|
+
name: "workgroupBarrier",
|
|
4
|
+
normalImpl: "workgroupBarrier is a no-op outside of CODEGEN mode.",
|
|
5
|
+
signature: {
|
|
6
|
+
argTypes: [],
|
|
7
|
+
returnType: Void
|
|
8
|
+
},
|
|
9
|
+
codegenImpl: () => "workgroupBarrier()",
|
|
10
|
+
sideEffects: true
|
|
11
|
+
});
|
|
12
|
+
dualImpl({
|
|
13
|
+
name: "storageBarrier",
|
|
14
|
+
normalImpl: "storageBarrier is a no-op outside of CODEGEN mode.",
|
|
15
|
+
signature: {
|
|
16
|
+
argTypes: [],
|
|
17
|
+
returnType: Void
|
|
18
|
+
},
|
|
19
|
+
codegenImpl: () => "storageBarrier()",
|
|
20
|
+
sideEffects: true
|
|
21
|
+
});
|
|
22
|
+
dualImpl({
|
|
23
|
+
name: "textureBarrier",
|
|
24
|
+
normalImpl: "textureBarrier is a no-op outside of CODEGEN mode.",
|
|
25
|
+
signature: {
|
|
26
|
+
argTypes: [],
|
|
27
|
+
returnType: Void
|
|
28
|
+
},
|
|
29
|
+
codegenImpl: () => "textureBarrier()",
|
|
30
|
+
sideEffects: true
|
|
31
|
+
});
|
|
32
|
+
var atomicNormalError = "Atomic operations are not supported outside of CODEGEN mode.";
|
|
33
|
+
const atomicLoad = dualImpl({
|
|
34
|
+
name: "atomicLoad",
|
|
35
|
+
normalImpl: atomicNormalError,
|
|
36
|
+
signature: (a) => {
|
|
37
|
+
if (!isAtomic(a)) throw new Error(`Invalid atomic type: ${safeStringify(a)}`);
|
|
38
|
+
return {
|
|
39
|
+
argTypes: [a],
|
|
40
|
+
returnType: a.inner
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
codegenImpl: (_ctx, [a]) => stitch`atomicLoad(&${a})`,
|
|
44
|
+
sideEffects: true
|
|
45
|
+
});
|
|
46
|
+
var atomicActionSignature = (a) => {
|
|
47
|
+
if (!isAtomic(a)) throw new Error(`Invalid atomic type: ${safeStringify(a)}`);
|
|
48
|
+
return {
|
|
49
|
+
argTypes: [a, a.inner.type === "u32" ? u32 : i32],
|
|
50
|
+
returnType: Void
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
var atomicOpSignature = (a) => {
|
|
54
|
+
if (!isAtomic(a)) throw new Error(`Invalid atomic type: ${safeStringify(a)}`);
|
|
55
|
+
const paramType = a.inner.type === "u32" ? u32 : i32;
|
|
56
|
+
return {
|
|
57
|
+
argTypes: [a, paramType],
|
|
58
|
+
returnType: paramType
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
const atomicStore = dualImpl({
|
|
62
|
+
name: "atomicStore",
|
|
63
|
+
normalImpl: atomicNormalError,
|
|
64
|
+
signature: atomicActionSignature,
|
|
65
|
+
codegenImpl: (_ctx, [a, value]) => stitch`atomicStore(&${a}, ${value})`,
|
|
66
|
+
sideEffects: true
|
|
67
|
+
});
|
|
68
|
+
const atomicAdd = dualImpl({
|
|
69
|
+
name: "atomicAdd",
|
|
70
|
+
normalImpl: atomicNormalError,
|
|
71
|
+
signature: atomicOpSignature,
|
|
72
|
+
codegenImpl: (_ctx, [a, value]) => stitch`atomicAdd(&${a}, ${value})`,
|
|
73
|
+
sideEffects: true
|
|
74
|
+
});
|
|
75
|
+
dualImpl({
|
|
76
|
+
name: "atomicSub",
|
|
77
|
+
normalImpl: atomicNormalError,
|
|
78
|
+
signature: atomicOpSignature,
|
|
79
|
+
codegenImpl: (_ctx, [a, value]) => stitch`atomicSub(&${a}, ${value})`,
|
|
80
|
+
sideEffects: true
|
|
81
|
+
});
|
|
82
|
+
dualImpl({
|
|
83
|
+
name: "atomicMax",
|
|
84
|
+
normalImpl: atomicNormalError,
|
|
85
|
+
signature: atomicOpSignature,
|
|
86
|
+
codegenImpl: (_ctx, [a, value]) => stitch`atomicMax(&${a}, ${value})`,
|
|
87
|
+
sideEffects: true
|
|
88
|
+
});
|
|
89
|
+
dualImpl({
|
|
90
|
+
name: "atomicMin",
|
|
91
|
+
normalImpl: atomicNormalError,
|
|
92
|
+
signature: atomicOpSignature,
|
|
93
|
+
codegenImpl: (_ctx, [a, value]) => stitch`atomicMin(&${a}, ${value})`,
|
|
94
|
+
sideEffects: true
|
|
95
|
+
});
|
|
96
|
+
dualImpl({
|
|
97
|
+
name: "atomicAnd",
|
|
98
|
+
normalImpl: atomicNormalError,
|
|
99
|
+
signature: atomicOpSignature,
|
|
100
|
+
codegenImpl: (_ctx, [a, value]) => stitch`atomicAnd(&${a}, ${value})`,
|
|
101
|
+
sideEffects: true
|
|
14
102
|
});
|
|
15
|
-
|
|
103
|
+
dualImpl({
|
|
104
|
+
name: "atomicOr",
|
|
105
|
+
normalImpl: atomicNormalError,
|
|
106
|
+
signature: atomicOpSignature,
|
|
107
|
+
codegenImpl: (_ctx, [a, value]) => stitch`atomicOr(&${a}, ${value})`,
|
|
108
|
+
sideEffects: true
|
|
109
|
+
});
|
|
110
|
+
dualImpl({
|
|
111
|
+
name: "atomicXor",
|
|
112
|
+
normalImpl: atomicNormalError,
|
|
113
|
+
signature: atomicOpSignature,
|
|
114
|
+
codegenImpl: (_ctx, [a, value]) => stitch`atomicXor(&${a}, ${value})`,
|
|
115
|
+
sideEffects: true
|
|
116
|
+
});
|
|
117
|
+
const arrowSdf = typegpu_default.fn([
|
|
16
118
|
f32,
|
|
17
119
|
f32,
|
|
18
120
|
f32,
|
|
@@ -32,7 +134,7 @@ const arrowSdf = src_default.fn([
|
|
|
32
134
|
const inside = min(__tsover_sub(__tsover_mul(py, qx), __tsover_mul(px, qy)), __tsover_sub(qy, py)) > 0;
|
|
33
135
|
return select(sqrt(dSq), -sqrt(dSq), inside);
|
|
34
136
|
}), {
|
|
35
|
-
v:
|
|
137
|
+
v: 2,
|
|
36
138
|
name: void 0,
|
|
37
139
|
ast: {
|
|
38
140
|
"params": [
|
|
@@ -59,11 +161,7 @@ const arrowSdf = src_default.fn([
|
|
|
59
161
|
"px",
|
|
60
162
|
[
|
|
61
163
|
6,
|
|
62
|
-
|
|
63
|
-
7,
|
|
64
|
-
"std",
|
|
65
|
-
"abs"
|
|
66
|
-
],
|
|
164
|
+
"std.abs",
|
|
67
165
|
["n"]
|
|
68
166
|
]
|
|
69
167
|
],
|
|
@@ -97,11 +195,7 @@ const arrowSdf = src_default.fn([
|
|
|
97
195
|
"k",
|
|
98
196
|
[
|
|
99
197
|
6,
|
|
100
|
-
|
|
101
|
-
7,
|
|
102
|
-
"std",
|
|
103
|
-
"clamp"
|
|
104
|
-
],
|
|
198
|
+
"std.clamp",
|
|
105
199
|
[
|
|
106
200
|
[
|
|
107
201
|
1,
|
|
@@ -124,11 +218,7 @@ const arrowSdf = src_default.fn([
|
|
|
124
218
|
"/",
|
|
125
219
|
[
|
|
126
220
|
6,
|
|
127
|
-
|
|
128
|
-
7,
|
|
129
|
-
"std",
|
|
130
|
-
"max"
|
|
131
|
-
],
|
|
221
|
+
"std.max",
|
|
132
222
|
[[
|
|
133
223
|
1,
|
|
134
224
|
[
|
|
@@ -195,11 +285,7 @@ const arrowSdf = src_default.fn([
|
|
|
195
285
|
"*",
|
|
196
286
|
[
|
|
197
287
|
6,
|
|
198
|
-
|
|
199
|
-
7,
|
|
200
|
-
"std",
|
|
201
|
-
"clamp"
|
|
202
|
-
],
|
|
288
|
+
"std.clamp",
|
|
203
289
|
[
|
|
204
290
|
[
|
|
205
291
|
1,
|
|
@@ -207,11 +293,7 @@ const arrowSdf = src_default.fn([
|
|
|
207
293
|
"/",
|
|
208
294
|
[
|
|
209
295
|
6,
|
|
210
|
-
|
|
211
|
-
7,
|
|
212
|
-
"std",
|
|
213
|
-
"max"
|
|
214
|
-
],
|
|
296
|
+
"std.max",
|
|
215
297
|
["qx", [5, "1e-9"]]
|
|
216
298
|
]
|
|
217
299
|
],
|
|
@@ -237,11 +319,7 @@ const arrowSdf = src_default.fn([
|
|
|
237
319
|
"dSq",
|
|
238
320
|
[
|
|
239
321
|
6,
|
|
240
|
-
|
|
241
|
-
7,
|
|
242
|
-
"std",
|
|
243
|
-
"min"
|
|
244
|
-
],
|
|
322
|
+
"std.min",
|
|
245
323
|
[[
|
|
246
324
|
1,
|
|
247
325
|
[
|
|
@@ -312,11 +390,7 @@ const arrowSdf = src_default.fn([
|
|
|
312
390
|
1,
|
|
313
391
|
[
|
|
314
392
|
6,
|
|
315
|
-
|
|
316
|
-
7,
|
|
317
|
-
"std",
|
|
318
|
-
"min"
|
|
319
|
-
],
|
|
393
|
+
"std.min",
|
|
320
394
|
["sA", "sB"]
|
|
321
395
|
],
|
|
322
396
|
">",
|
|
@@ -325,19 +399,11 @@ const arrowSdf = src_default.fn([
|
|
|
325
399
|
],
|
|
326
400
|
[10, [
|
|
327
401
|
6,
|
|
328
|
-
|
|
329
|
-
7,
|
|
330
|
-
"std",
|
|
331
|
-
"select"
|
|
332
|
-
],
|
|
402
|
+
"std.select",
|
|
333
403
|
[
|
|
334
404
|
[
|
|
335
405
|
6,
|
|
336
|
-
|
|
337
|
-
7,
|
|
338
|
-
"std",
|
|
339
|
-
"sqrt"
|
|
340
|
-
],
|
|
406
|
+
"std.sqrt",
|
|
341
407
|
["dSq"]
|
|
342
408
|
],
|
|
343
409
|
[
|
|
@@ -345,23 +411,25 @@ const arrowSdf = src_default.fn([
|
|
|
345
411
|
"-",
|
|
346
412
|
[
|
|
347
413
|
6,
|
|
348
|
-
|
|
349
|
-
7,
|
|
350
|
-
"std",
|
|
351
|
-
"sqrt"
|
|
352
|
-
],
|
|
414
|
+
"std.sqrt",
|
|
353
415
|
["dSq"]
|
|
354
416
|
]
|
|
355
417
|
],
|
|
356
418
|
"inside"
|
|
357
419
|
]
|
|
358
420
|
]]
|
|
359
|
-
]]
|
|
360
|
-
"externalNames": ["std"]
|
|
421
|
+
]]
|
|
361
422
|
},
|
|
362
|
-
externals:
|
|
423
|
+
externals: {
|
|
424
|
+
"std.abs": () => abs,
|
|
425
|
+
"std.clamp": () => clamp,
|
|
426
|
+
"std.max": () => max,
|
|
427
|
+
"std.min": () => min,
|
|
428
|
+
"std.select": () => select,
|
|
429
|
+
"std.sqrt": () => sqrt
|
|
430
|
+
}
|
|
363
431
|
}) && $.f)({})).$name("agentArrowSdf");
|
|
364
|
-
const capsuleSdf =
|
|
432
|
+
const capsuleSdf = typegpu_default.fn([
|
|
365
433
|
f32,
|
|
366
434
|
f32,
|
|
367
435
|
f32,
|
|
@@ -371,7 +439,7 @@ const capsuleSdf = src_default.fn([
|
|
|
371
439
|
const tc = __tsover_sub(t, clamp(t, -hl, hl));
|
|
372
440
|
return __tsover_sub(sqrt(__tsover_add(__tsover_mul(tc, tc), __tsover_mul(n, n))), r);
|
|
373
441
|
}), {
|
|
374
|
-
v:
|
|
442
|
+
v: 2,
|
|
375
443
|
name: void 0,
|
|
376
444
|
ast: {
|
|
377
445
|
"params": [
|
|
@@ -401,11 +469,7 @@ const capsuleSdf = src_default.fn([
|
|
|
401
469
|
"-",
|
|
402
470
|
[
|
|
403
471
|
6,
|
|
404
|
-
|
|
405
|
-
7,
|
|
406
|
-
"std",
|
|
407
|
-
"clamp"
|
|
408
|
-
],
|
|
472
|
+
"std.clamp",
|
|
409
473
|
[
|
|
410
474
|
"t",
|
|
411
475
|
[
|
|
@@ -421,11 +485,7 @@ const capsuleSdf = src_default.fn([
|
|
|
421
485
|
1,
|
|
422
486
|
[
|
|
423
487
|
6,
|
|
424
|
-
|
|
425
|
-
7,
|
|
426
|
-
"std",
|
|
427
|
-
"sqrt"
|
|
428
|
-
],
|
|
488
|
+
"std.sqrt",
|
|
429
489
|
[[
|
|
430
490
|
1,
|
|
431
491
|
[
|
|
@@ -445,12 +505,14 @@ const capsuleSdf = src_default.fn([
|
|
|
445
505
|
],
|
|
446
506
|
"-",
|
|
447
507
|
"r"
|
|
448
|
-
]]]]
|
|
449
|
-
"externalNames": ["std"]
|
|
508
|
+
]]]]
|
|
450
509
|
},
|
|
451
|
-
externals:
|
|
510
|
+
externals: {
|
|
511
|
+
"std.clamp": () => clamp,
|
|
512
|
+
"std.sqrt": () => sqrt
|
|
513
|
+
}
|
|
452
514
|
}) && $.f)({})).$name("agentCapsuleSdf");
|
|
453
|
-
const boxSdf =
|
|
515
|
+
const boxSdf = typegpu_default.fn([
|
|
454
516
|
f32,
|
|
455
517
|
f32,
|
|
456
518
|
f32,
|
|
@@ -463,7 +525,7 @@ const boxSdf = src_default.fn([
|
|
|
463
525
|
const oy = max(qy, 0);
|
|
464
526
|
return __tsover_add(sqrt(__tsover_add(__tsover_mul(ox, ox), __tsover_mul(oy, oy))), min(max(qx, qy), 0));
|
|
465
527
|
}), {
|
|
466
|
-
v:
|
|
528
|
+
v: 2,
|
|
467
529
|
name: void 0,
|
|
468
530
|
ast: {
|
|
469
531
|
"params": [
|
|
@@ -492,11 +554,7 @@ const boxSdf = src_default.fn([
|
|
|
492
554
|
1,
|
|
493
555
|
[
|
|
494
556
|
6,
|
|
495
|
-
|
|
496
|
-
7,
|
|
497
|
-
"std",
|
|
498
|
-
"abs"
|
|
499
|
-
],
|
|
557
|
+
"std.abs",
|
|
500
558
|
["t"]
|
|
501
559
|
],
|
|
502
560
|
"-",
|
|
@@ -510,11 +568,7 @@ const boxSdf = src_default.fn([
|
|
|
510
568
|
1,
|
|
511
569
|
[
|
|
512
570
|
6,
|
|
513
|
-
|
|
514
|
-
7,
|
|
515
|
-
"std",
|
|
516
|
-
"abs"
|
|
517
|
-
],
|
|
571
|
+
"std.abs",
|
|
518
572
|
["n"]
|
|
519
573
|
],
|
|
520
574
|
"-",
|
|
@@ -526,11 +580,7 @@ const boxSdf = src_default.fn([
|
|
|
526
580
|
"ox",
|
|
527
581
|
[
|
|
528
582
|
6,
|
|
529
|
-
|
|
530
|
-
7,
|
|
531
|
-
"std",
|
|
532
|
-
"max"
|
|
533
|
-
],
|
|
583
|
+
"std.max",
|
|
534
584
|
["qx", [5, "0"]]
|
|
535
585
|
]
|
|
536
586
|
],
|
|
@@ -539,11 +589,7 @@ const boxSdf = src_default.fn([
|
|
|
539
589
|
"oy",
|
|
540
590
|
[
|
|
541
591
|
6,
|
|
542
|
-
|
|
543
|
-
7,
|
|
544
|
-
"std",
|
|
545
|
-
"max"
|
|
546
|
-
],
|
|
592
|
+
"std.max",
|
|
547
593
|
["qy", [5, "0"]]
|
|
548
594
|
]
|
|
549
595
|
],
|
|
@@ -551,11 +597,7 @@ const boxSdf = src_default.fn([
|
|
|
551
597
|
1,
|
|
552
598
|
[
|
|
553
599
|
6,
|
|
554
|
-
|
|
555
|
-
7,
|
|
556
|
-
"std",
|
|
557
|
-
"sqrt"
|
|
558
|
-
],
|
|
600
|
+
"std.sqrt",
|
|
559
601
|
[[
|
|
560
602
|
1,
|
|
561
603
|
[
|
|
@@ -576,26 +618,22 @@ const boxSdf = src_default.fn([
|
|
|
576
618
|
"+",
|
|
577
619
|
[
|
|
578
620
|
6,
|
|
579
|
-
|
|
580
|
-
7,
|
|
581
|
-
"std",
|
|
582
|
-
"min"
|
|
583
|
-
],
|
|
621
|
+
"std.min",
|
|
584
622
|
[[
|
|
585
623
|
6,
|
|
586
|
-
|
|
587
|
-
7,
|
|
588
|
-
"std",
|
|
589
|
-
"max"
|
|
590
|
-
],
|
|
624
|
+
"std.max",
|
|
591
625
|
["qx", "qy"]
|
|
592
626
|
], [5, "0"]]
|
|
593
627
|
]
|
|
594
628
|
]]
|
|
595
|
-
]]
|
|
596
|
-
"externalNames": ["std"]
|
|
629
|
+
]]
|
|
597
630
|
},
|
|
598
|
-
externals:
|
|
631
|
+
externals: {
|
|
632
|
+
"std.abs": () => abs,
|
|
633
|
+
"std.max": () => max,
|
|
634
|
+
"std.sqrt": () => sqrt,
|
|
635
|
+
"std.min": () => min
|
|
636
|
+
}
|
|
599
637
|
}) && $.f)({})).$name("agentBoxSdf");
|
|
600
638
|
const AGENT_SHAPES = {
|
|
601
639
|
arrow: {
|
|
@@ -678,7 +716,7 @@ function makeAgentWeightFn(shape) {
|
|
|
678
716
|
const sdFn = s.kind === 1 ? arrowSdf : s.kind === 2 ? boxSdf : capsuleSdf;
|
|
679
717
|
const HL = s.hl;
|
|
680
718
|
const HW = s.hw;
|
|
681
|
-
return
|
|
719
|
+
return typegpu_default.fn([
|
|
682
720
|
f32,
|
|
683
721
|
f32,
|
|
684
722
|
f32,
|
|
@@ -691,7 +729,7 @@ function makeAgentWeightFn(shape) {
|
|
|
691
729
|
const gq = __tsover_div(max(sd, 0), max(__tsover_mul(bodyR, .75), 1e-6));
|
|
692
730
|
return mix(wHard, exp(__tsover_mul(__tsover_mul(gq, gq), -1)), soft);
|
|
693
731
|
}), {
|
|
694
|
-
v:
|
|
732
|
+
v: 2,
|
|
695
733
|
name: void 0,
|
|
696
734
|
ast: {
|
|
697
735
|
"params": [
|
|
@@ -750,11 +788,7 @@ function makeAgentWeightFn(shape) {
|
|
|
750
788
|
"-",
|
|
751
789
|
[
|
|
752
790
|
6,
|
|
753
|
-
|
|
754
|
-
7,
|
|
755
|
-
"std",
|
|
756
|
-
"smoothstep"
|
|
757
|
-
],
|
|
791
|
+
"std.smoothstep",
|
|
758
792
|
[
|
|
759
793
|
[
|
|
760
794
|
4,
|
|
@@ -774,21 +808,13 @@ function makeAgentWeightFn(shape) {
|
|
|
774
808
|
1,
|
|
775
809
|
[
|
|
776
810
|
6,
|
|
777
|
-
|
|
778
|
-
7,
|
|
779
|
-
"std",
|
|
780
|
-
"max"
|
|
781
|
-
],
|
|
811
|
+
"std.max",
|
|
782
812
|
["sd", [5, "0"]]
|
|
783
813
|
],
|
|
784
814
|
"/",
|
|
785
815
|
[
|
|
786
816
|
6,
|
|
787
|
-
|
|
788
|
-
7,
|
|
789
|
-
"std",
|
|
790
|
-
"max"
|
|
791
|
-
],
|
|
817
|
+
"std.max",
|
|
792
818
|
[[
|
|
793
819
|
1,
|
|
794
820
|
"bodyR",
|
|
@@ -803,11 +829,7 @@ function makeAgentWeightFn(shape) {
|
|
|
803
829
|
"wSoft",
|
|
804
830
|
[
|
|
805
831
|
6,
|
|
806
|
-
|
|
807
|
-
7,
|
|
808
|
-
"std",
|
|
809
|
-
"exp"
|
|
810
|
-
],
|
|
832
|
+
"std.exp",
|
|
811
833
|
[[
|
|
812
834
|
1,
|
|
813
835
|
[
|
|
@@ -827,31 +849,24 @@ function makeAgentWeightFn(shape) {
|
|
|
827
849
|
],
|
|
828
850
|
[10, [
|
|
829
851
|
6,
|
|
830
|
-
|
|
831
|
-
7,
|
|
832
|
-
"std",
|
|
833
|
-
"mix"
|
|
834
|
-
],
|
|
852
|
+
"std.mix",
|
|
835
853
|
[
|
|
836
854
|
"wHard",
|
|
837
855
|
"wSoft",
|
|
838
856
|
"soft"
|
|
839
857
|
]
|
|
840
858
|
]]
|
|
841
|
-
]]
|
|
842
|
-
"externalNames": [
|
|
843
|
-
"sdFn",
|
|
844
|
-
"HL",
|
|
845
|
-
"HW",
|
|
846
|
-
"std"
|
|
847
|
-
]
|
|
859
|
+
]]
|
|
848
860
|
},
|
|
849
|
-
externals:
|
|
850
|
-
sdFn,
|
|
851
|
-
HL,
|
|
852
|
-
HW,
|
|
853
|
-
std:
|
|
854
|
-
|
|
861
|
+
externals: {
|
|
862
|
+
"sdFn": () => sdFn,
|
|
863
|
+
"HL": () => HL,
|
|
864
|
+
"HW": () => HW,
|
|
865
|
+
"std.smoothstep": () => smoothstep,
|
|
866
|
+
"std.max": () => max,
|
|
867
|
+
"std.exp": () => exp,
|
|
868
|
+
"std.mix": () => mix
|
|
869
|
+
}
|
|
855
870
|
}) && $.f)({})).$name("agentWeight");
|
|
856
871
|
}
|
|
857
872
|
function makeAgentTexelWeightFn(shape) {
|
|
@@ -861,7 +876,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
861
876
|
const HW = s.hw;
|
|
862
877
|
const isDisc = s.kind === 0 && s.hl === 0;
|
|
863
878
|
const soft = s.soft === 1;
|
|
864
|
-
if (isDisc) return soft ?
|
|
879
|
+
if (isDisc) return soft ? typegpu_default.fn([
|
|
865
880
|
f32,
|
|
866
881
|
f32,
|
|
867
882
|
f32,
|
|
@@ -873,7 +888,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
873
888
|
const gq = __tsover_div(max(sd, 0), max(__tsover_mul(bodyR, .75), 1e-6));
|
|
874
889
|
return exp(__tsover_mul(__tsover_mul(gq, gq), -1));
|
|
875
890
|
}), {
|
|
876
|
-
v:
|
|
891
|
+
v: 2,
|
|
877
892
|
name: void 0,
|
|
878
893
|
ast: {
|
|
879
894
|
"params": [
|
|
@@ -910,11 +925,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
910
925
|
1,
|
|
911
926
|
[
|
|
912
927
|
6,
|
|
913
|
-
|
|
914
|
-
7,
|
|
915
|
-
"std",
|
|
916
|
-
"sqrt"
|
|
917
|
-
],
|
|
928
|
+
"std.sqrt",
|
|
918
929
|
["q"]
|
|
919
930
|
],
|
|
920
931
|
"-",
|
|
@@ -929,21 +940,13 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
929
940
|
1,
|
|
930
941
|
[
|
|
931
942
|
6,
|
|
932
|
-
|
|
933
|
-
7,
|
|
934
|
-
"std",
|
|
935
|
-
"max"
|
|
936
|
-
],
|
|
943
|
+
"std.max",
|
|
937
944
|
["sd", [5, "0"]]
|
|
938
945
|
],
|
|
939
946
|
"/",
|
|
940
947
|
[
|
|
941
948
|
6,
|
|
942
|
-
|
|
943
|
-
7,
|
|
944
|
-
"std",
|
|
945
|
-
"max"
|
|
946
|
-
],
|
|
949
|
+
"std.max",
|
|
947
950
|
[[
|
|
948
951
|
1,
|
|
949
952
|
"bodyR",
|
|
@@ -955,11 +958,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
955
958
|
],
|
|
956
959
|
[10, [
|
|
957
960
|
6,
|
|
958
|
-
|
|
959
|
-
7,
|
|
960
|
-
"std",
|
|
961
|
-
"exp"
|
|
962
|
-
],
|
|
961
|
+
"std.exp",
|
|
963
962
|
[[
|
|
964
963
|
1,
|
|
965
964
|
[
|
|
@@ -976,14 +975,15 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
976
975
|
]
|
|
977
976
|
]]
|
|
978
977
|
]]
|
|
979
|
-
]]
|
|
980
|
-
"externalNames": ["std", "HW"]
|
|
978
|
+
]]
|
|
981
979
|
},
|
|
982
|
-
externals:
|
|
983
|
-
std:
|
|
984
|
-
HW
|
|
985
|
-
|
|
986
|
-
|
|
980
|
+
externals: {
|
|
981
|
+
"std.sqrt": () => sqrt,
|
|
982
|
+
"HW": () => HW,
|
|
983
|
+
"std.max": () => max,
|
|
984
|
+
"std.exp": () => exp
|
|
985
|
+
}
|
|
986
|
+
}) && $.f)({})).$name("agentTexelWeight") : typegpu_default.fn([
|
|
987
987
|
f32,
|
|
988
988
|
f32,
|
|
989
989
|
f32,
|
|
@@ -994,7 +994,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
994
994
|
const sd = __tsover_mul(bodyR, __tsover_sub(sqrt(q), HW));
|
|
995
995
|
return __tsover_sub(1, smoothstep(-aaW, aaW, sd));
|
|
996
996
|
}), {
|
|
997
|
-
v:
|
|
997
|
+
v: 2,
|
|
998
998
|
name: void 0,
|
|
999
999
|
ast: {
|
|
1000
1000
|
"params": [
|
|
@@ -1030,11 +1030,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
1030
1030
|
1,
|
|
1031
1031
|
[
|
|
1032
1032
|
6,
|
|
1033
|
-
|
|
1034
|
-
7,
|
|
1035
|
-
"std",
|
|
1036
|
-
"sqrt"
|
|
1037
|
-
],
|
|
1033
|
+
"std.sqrt",
|
|
1038
1034
|
["q"]
|
|
1039
1035
|
],
|
|
1040
1036
|
"-",
|
|
@@ -1047,11 +1043,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
1047
1043
|
"-",
|
|
1048
1044
|
[
|
|
1049
1045
|
6,
|
|
1050
|
-
|
|
1051
|
-
7,
|
|
1052
|
-
"std",
|
|
1053
|
-
"smoothstep"
|
|
1054
|
-
],
|
|
1046
|
+
"std.smoothstep",
|
|
1055
1047
|
[
|
|
1056
1048
|
[
|
|
1057
1049
|
4,
|
|
@@ -1062,15 +1054,15 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
1062
1054
|
"sd"
|
|
1063
1055
|
]
|
|
1064
1056
|
]
|
|
1065
|
-
]]]]
|
|
1066
|
-
"externalNames": ["std", "HW"]
|
|
1057
|
+
]]]]
|
|
1067
1058
|
},
|
|
1068
|
-
externals:
|
|
1069
|
-
std:
|
|
1070
|
-
HW
|
|
1071
|
-
|
|
1059
|
+
externals: {
|
|
1060
|
+
"std.sqrt": () => sqrt,
|
|
1061
|
+
"HW": () => HW,
|
|
1062
|
+
"std.smoothstep": () => smoothstep
|
|
1063
|
+
}
|
|
1072
1064
|
}) && $.f)({})).$name("agentTexelWeight");
|
|
1073
|
-
return soft ?
|
|
1065
|
+
return soft ? typegpu_default.fn([
|
|
1074
1066
|
f32,
|
|
1075
1067
|
f32,
|
|
1076
1068
|
f32,
|
|
@@ -1082,7 +1074,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
1082
1074
|
const gq = __tsover_div(max(sd, 0), max(__tsover_mul(bodyR, .75), 1e-6));
|
|
1083
1075
|
return exp(__tsover_mul(__tsover_mul(gq, gq), -1));
|
|
1084
1076
|
}), {
|
|
1085
|
-
v:
|
|
1077
|
+
v: 2,
|
|
1086
1078
|
name: void 0,
|
|
1087
1079
|
ast: {
|
|
1088
1080
|
"params": [
|
|
@@ -1139,21 +1131,13 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
1139
1131
|
1,
|
|
1140
1132
|
[
|
|
1141
1133
|
6,
|
|
1142
|
-
|
|
1143
|
-
7,
|
|
1144
|
-
"std",
|
|
1145
|
-
"max"
|
|
1146
|
-
],
|
|
1134
|
+
"std.max",
|
|
1147
1135
|
["sd", [5, "0"]]
|
|
1148
1136
|
],
|
|
1149
1137
|
"/",
|
|
1150
1138
|
[
|
|
1151
1139
|
6,
|
|
1152
|
-
|
|
1153
|
-
7,
|
|
1154
|
-
"std",
|
|
1155
|
-
"max"
|
|
1156
|
-
],
|
|
1140
|
+
"std.max",
|
|
1157
1141
|
[[
|
|
1158
1142
|
1,
|
|
1159
1143
|
"bodyR",
|
|
@@ -1165,11 +1149,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
1165
1149
|
],
|
|
1166
1150
|
[10, [
|
|
1167
1151
|
6,
|
|
1168
|
-
|
|
1169
|
-
7,
|
|
1170
|
-
"std",
|
|
1171
|
-
"exp"
|
|
1172
|
-
],
|
|
1152
|
+
"std.exp",
|
|
1173
1153
|
[[
|
|
1174
1154
|
1,
|
|
1175
1155
|
[
|
|
@@ -1186,21 +1166,16 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
1186
1166
|
]
|
|
1187
1167
|
]]
|
|
1188
1168
|
]]
|
|
1189
|
-
]]
|
|
1190
|
-
"externalNames": [
|
|
1191
|
-
"sdFn",
|
|
1192
|
-
"HL",
|
|
1193
|
-
"HW",
|
|
1194
|
-
"std"
|
|
1195
|
-
]
|
|
1169
|
+
]]
|
|
1196
1170
|
},
|
|
1197
|
-
externals:
|
|
1198
|
-
sdFn,
|
|
1199
|
-
HL,
|
|
1200
|
-
HW,
|
|
1201
|
-
std:
|
|
1202
|
-
|
|
1203
|
-
|
|
1171
|
+
externals: {
|
|
1172
|
+
"sdFn": () => sdFn,
|
|
1173
|
+
"HL": () => HL,
|
|
1174
|
+
"HW": () => HW,
|
|
1175
|
+
"std.max": () => max,
|
|
1176
|
+
"std.exp": () => exp
|
|
1177
|
+
}
|
|
1178
|
+
}) && $.f)({})).$name("agentTexelWeight") : typegpu_default.fn([
|
|
1204
1179
|
f32,
|
|
1205
1180
|
f32,
|
|
1206
1181
|
f32,
|
|
@@ -1211,7 +1186,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
1211
1186
|
const sd = sdFn(t, n, __tsover_mul(bodyR, HL), __tsover_mul(bodyR, HW));
|
|
1212
1187
|
return __tsover_sub(1, smoothstep(-aaW, aaW, sd));
|
|
1213
1188
|
}), {
|
|
1214
|
-
v:
|
|
1189
|
+
v: 2,
|
|
1215
1190
|
name: void 0,
|
|
1216
1191
|
ast: {
|
|
1217
1192
|
"params": [
|
|
@@ -1265,11 +1240,7 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
1265
1240
|
"-",
|
|
1266
1241
|
[
|
|
1267
1242
|
6,
|
|
1268
|
-
|
|
1269
|
-
7,
|
|
1270
|
-
"std",
|
|
1271
|
-
"smoothstep"
|
|
1272
|
-
],
|
|
1243
|
+
"std.smoothstep",
|
|
1273
1244
|
[
|
|
1274
1245
|
[
|
|
1275
1246
|
4,
|
|
@@ -1280,28 +1251,22 @@ function makeAgentTexelWeightFn(shape) {
|
|
|
1280
1251
|
"sd"
|
|
1281
1252
|
]
|
|
1282
1253
|
]
|
|
1283
|
-
]]]]
|
|
1284
|
-
"externalNames": [
|
|
1285
|
-
"sdFn",
|
|
1286
|
-
"HL",
|
|
1287
|
-
"HW",
|
|
1288
|
-
"std"
|
|
1289
|
-
]
|
|
1254
|
+
]]]]
|
|
1290
1255
|
},
|
|
1291
|
-
externals:
|
|
1292
|
-
sdFn,
|
|
1293
|
-
HL,
|
|
1294
|
-
HW,
|
|
1295
|
-
std:
|
|
1296
|
-
}
|
|
1256
|
+
externals: {
|
|
1257
|
+
"sdFn": () => sdFn,
|
|
1258
|
+
"HL": () => HL,
|
|
1259
|
+
"HW": () => HW,
|
|
1260
|
+
"std.smoothstep": () => smoothstep
|
|
1261
|
+
}
|
|
1297
1262
|
}) && $.f)({})).$name("agentTexelWeight");
|
|
1298
1263
|
}
|
|
1299
|
-
const cursorFalloff =
|
|
1264
|
+
const cursorFalloff = typegpu_default.fn([vec2f, f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((delta, radSq) => {
|
|
1300
1265
|
"use gpu";
|
|
1301
1266
|
const dl = dot(delta, delta);
|
|
1302
1267
|
return exp(__tsover_mul(__tsover_div(dl, max(radSq, 1e-5)), -1));
|
|
1303
1268
|
}), {
|
|
1304
|
-
v:
|
|
1269
|
+
v: 2,
|
|
1305
1270
|
name: void 0,
|
|
1306
1271
|
ast: {
|
|
1307
1272
|
"params": [{
|
|
@@ -1316,20 +1281,12 @@ const cursorFalloff = src_default.fn([vec2f, f32], f32)(/* @__PURE__ */ (($) =>
|
|
|
1316
1281
|
"dl",
|
|
1317
1282
|
[
|
|
1318
1283
|
6,
|
|
1319
|
-
|
|
1320
|
-
7,
|
|
1321
|
-
"std",
|
|
1322
|
-
"dot"
|
|
1323
|
-
],
|
|
1284
|
+
"std.dot",
|
|
1324
1285
|
["delta", "delta"]
|
|
1325
1286
|
]
|
|
1326
1287
|
], [10, [
|
|
1327
1288
|
6,
|
|
1328
|
-
|
|
1329
|
-
7,
|
|
1330
|
-
"std",
|
|
1331
|
-
"exp"
|
|
1332
|
-
],
|
|
1289
|
+
"std.exp",
|
|
1333
1290
|
[[
|
|
1334
1291
|
1,
|
|
1335
1292
|
[
|
|
@@ -1338,11 +1295,7 @@ const cursorFalloff = src_default.fn([vec2f, f32], f32)(/* @__PURE__ */ (($) =>
|
|
|
1338
1295
|
"/",
|
|
1339
1296
|
[
|
|
1340
1297
|
6,
|
|
1341
|
-
|
|
1342
|
-
7,
|
|
1343
|
-
"std",
|
|
1344
|
-
"max"
|
|
1345
|
-
],
|
|
1298
|
+
"std.max",
|
|
1346
1299
|
["radSq", [5, "0.00001"]]
|
|
1347
1300
|
]
|
|
1348
1301
|
],
|
|
@@ -1353,12 +1306,15 @@ const cursorFalloff = src_default.fn([vec2f, f32], f32)(/* @__PURE__ */ (($) =>
|
|
|
1353
1306
|
[5, "1"]
|
|
1354
1307
|
]
|
|
1355
1308
|
]]
|
|
1356
|
-
]]]]
|
|
1357
|
-
"externalNames": ["std"]
|
|
1309
|
+
]]]]
|
|
1358
1310
|
},
|
|
1359
|
-
externals:
|
|
1311
|
+
externals: {
|
|
1312
|
+
"std.dot": () => dot,
|
|
1313
|
+
"std.exp": () => exp,
|
|
1314
|
+
"std.max": () => max
|
|
1315
|
+
}
|
|
1360
1316
|
}) && $.f)({})).$name("agentCursorFalloff");
|
|
1361
|
-
const cursorMagnet =
|
|
1317
|
+
const cursorMagnet = typegpu_default.fn([
|
|
1362
1318
|
vec2f,
|
|
1363
1319
|
f32,
|
|
1364
1320
|
f32
|
|
@@ -1367,7 +1323,7 @@ const cursorMagnet = src_default.fn([
|
|
|
1367
1323
|
const dl = max(length(delta), 1e-4);
|
|
1368
1324
|
return delta.div(dl).mul(__tsover_mul(cursorFalloff(delta, radSq), force));
|
|
1369
1325
|
}), {
|
|
1370
|
-
v:
|
|
1326
|
+
v: 2,
|
|
1371
1327
|
name: void 0,
|
|
1372
1328
|
ast: {
|
|
1373
1329
|
"params": [
|
|
@@ -1389,18 +1345,10 @@ const cursorMagnet = src_default.fn([
|
|
|
1389
1345
|
"dl",
|
|
1390
1346
|
[
|
|
1391
1347
|
6,
|
|
1392
|
-
|
|
1393
|
-
7,
|
|
1394
|
-
"std",
|
|
1395
|
-
"max"
|
|
1396
|
-
],
|
|
1348
|
+
"std.max",
|
|
1397
1349
|
[[
|
|
1398
1350
|
6,
|
|
1399
|
-
|
|
1400
|
-
7,
|
|
1401
|
-
"std",
|
|
1402
|
-
"length"
|
|
1403
|
-
],
|
|
1351
|
+
"std.length",
|
|
1404
1352
|
["delta"]
|
|
1405
1353
|
], [5, "0.0001"]]
|
|
1406
1354
|
]
|
|
@@ -1429,12 +1377,12 @@ const cursorMagnet = src_default.fn([
|
|
|
1429
1377
|
"*",
|
|
1430
1378
|
"force"
|
|
1431
1379
|
]]
|
|
1432
|
-
]]]]
|
|
1433
|
-
"externalNames": ["std", "cursorFalloff"]
|
|
1380
|
+
]]]]
|
|
1434
1381
|
},
|
|
1435
|
-
externals:
|
|
1436
|
-
std:
|
|
1437
|
-
|
|
1438
|
-
|
|
1382
|
+
externals: {
|
|
1383
|
+
"std.max": () => max,
|
|
1384
|
+
"std.length": () => length,
|
|
1385
|
+
"cursorFalloff": () => cursorFalloff
|
|
1386
|
+
}
|
|
1439
1387
|
}) && $.f)({})).$name("agentCursorMagnet");
|
|
1440
|
-
export {
|
|
1388
|
+
export { makeAgentWeightFn as a, resolveAgentShape as c, atomicStore as d, makeAgentTexelWeightFn as i, atomicAdd as l, cursorFalloff as n, orientedShapeOptions as o, cursorMagnet as r, pointShapeOptions as s, AGENT_SHAPES as t, atomicLoad as u };
|