shaders 3.0.448 → 3.0.450
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-xU811GPM.js → AngularBlur-4jt7bNoF.js} +15 -15
- package/dist/core/{Arc-DYvFxtGy.js → Arc-DXIfbBgd.js} +13 -12
- package/dist/core/{Ascii-ChE4BP7J.js → Ascii-GDof03Ca.js} +51 -53
- package/dist/core/{Aurora-BThE6pbb.js → Aurora-CS4vewUW.js} +63 -68
- package/dist/core/{BarShift-DdjkPSk3.js → BarShift-BtnYLQ0B.js} +31 -32
- package/dist/core/{BarnDoors-B_kxVuec.js → BarnDoors-Dw9K-amf.js} +21 -22
- package/dist/core/{Beam-C7zPHuIU.js → Beam-D_cyaMjJ.js} +32 -39
- package/dist/core/{Bend-CFcEjifF.js → Bend-CSs5UIh8.js} +27 -28
- package/dist/core/{Blob-CgUolAhz.js → Blob-h25zA5WH.js} +54 -60
- package/dist/core/{BlockDissolve-CLSxXB4e.js → BlockDissolve-CKN_KvLP.js} +21 -20
- package/dist/core/{BlockNoise-BgEJOicU.js → BlockNoise-DhKyd_F7.js} +16 -14
- package/dist/core/{BlueNoise-BqMtBLxM.js → BlueNoise-Auhzq4x5.js} +12 -10
- package/dist/core/{Blur-Xaa6jVPT.js → Blur-CcxMqYsu.js} +27 -27
- package/dist/core/{Boids-B8QUNxRL.js → Boids-D51U46GF.js} +916 -787
- package/dist/core/{BokehBlur-B5fql96U.js → BokehBlur-Cfaqbh3I.js} +104 -104
- package/dist/core/{BrickPattern-EAD5HD4e.js → BrickPattern-tASwilX0.js} +34 -38
- package/dist/core/{BrightnessContrast-mbv32DkA.js → BrightnessContrast-ZCKqJW7i.js} +9 -10
- package/dist/core/{BrushedMetal-B10fDdGt.js → BrushedMetal-B6gSVB28.js} +81 -84
- package/dist/core/{Bulge-C1Pq4DHk.js → Bulge-dCYtWP4S.js} +19 -19
- package/dist/core/{CRTScreen-Ctx0Mxtb.js → CRTScreen-CVY1lOGL.js} +35 -37
- package/dist/core/{CarbonFiber-DSSARe6R.js → CarbonFiber-Do9EONKv.js} +81 -84
- package/dist/core/{Chalkboard-C7srb54u.js → Chalkboard-0hyyGnYl.js} +59 -61
- package/dist/core/{ChannelBlur-DE3T4-pj.js → ChannelBlur-DcZKCKXi.js} +13 -15
- package/dist/core/{CheckerWipe-Dp49-iaT.js → CheckerWipe-BIE62tJ1.js} +23 -23
- package/dist/core/{Checkerboard-oVWtS0rz.js → Checkerboard-CRnfu63u.js} +31 -31
- package/dist/core/{Chevron-CCD5JTRA.js → Chevron-Ld_v4z9T.js} +20 -20
- package/dist/core/{ChromaFlow-BiE9Mes0.js → ChromaFlow-CTWeauIr.js} +32 -33
- package/dist/core/{ChromaticAberration-XEasUrD3.js → ChromaticAberration-CxuOb68m.js} +13 -13
- package/dist/core/{Circle-CvQ9duDU.js → Circle-XP1B5rsN.js} +14 -13
- package/dist/core/{ColorWheel-CXvfWAjN.js → ColorWheel-CFU_OmOW.js} +30 -34
- package/dist/core/{CompressionArtifacts-BDaP7XI6.js → CompressionArtifacts-Bc9xTdQP.js} +64 -66
- package/dist/core/{ConcentricSpin-D06hFXEb.js → ConcentricSpin-DTJytpAk.js} +39 -41
- package/dist/core/{ConicGradient-Cg6vy3gl.js → ConicGradient-C-4uDmQj.js} +17 -18
- package/dist/core/{ContourLines-Cg2Dlmcr.js → ContourLines-C8p6f-1y.js} +29 -30
- package/dist/core/{CornerPin-wtqiMUCa.js → CornerPin-CB92kX10.js} +55 -57
- package/dist/core/{Crescent-Co__JqEE.js → Crescent-Dk4nlG8T.js} +14 -13
- package/dist/core/{Cross-CFytbdrZ.js → Cross-DsnI1U8g.js} +14 -13
- package/dist/core/{Crystal-U7VqhbHy.js → Crystal-CR_sG2y7.js} +143 -152
- package/dist/core/{CurlNoise-BXWYh1Qi.js → CurlNoise-DJ27ih0F.js} +16 -14
- package/dist/core/{CursorRipples-APbH7SVR.js → CursorRipples-CuO3sZga.js} +59 -58
- package/dist/core/{CursorTrail-D5Fj0wGp.js → CursorTrail-d4xx4QpM.js} +72 -71
- package/dist/core/{DataMosh-CWRLpjU3.js → DataMosh-BhvE-2yC.js} +71 -73
- package/dist/core/{DiamondGradient-C_2VoEiQ.js → DiamondGradient-CtOVKrYf.js} +23 -25
- package/dist/core/{DiamondWipe-BkdNODD1.js → DiamondWipe-D-yiQBVj.js} +22 -22
- package/dist/core/{DiffuseBlur-Dl7S4KBW.js → DiffuseBlur-BDf-Czxz.js} +11 -12
- package/dist/core/{DisplacementMap-lv-qoLem.js → DisplacementMap-B_jf_2lj.js} +26 -26
- package/dist/core/{Dither-B33J_gJU.js → Dither-D3P6EJU8.js} +116 -119
- package/dist/core/{DotGrid-DaOhiRaL.js → DotGrid-BnSVhJlh.js} +37 -39
- package/dist/core/{DropShadow-C5Z2Rs2C.js → DropShadow-BSKVH3n3.js} +37 -37
- package/dist/core/{Duotone-x4cywJbU.js → Duotone-DfjYuK2u.js} +7 -7
- package/dist/core/{Ellipse-CrQ1XYjx.js → Ellipse-D7_1QKaa.js} +13 -12
- package/dist/core/{Emboss-DNwO5JcE.js → Emboss-ZiPslqzl.js} +76 -78
- package/dist/core/{Engraving-FsaRQiyI.js → Engraving-DsfkKajz.js} +57 -59
- package/dist/core/{ErosionNoise-CloHpdFT.js → ErosionNoise-SELArv9H.js} +13 -11
- package/dist/core/{Exposure-mO6KjYvc.js → Exposure-A7WlTOti.js} +4 -5
- package/dist/core/{FallingLines-D_1wHUkx.js → FallingLines-9PRMb_Ou.js} +40 -42
- package/dist/core/{FilmGrain-DDhrsw94.js → FilmGrain-SXzVDesw.js} +17 -18
- package/dist/core/{FilmStock-BaP2aTLu.js → FilmStock-RK4fk4m0.js} +74 -74
- package/dist/core/{Flip-DYuqyJva.js → Flip-DjoNWG4v.js} +10 -12
- package/dist/core/{FloatingParticles-DJwNpHtZ.js → FloatingParticles-D7vUF5g7.js} +637 -451
- package/dist/core/{FlowField-D4iGiDic.js → FlowField-tHrXhd1b.js} +24 -23
- package/dist/core/{Flower-D0MqoayS.js → Flower-BfehbmmG.js} +14 -13
- package/dist/core/{FlowingGradient-9Zu0Pu4a.js → FlowingGradient-BTKjkx5F.js} +38 -39
- package/dist/core/{FlutedGlass-C_clmShu.js → FlutedGlass-uFT7iy_9.js} +43 -43
- package/dist/core/{Fog-C_kY5pWB.js → Fog-Cu1CMATa.js} +172 -171
- package/dist/core/{Form3D-D4aXZGoJ.js → Form3D-D0ji-MeC.js} +259 -267
- package/dist/core/{FractalNoise-mMVLGmIv.js → FractalNoise-D9HYiOdr.js} +30 -28
- package/dist/core/{Frost-M53tZlcf.js → Frost-DQZZxdTk.js} +70 -73
- package/dist/core/{GaborNoise-BhXywN1d.js → GaborNoise-D7BP0K4g.js} +16 -14
- package/dist/core/{Glass-B9D_52op.js → Glass-CzCVnGn-.js} +6 -4
- package/dist/core/{GlassTiles-DIkGYgVE.js → GlassTiles-DJzPPqwz.js} +23 -26
- package/dist/core/{Glitch-CUOJt5VX.js → Glitch-D1Dx8__X.js} +84 -72
- package/dist/core/{Glow-D5AdnLvU.js → Glow-Bd9_o_Kv.js} +76 -77
- package/dist/core/{Godrays-BeQCWVw7.js → Godrays-DRPRWGPm.js} +52 -56
- package/dist/core/{Goo-C0_0QYne.js → Goo-28A_pNBg.js} +64 -65
- package/dist/core/{GradientMap-DOVK05_a.js → GradientMap-D8dv-1AX.js} +47 -50
- package/dist/core/{Grayscale-Uv_6LYA9.js → Grayscale-BlVXBVwW.js} +6 -6
- package/dist/core/{Grid-Dbp4DoXZ.js → Grid-D9vlHvs1.js} +46 -48
- package/dist/core/{GridDistortion-D_21zIrm.js → GridDistortion-BpqDvqj6.js} +63 -62
- package/dist/core/{Group-DXiB5Qrx.js → Group-bwQnJRec.js} +1 -1
- package/dist/core/{HTMLInCanvas-xXPLTYIv.js → HTMLInCanvas-gCf64ozE.js} +1 -1
- package/dist/core/{Halftone-DszIQsyx.js → Halftone-B_WouxiP.js} +59 -62
- package/dist/core/{Heart-COpnSJPD.js → Heart-Bmt2TLNz.js} +12 -11
- package/dist/core/{Heatmap-CMm8SD-P.js → Heatmap-Ruef741_.js} +57 -55
- package/dist/core/{HexGrid-B6wNW-45.js → HexGrid-By9k0YuI.js} +32 -35
- package/dist/core/{Hologram-XejRN51V.js → Hologram-Cf25ONOE.js} +62 -66
- package/dist/core/{Holographic-D1G_Ou1y.js → Holographic-C9RzYykt.js} +58 -61
- package/dist/core/{HueShift-BCDgYfJs.js → HueShift-V3gQVuIo.js} +7 -10
- package/dist/core/{ImageTexture-BE2Jlkg6.js → ImageTexture-DAUR2N5Q.js} +3 -2
- package/dist/core/{InkFlow-DJaJqula.js → InkFlow-DlP1gmr4.js} +156 -156
- package/dist/core/{Invert-DDmITZjt.js → Invert-K648khvD.js} +4 -4
- package/dist/core/{IrisWipe-BFs5DDSa.js → IrisWipe-Clkd_5CA.js} +20 -23
- package/dist/core/{IsometricCubes-ChKqYTIw.js → IsometricCubes-CzfAwpQ5.js} +37 -42
- package/dist/core/{Kaleidoscope-C8_-tC6T.js → Kaleidoscope-B9k6HkNn.js} +21 -21
- package/dist/core/{KeyFrames-xR9ZzHKj.js → KeyFrames-DX6JFhsy.js} +130 -129
- package/dist/core/{LensFlare-DHGNEDIX.js → LensFlare-G73cvrIG.js} +82 -84
- package/dist/core/{LightEdge-DYfhB3-7.js → LightEdge-D3i7HUR9.js} +106 -107
- package/dist/core/{LightLeak-CYjuMURe.js → LightLeak-B8yGreP-.js} +58 -59
- package/dist/core/{LinearBlur-CV7gKYHV.js → LinearBlur-BEzNPe0e.js} +14 -14
- package/dist/core/{LinearGradient-DAzw65UB.js → LinearGradient-XjXyaoii.js} +36 -37
- package/dist/core/{LinearWipe-DoDZF7y0.js → LinearWipe-Doj9aS5n.js} +20 -21
- package/dist/core/{LiquidMetal-C9OxRyE4.js → LiquidMetal-CWV_RQip.js} +70 -73
- package/dist/core/{Liquify-gNsuR7aA.js → Liquify-DWrgFruC.js} +67 -66
- package/dist/core/{MagneticFilings-CQ7zHEow.js → MagneticFilings-Co0V07-1.js} +996 -756
- package/dist/core/{Marble-BSSMSrv8.js → Marble-D13mDBvL.js} +22 -21
- package/dist/core/{Mirror-BZAUA2jk.js → Mirror-DvukM_eG.js} +18 -18
- package/dist/core/{MultiPointGradient-HSfAYB-u.js → MultiPointGradient-CyK_Ty9a.js} +30 -31
- package/dist/core/{Neon-D9d6Osal.js → Neon-DD8qY6H9.js} +102 -113
- package/dist/core/{NoiseDissolve-CnELvUG_.js → NoiseDissolve-CeX3VO8J.js} +23 -22
- package/dist/core/{ObjectTracker-COh35yTh.js → ObjectTracker-BWo8H1kh.js} +3 -3
- package/dist/core/{PagePeel-B6sjmvZ1.js → PagePeel-BL5IeBeD.js} +54 -58
- package/dist/core/{Paper-LfukraJk.js → Paper-BAq9MqtG.js} +16 -15
- package/dist/core/{Parallelogram-DBi0yAG3.js → Parallelogram-DYzFG9ci.js} +14 -13
- package/dist/core/{ParticleField-q7COY9YT.js → ParticleField-Bl4uztO7.js} +1489 -1340
- package/dist/core/{ParticleFlow-DiHWbIon.js → ParticleFlow-RPxLP8HC.js} +1422 -1149
- package/dist/core/{Particles-BFsKUAPx.js → Particles-BDEX4Fw2.js} +866 -656
- package/dist/core/{PerlinNoise-KV2GG0ts.js → PerlinNoise-BtXlaEd8.js} +16 -14
- package/dist/core/{Perspective-CJSrtEy5.js → Perspective-CdU5nAEn.js} +23 -25
- package/dist/core/{PixelSort-WD-Y6ZFu.js → PixelSort-C7TX1ClH.js} +109 -109
- package/dist/core/{PixelThrow-CnOXm7Hv.js → PixelThrow-DpKEZPMK.js} +35 -35
- package/dist/core/{Pixelate-XJI9f1oT.js → Pixelate-C2OQUtqr.js} +19 -19
- package/dist/core/{Plasma-C0dnSaw1.js → Plasma-DLq9HroF.js} +33 -32
- package/dist/core/{Plastic-DBv_6A7q.js → Plastic-C2hiOaXw.js} +82 -84
- package/dist/core/{PolarCoordinates-B8Cq2bzT.js → PolarCoordinates-Bumv-Hi3.js} +16 -18
- package/dist/core/{Polygon-ORM35JKg.js → Polygon-DOpR58g4.js} +16 -17
- package/dist/core/{Posterize-Dn-Vv2S1.js → Posterize-CVNOkDme.js} +5 -8
- package/dist/core/{Prism-CYLsGJHY.js → Prism-CCQ1BsBL.js} +36 -40
- package/dist/core/{ProgressiveBlur-BXUumCm5.js → ProgressiveBlur-Cprr1XSE.js} +63 -65
- package/dist/core/{RadialGradient-j6T56q1W.js → RadialGradient-CsmCSySC.js} +22 -23
- package/dist/core/{RadialWipe-Bz19qvls.js → RadialWipe-BAnsqol4.js} +25 -25
- package/dist/core/{RandomBars-3RlhwDYG.js → RandomBars-DdhtxO8o.js} +23 -23
- package/dist/core/{ReactionDiffusion-DdXavIVw.js → ReactionDiffusion-Bih4xEtV.js} +173 -175
- package/dist/core/{RectangularCoordinates-p3250IKV.js → RectangularCoordinates-CKKA2oY1.js} +14 -14
- package/dist/core/{ReflectivePlane-BOl9AEoO.js → ReflectivePlane-u3Tje37M.js} +35 -37
- package/dist/core/{Repeater-BMXmN95R.js → Repeater-C-agsqBS.js} +2 -2
- package/dist/core/{Ring-DKcROHDs.js → Ring-Cj7bR89h.js} +15 -14
- package/dist/core/{RippleWipe-QH8D0Y-2.js → RippleWipe-VL1MMd5o.js} +24 -27
- package/dist/core/{Ripples-8fFdo6aq.js → Ripples-B88TeopS.js} +18 -21
- package/dist/core/{RoundedRect-Cr76tP9o.js → RoundedRect-jn8_QLrT.js} +14 -13
- package/dist/core/{Saturation-Dqifs1x7.js → Saturation-dCNIhHq2.js} +8 -9
- package/dist/core/{Scratches-sa8JU4Eb.js → Scratches-Dz_1Ptk0.js} +16 -14
- package/dist/core/{Sharpness-IRuPd9nn.js → Sharpness-Bxq4YiRL.js} +21 -22
- package/dist/core/{Shatter-BYaxMvyd.js → Shatter-DsuYUr-1.js} +73 -72
- package/dist/core/{SimplexNoise-C2vmRzgy.js → SimplexNoise-CvalBPNF.js} +19 -17
- package/dist/core/{SineWave-BGAJyGFr.js → SineWave-XPK5BsPB.js} +20 -20
- package/dist/core/{SliceWipe-BOcCk5Se.js → SliceWipe-gSs_VRwf.js} +19 -19
- package/dist/core/{Smoke-B1twbhQ4.js → Smoke-kzRXFLW9.js} +156 -155
- package/dist/core/{SmokeFill-CAayneM2.js → SmokeFill-DQZeqiwX.js} +233 -231
- package/dist/core/{SmokeFlow-Ug8difAz.js → SmokeFlow-n23YvKoI.js} +143 -142
- package/dist/core/{Solarize-205KKROH.js → Solarize-DINiQSz1.js} +12 -14
- package/dist/core/{SolidColor-B4pj8onb.js → SolidColor-Cu_9b_my.js} +1 -1
- package/dist/core/{Spherize-DUQxwwCL.js → Spherize-BLY2eqBV.js} +31 -37
- package/dist/core/{Spiral-DY1c-N4F.js → Spiral-CWCmvI3m.js} +36 -36
- package/dist/core/{Star-DRxNaHHo.js → Star-9WSeF-vW.js} +14 -13
- package/dist/core/{Stone-CUdcvOWd.js → Stone-CVO2Ey8i.js} +2 -2
- package/dist/core/{Strands-CFxYJMFu.js → Strands-D9Sz1vX9.js} +47 -49
- package/dist/core/{Stretch-DYrVdt8A.js → Stretch-DMT2Y6kN.js} +19 -19
- package/dist/core/{Stripes-BvnoWdwn.js → Stripes-DPVbOQkX.js} +39 -39
- package/dist/core/{StudioBackground-srQGUpfZ.js → StudioBackground-5JgYClrr.js} +67 -68
- package/dist/core/{SunBurst-COsVDZ4e.js → SunBurst-Din5CIAU.js} +18 -20
- package/dist/core/{Surface3D-TsGPzdGm.js → Surface3D-CW2ApEgt.js} +1934 -1528
- package/dist/core/{Swirl-nXMWVY2X.js → Swirl-DrchXPfh.js} +18 -21
- package/dist/core/{Teardrop-Bjtkigk4.js → Teardrop-CDt_XA4d.js} +13 -12
- package/dist/core/{Text-BGdsqRl5.js → Text-o_dubJeo.js} +20 -21
- package/dist/core/{ThinFilm-DhMKI5e2.js → ThinFilm-d7IlUY62.js} +59 -67
- package/dist/core/{TiltShift-BwuYyXB6.js → TiltShift-DJVcMb_M.js} +66 -67
- package/dist/core/{TimeTrail-CE2XumxR.js → TimeTrail-D1Gir7BK.js} +1003 -1647
- package/dist/core/{Tint-BTmcGjEl.js → Tint-Cak_PyOJ.js} +25 -26
- package/dist/core/{Trapezoid-CiZCh8QS.js → Trapezoid-DnFhlKCD.js} +14 -13
- package/dist/core/{TriangularGrid-BnQOEljy.js → TriangularGrid-BE9CgVlb.js} +34 -36
- package/dist/core/{Tritone-Ta084wlF.js → Tritone-mqU9b4YZ.js} +7 -10
- package/dist/core/{Truchet-BxCh_IIp.js → Truchet-yLdaw6z4.js} +31 -33
- package/dist/core/{Twirl-Cw4jm59Q.js → Twirl-SA6uh8pI.js} +16 -16
- package/dist/core/{VHS-Nwk0E-tf.js → VHS-Ch-bVeit.js} +68 -69
- package/dist/core/{VenetianBlinds-BZ0sS97G.js → VenetianBlinds-CboEoPIZ.js} +22 -23
- package/dist/core/{Vesica-Cf1KiSzK.js → Vesica-DmJWzk7E.js} +13 -12
- package/dist/core/{Vibrance-qWGvLkrW.js → Vibrance-7rW_G3qT.js} +7 -8
- package/dist/core/{VideoTexture-48ylVDvN.js → VideoTexture-Ctk5_1F8.js} +34 -39
- package/dist/core/{Vignette-CK_Li7v2.js → Vignette-DXtlR5LT.js} +20 -22
- package/dist/core/{Voronoi-DMYFDwIS.js → Voronoi-B0ZrQ6QO.js} +33 -37
- package/dist/core/{Water-D74wbHmn.js → Water-DfwGqSnM.js} +101 -108
- package/dist/core/{Watercolor-zo8-4Vqx.js → Watercolor-BAShYSu7.js} +305 -389
- package/dist/core/{WaveDistortion-BLrvGOzF.js → WaveDistortion-Cj4QBBKm.js} +80 -82
- package/dist/core/{WaveletNoise-a5OpO8-D.js → WaveletNoise-DYiU_ziD.js} +16 -14
- package/dist/core/{Weave-D1D3kuUg.js → Weave-DVefdB9i.js} +28 -31
- package/dist/core/{WebcamTexture-pBETyQYG.js → WebcamTexture-BO9jNxcP.js} +7 -7
- package/dist/core/{Wool-CMnWPdy9.js → Wool-D304TmpD.js} +2 -2
- package/dist/core/{WorleyNoise-BAEo0duh.js → WorleyNoise-B5FBTklZ.js} +69 -70
- package/dist/core/{ZoomBlur-CnBNmcfx.js → ZoomBlur-DxySopLs.js} +12 -12
- package/dist/core/agents-c-JjGH1b.js +1440 -0
- package/dist/core/blur-DKmdsW6d.js +2247 -0
- package/dist/core/compute-BoeIXi0l.js +31 -0
- package/dist/core/dataEncoding-CEmpiitu.js +24 -0
- package/dist/core/device-BODv_4aH.js +10 -0
- package/dist/core/edges-BZUKQxSE.js +29857 -0
- package/dist/core/{glass-sOqjtPJD.js → glass-BVqgjSPg.js} +164 -172
- package/dist/core/gpu/index.d.ts.map +1 -1
- package/dist/core/gpu/kit/agents.d.ts +17 -1
- package/dist/core/gpu/kit/agents.d.ts.map +1 -1
- package/dist/core/gpu/passManager.d.ts +6 -2
- package/dist/core/gpu/passManager.d.ts.map +1 -1
- package/dist/core/gpu/textures.d.ts +2 -2
- package/dist/core/gpu/textures.d.ts.map +1 -1
- package/dist/core/index.js +324 -226
- package/dist/core/media-Ds6MRfGR.js +757 -0
- package/dist/core/noise-Cq0KUOSC.js +12033 -0
- package/dist/core/noiseColor-CQyzqpVZ.js +103 -0
- package/dist/core/{noiseColor-CRpf22bk.js → noiseColor-DjCUZ_8u.js} +2 -2
- package/dist/core/noiseStylize-fKVcJbGK.js +359 -0
- package/dist/core/porters-DogLzpKT.js +991 -0
- package/dist/core/presetRenderer.d.ts.map +1 -1
- package/dist/core/registry.js +208 -199
- package/dist/core/sdf-o99ONcMJ.js +5174 -0
- package/dist/core/shaderRegistry-BSrnuqx-.js +425 -0
- package/dist/core/shaders/AngularBlur/index.js +5 -4
- package/dist/core/shaders/Arc/index.js +7 -4
- package/dist/core/shaders/Ascii/index.js +5 -4
- package/dist/core/shaders/Aurora/index.js +6 -4
- package/dist/core/shaders/BarShift/index.js +5 -4
- package/dist/core/shaders/BarnDoors/index.js +5 -4
- package/dist/core/shaders/Beam/index.js +5 -4
- package/dist/core/shaders/Bend/index.js +5 -4
- package/dist/core/shaders/Blob/index.js +5 -4
- package/dist/core/shaders/BlockDissolve/index.js +6 -4
- package/dist/core/shaders/BlockNoise/index.js +8 -5
- package/dist/core/shaders/BlueNoise/index.js +8 -5
- package/dist/core/shaders/Blur/index.js +6 -4
- package/dist/core/shaders/Boids/index.d.ts +3 -3
- package/dist/core/shaders/Boids/index.d.ts.map +1 -1
- package/dist/core/shaders/Boids/index.js +9 -5
- package/dist/core/shaders/BokehBlur/index.js +6 -4
- package/dist/core/shaders/BrickPattern/index.js +5 -4
- package/dist/core/shaders/BrightnessContrast/index.js +5 -4
- package/dist/core/shaders/BrushedMetal/index.js +11 -6
- package/dist/core/shaders/Bulge/index.js +5 -4
- package/dist/core/shaders/CRTScreen/index.js +5 -4
- package/dist/core/shaders/CarbonFiber/index.js +11 -6
- package/dist/core/shaders/Chalkboard/index.js +5 -4
- package/dist/core/shaders/ChannelBlur/index.js +6 -4
- package/dist/core/shaders/CheckerWipe/index.js +5 -4
- package/dist/core/shaders/Checkerboard/index.js +5 -4
- package/dist/core/shaders/Chevron/index.js +5 -4
- package/dist/core/shaders/ChromaFlow/index.js +6 -4
- package/dist/core/shaders/ChromaticAberration/index.js +5 -4
- package/dist/core/shaders/Circle/index.js +7 -4
- package/dist/core/shaders/ColorWheel/index.js +5 -4
- package/dist/core/shaders/CompressionArtifacts/index.js +5 -4
- package/dist/core/shaders/ConcentricSpin/index.js +5 -4
- package/dist/core/shaders/ConicGradient/index.js +5 -4
- package/dist/core/shaders/ContourLines/index.js +5 -4
- package/dist/core/shaders/CornerPin/index.js +5 -4
- package/dist/core/shaders/Crescent/index.js +7 -4
- package/dist/core/shaders/Cross/index.js +7 -4
- package/dist/core/shaders/Crystal/index.js +11 -6
- package/dist/core/shaders/CurlNoise/index.js +8 -5
- package/dist/core/shaders/CursorRipples/index.js +5 -4
- package/dist/core/shaders/CursorTrail/index.js +5 -4
- package/dist/core/shaders/DataMosh/index.js +5 -4
- package/dist/core/shaders/DiamondGradient/index.js +5 -4
- package/dist/core/shaders/DiamondWipe/index.js +5 -4
- package/dist/core/shaders/DiffuseBlur/index.js +5 -4
- package/dist/core/shaders/DisplacementMap/index.js +5 -4
- package/dist/core/shaders/Dither/index.js +5 -4
- package/dist/core/shaders/DotGrid/index.js +5 -4
- package/dist/core/shaders/DropShadow/index.js +5 -4
- package/dist/core/shaders/Duotone/index.js +5 -4
- package/dist/core/shaders/Ellipse/index.js +7 -4
- package/dist/core/shaders/Emboss/index.js +10 -6
- package/dist/core/shaders/Engraving/index.js +6 -4
- package/dist/core/shaders/ErosionNoise/index.js +8 -5
- package/dist/core/shaders/Exposure/index.js +5 -4
- package/dist/core/shaders/FallingLines/index.js +5 -4
- package/dist/core/shaders/FilmGrain/index.js +5 -4
- package/dist/core/shaders/FilmStock/index.js +6 -4
- package/dist/core/shaders/Flip/index.js +5 -4
- package/dist/core/shaders/FloatingParticles/index.d.ts +9 -4
- package/dist/core/shaders/FloatingParticles/index.d.ts.map +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +9 -5
- package/dist/core/shaders/FlowField/index.js +6 -4
- package/dist/core/shaders/Flower/index.js +7 -4
- package/dist/core/shaders/FlowingGradient/index.js +6 -4
- package/dist/core/shaders/FlutedGlass/index.js +5 -4
- package/dist/core/shaders/Fog/index.js +5 -4
- package/dist/core/shaders/Form3D/index.js +5 -4
- package/dist/core/shaders/FractalNoise/index.js +7 -4
- package/dist/core/shaders/Frost/index.js +11 -6
- package/dist/core/shaders/GaborNoise/index.js +8 -5
- package/dist/core/shaders/Glass/index.js +11 -6
- package/dist/core/shaders/GlassTiles/index.js +5 -4
- package/dist/core/shaders/Glitch/index.d.ts +1 -1
- package/dist/core/shaders/Glitch/index.d.ts.map +1 -1
- package/dist/core/shaders/Glitch/index.js +5 -4
- package/dist/core/shaders/Glow/index.js +6 -4
- package/dist/core/shaders/Godrays/index.js +5 -4
- package/dist/core/shaders/Goo/index.js +10 -6
- package/dist/core/shaders/GradientMap/index.js +5 -4
- package/dist/core/shaders/Grayscale/index.js +5 -4
- package/dist/core/shaders/Grid/index.js +5 -4
- package/dist/core/shaders/GridDistortion/index.js +5 -4
- package/dist/core/shaders/Group/index.js +5 -4
- package/dist/core/shaders/HTMLInCanvas/index.js +5 -4
- package/dist/core/shaders/Halftone/index.js +5 -4
- package/dist/core/shaders/Heart/index.js +7 -4
- package/dist/core/shaders/Heatmap/index.js +11 -6
- package/dist/core/shaders/HexGrid/index.js +5 -4
- package/dist/core/shaders/Hologram/index.js +11 -6
- package/dist/core/shaders/Holographic/index.js +11 -6
- package/dist/core/shaders/HueShift/index.js +5 -4
- package/dist/core/shaders/ImageTexture/index.js +7 -5
- package/dist/core/shaders/InkFlow/index.js +5 -4
- package/dist/core/shaders/Invert/index.js +5 -4
- package/dist/core/shaders/IrisWipe/index.js +5 -4
- package/dist/core/shaders/IsometricCubes/index.js +5 -4
- package/dist/core/shaders/Kaleidoscope/index.js +5 -4
- package/dist/core/shaders/KeyFrames/index.js +5 -4
- package/dist/core/shaders/LensFlare/index.js +5 -4
- package/dist/core/shaders/LightEdge/index.js +11 -6
- package/dist/core/shaders/LightLeak/index.js +6 -4
- package/dist/core/shaders/LinearBlur/index.js +5 -4
- package/dist/core/shaders/LinearGradient/index.js +5 -4
- package/dist/core/shaders/LinearWipe/index.js +5 -4
- package/dist/core/shaders/LiquidMetal/index.js +11 -6
- package/dist/core/shaders/Liquify/index.js +5 -4
- package/dist/core/shaders/MagneticFilings/index.d.ts +0 -2
- package/dist/core/shaders/MagneticFilings/index.d.ts.map +1 -1
- package/dist/core/shaders/MagneticFilings/index.js +9 -5
- package/dist/core/shaders/Marble/index.js +6 -4
- package/dist/core/shaders/Mirror/index.js +5 -4
- package/dist/core/shaders/MultiPointGradient/index.js +5 -4
- package/dist/core/shaders/Neon/index.js +9 -5
- package/dist/core/shaders/NoiseDissolve/index.js +6 -4
- package/dist/core/shaders/ObjectTracker/index.js +6 -5
- package/dist/core/shaders/PagePeel/index.js +5 -4
- package/dist/core/shaders/Paper/index.js +6 -4
- package/dist/core/shaders/Parallelogram/index.js +7 -4
- package/dist/core/shaders/ParticleField/index.d.ts +10 -5
- package/dist/core/shaders/ParticleField/index.d.ts.map +1 -1
- package/dist/core/shaders/ParticleField/index.js +9 -5
- package/dist/core/shaders/ParticleFlow/index.d.ts +10 -4
- package/dist/core/shaders/ParticleFlow/index.d.ts.map +1 -1
- package/dist/core/shaders/ParticleFlow/index.js +9 -5
- package/dist/core/shaders/Particles/index.d.ts +4 -3
- package/dist/core/shaders/Particles/index.d.ts.map +1 -1
- package/dist/core/shaders/Particles/index.js +12 -6
- package/dist/core/shaders/PerlinNoise/index.js +8 -5
- package/dist/core/shaders/Perspective/index.js +5 -4
- package/dist/core/shaders/PixelSort/index.js +5 -4
- package/dist/core/shaders/PixelThrow/index.js +6 -4
- package/dist/core/shaders/Pixelate/index.js +5 -4
- package/dist/core/shaders/Plasma/index.js +6 -4
- package/dist/core/shaders/Plastic/index.js +11 -6
- package/dist/core/shaders/PolarCoordinates/index.js +5 -4
- package/dist/core/shaders/Polygon/index.js +7 -4
- package/dist/core/shaders/Posterize/index.js +5 -4
- package/dist/core/shaders/Prism/index.js +5 -4
- package/dist/core/shaders/ProgressiveBlur/index.js +6 -4
- package/dist/core/shaders/RadialGradient/index.js +5 -4
- package/dist/core/shaders/RadialWipe/index.js +5 -4
- package/dist/core/shaders/RandomBars/index.js +6 -4
- package/dist/core/shaders/ReactionDiffusion/index.js +5 -4
- package/dist/core/shaders/RectangularCoordinates/index.js +5 -4
- package/dist/core/shaders/ReflectivePlane/index.js +6 -4
- package/dist/core/shaders/Repeater/index.js +5 -4
- package/dist/core/shaders/Ring/index.js +7 -4
- package/dist/core/shaders/RippleWipe/index.js +5 -4
- package/dist/core/shaders/Ripples/index.js +5 -4
- package/dist/core/shaders/RoundedRect/index.js +7 -4
- package/dist/core/shaders/Saturation/index.js +5 -4
- package/dist/core/shaders/Scratches/index.js +8 -5
- package/dist/core/shaders/Sharpness/index.js +5 -4
- package/dist/core/shaders/Shatter/index.js +6 -4
- package/dist/core/shaders/SimplexNoise/index.js +7 -4
- package/dist/core/shaders/SineWave/index.js +5 -4
- package/dist/core/shaders/SliceWipe/index.js +5 -4
- package/dist/core/shaders/Smoke/index.js +5 -4
- package/dist/core/shaders/SmokeFill/index.js +10 -6
- package/dist/core/shaders/SmokeFlow/index.js +5 -4
- package/dist/core/shaders/Solarize/index.js +5 -4
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +5 -4
- package/dist/core/shaders/Spiral/index.js +5 -4
- package/dist/core/shaders/Star/index.js +7 -4
- package/dist/core/shaders/Stone/index.js +4 -3
- package/dist/core/shaders/Strands/index.js +5 -4
- package/dist/core/shaders/Stretch/index.js +5 -4
- package/dist/core/shaders/Stripes/index.js +5 -4
- package/dist/core/shaders/StudioBackground/index.js +5 -4
- package/dist/core/shaders/SunBurst/index.js +5 -4
- package/dist/core/shaders/Surface3D/index.d.ts +4 -2
- package/dist/core/shaders/Surface3D/index.d.ts.map +1 -1
- package/dist/core/shaders/Surface3D/index.js +7 -4
- package/dist/core/shaders/Swirl/index.js +5 -4
- package/dist/core/shaders/Teardrop/index.js +7 -4
- package/dist/core/shaders/Text/index.js +6 -5
- package/dist/core/shaders/ThinFilm/index.js +9 -5
- package/dist/core/shaders/TiltShift/index.js +6 -4
- package/dist/core/shaders/TimeTrail/index.d.ts +47 -1
- package/dist/core/shaders/TimeTrail/index.d.ts.map +1 -1
- package/dist/core/shaders/TimeTrail/index.js +7 -5
- package/dist/core/shaders/Tint/index.js +5 -4
- package/dist/core/shaders/Trapezoid/index.js +7 -4
- package/dist/core/shaders/TriangularGrid/index.js +5 -4
- package/dist/core/shaders/Tritone/index.js +5 -4
- package/dist/core/shaders/Truchet/index.js +5 -4
- package/dist/core/shaders/Twirl/index.js +5 -4
- package/dist/core/shaders/VHS/index.js +5 -4
- package/dist/core/shaders/VenetianBlinds/index.js +5 -4
- package/dist/core/shaders/Vesica/index.js +7 -4
- package/dist/core/shaders/Vibrance/index.js +5 -4
- package/dist/core/shaders/VideoTexture/index.js +6 -5
- package/dist/core/shaders/Vignette/index.js +5 -4
- package/dist/core/shaders/Voronoi/index.js +5 -4
- package/dist/core/shaders/Water/index.js +11 -6
- package/dist/core/shaders/Watercolor/index.d.ts +1 -1
- package/dist/core/shaders/Watercolor/index.d.ts.map +1 -1
- package/dist/core/shaders/Watercolor/index.js +6 -4
- package/dist/core/shaders/WaveDistortion/index.js +5 -4
- package/dist/core/shaders/WaveletNoise/index.js +8 -5
- package/dist/core/shaders/Weave/index.js +5 -4
- package/dist/core/shaders/WebcamTexture/index.js +7 -5
- package/dist/core/shaders/Wool/index.js +4 -3
- package/dist/core/shaders/WorleyNoise/index.js +5 -4
- package/dist/core/shaders/ZoomBlur/index.js +5 -4
- package/dist/core/shapeEffectBounds-Dg4GQ5vW.js +19213 -0
- package/dist/core/utilities/transformations/index.js +1 -1
- package/dist/js/bundle.js +188 -184
- package/dist/js/createShader.js +1 -1
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +197 -193
- package/dist/registry.js +0 -1
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/package.json +1 -1
- package/dist/core/coords-BkIjixe_.js +0 -55724
- package/dist/core/noiseStylize-J6sFKoTh.js +0 -65
- package/dist/core/porters-BmU6G9TR.js +0 -321
- package/dist/core/shaderRegistry-D75z2sND.js +0 -425
- package/dist/core/shapeEffectBounds-PQqKLQXO.js +0 -406
- /package/dist/core/{fonts-DwhbVe2B.js → fonts-v_F1SFl9.js} +0 -0
- /package/dist/core/{naturalSize-Caz3-kRv.js → naturalSize-B679wTgN.js} +0 -0
- /package/dist/core/{transformations-t0d2-uSX.js → transformations-CsPUHppB.js} +0 -0
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Ct as exp, Dt as length, Gt as arrayOf, H as mixColorsLinear, Ot as max, Qt as struct, Rt as sin, St as dot, Tt as floor, U as mixColorsVariants, Ut as data_exports, Wt as atomic, _t as atan2, bt as cos, cn as i32, d as ZERO, dt as atomicLoad, et as src_default, ft as atomicStore, ht as abs, kt as min, ln as u32, mt as select, nt as std_exports, on as vec4f, ot as textureStore, qt as textureStorage2d, rn as vec2u, sn as f32, tn as vec2f, ut as atomicAdd, vt as ceil, yt as clamp } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { c as hash22, o as hash11, p as noise_exports } from "./noise-Cq0KUOSC.js";
|
|
3
|
+
import { n as createGuardedCompute, r as createStateBuffer } from "./compute-BoeIXi0l.js";
|
|
4
|
+
import { t as isMobileGpuViewport } from "./device-BODv_4aH.js";
|
|
5
|
+
import { a as makeAgentTexelWeightFn, l as resolveAgentShape, s as orientedShapeOptions, t as AGENT_SHAPES } from "./agents-c-JjGH1b.js";
|
|
6
|
+
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
3
7
|
var MAX_FILINGS = 12288;
|
|
4
|
-
var
|
|
8
|
+
var COUNT_CAP = isMobileGpuViewport() ? 6e3 : MAX_FILINGS;
|
|
9
|
+
var RES = isMobileGpuViewport() ? 768 : 1024;
|
|
5
10
|
var INV_RES = 1 / RES;
|
|
11
|
+
var SIZE_REF_RES = 1024;
|
|
6
12
|
var STATE_FORMAT = "rgba16float";
|
|
7
13
|
var SPLAT_R = 14;
|
|
8
|
-
var SPLAT_WIN = 29;
|
|
9
14
|
var AA_W = .75 * INV_RES;
|
|
10
15
|
var PI = 3.141592653589793;
|
|
11
16
|
var HALF_PI = 1.5707963267948966;
|
|
@@ -21,68 +26,68 @@ var MAX_OFFSET = .12;
|
|
|
21
26
|
var OVERSCAN = .14;
|
|
22
27
|
var HARD_GAIN = 637;
|
|
23
28
|
var SOFT_GAIN = 255;
|
|
24
|
-
var SimParams = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
25
|
-
colA:
|
|
26
|
-
colB:
|
|
27
|
-
count:
|
|
28
|
-
dt:
|
|
29
|
-
aspect:
|
|
30
|
-
domainX:
|
|
31
|
-
cursorX:
|
|
32
|
-
cursorY:
|
|
33
|
-
axisX:
|
|
34
|
-
axisY:
|
|
35
|
-
fieldType:
|
|
36
|
-
restMode:
|
|
37
|
-
strength:
|
|
38
|
-
reachSq:
|
|
39
|
-
alignK:
|
|
40
|
-
damping:
|
|
41
|
-
restK:
|
|
42
|
-
pullK:
|
|
43
|
-
homeK:
|
|
44
|
-
omegaRef:
|
|
45
|
-
agitCool:
|
|
46
|
-
gridCols:
|
|
47
|
-
cellW:
|
|
48
|
-
cellH:
|
|
49
|
-
jitter:
|
|
50
|
-
bodyR:
|
|
29
|
+
var SimParams = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(struct({
|
|
30
|
+
colA: vec4f,
|
|
31
|
+
colB: vec4f,
|
|
32
|
+
count: f32,
|
|
33
|
+
dt: f32,
|
|
34
|
+
aspect: f32,
|
|
35
|
+
domainX: f32,
|
|
36
|
+
cursorX: f32,
|
|
37
|
+
cursorY: f32,
|
|
38
|
+
axisX: f32,
|
|
39
|
+
axisY: f32,
|
|
40
|
+
fieldType: f32,
|
|
41
|
+
restMode: f32,
|
|
42
|
+
strength: f32,
|
|
43
|
+
reachSq: f32,
|
|
44
|
+
alignK: f32,
|
|
45
|
+
damping: f32,
|
|
46
|
+
restK: f32,
|
|
47
|
+
pullK: f32,
|
|
48
|
+
homeK: f32,
|
|
49
|
+
omegaRef: f32,
|
|
50
|
+
agitCool: f32,
|
|
51
|
+
gridCols: f32,
|
|
52
|
+
cellW: f32,
|
|
53
|
+
cellH: f32,
|
|
54
|
+
jitter: f32,
|
|
55
|
+
bodyR: f32
|
|
51
56
|
}), "SimParams");
|
|
52
|
-
var simLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
57
|
+
var simLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(src_default.bindGroupLayout({
|
|
53
58
|
filings: {
|
|
54
|
-
storage:
|
|
59
|
+
storage: arrayOf(vec4f, MAX_FILINGS),
|
|
55
60
|
access: "mutable"
|
|
56
61
|
},
|
|
57
62
|
agit: {
|
|
58
|
-
storage:
|
|
63
|
+
storage: arrayOf(f32, MAX_FILINGS),
|
|
59
64
|
access: "mutable"
|
|
60
65
|
},
|
|
61
66
|
accumE: {
|
|
62
|
-
storage:
|
|
67
|
+
storage: arrayOf(atomic(u32), RES * RES),
|
|
63
68
|
access: "mutable"
|
|
64
69
|
},
|
|
65
70
|
accumS: {
|
|
66
|
-
storage:
|
|
71
|
+
storage: arrayOf(atomic(u32), RES * RES),
|
|
67
72
|
access: "mutable"
|
|
68
73
|
},
|
|
69
74
|
params: { uniform: SimParams },
|
|
70
|
-
outTex: { storageTexture:
|
|
75
|
+
outTex: { storageTexture: textureStorage2d(STATE_FORMAT, "write-only") }
|
|
71
76
|
}), "simLayout");
|
|
72
|
-
var homeFn =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
],
|
|
77
|
+
var homeFn = src_default.fn([
|
|
78
|
+
f32,
|
|
79
|
+
f32,
|
|
80
|
+
f32,
|
|
81
|
+
f32,
|
|
82
|
+
f32
|
|
83
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fi, cols, cellW, cellH, jitter) => {
|
|
79
84
|
"use gpu";
|
|
80
|
-
const row =
|
|
81
|
-
const col = __tsover_sub(fi, __tsover_mul(row,
|
|
82
|
-
const h = hash22(
|
|
85
|
+
const row = floor(__tsover_div(fi, max(cols, 1)));
|
|
86
|
+
const col = __tsover_sub(fi, __tsover_mul(row, max(cols, 1)));
|
|
87
|
+
const h = hash22(vec2f(__tsover_add(__tsover_mul(fi, .7548), .11), __tsover_add(__tsover_mul(fi, 1.3236), 5.31)));
|
|
83
88
|
const jx = __tsover_mul(__tsover_sub(h.x, .5), jitter);
|
|
84
89
|
const jy = __tsover_mul(__tsover_sub(h.y, .5), jitter);
|
|
85
|
-
return
|
|
90
|
+
return vec2f(__tsover_sub(__tsover_mul(__tsover_add(__tsover_add(col, .5), jx), cellW), OVERSCAN), __tsover_sub(__tsover_mul(__tsover_add(__tsover_add(row, .5), jy), cellH), OVERSCAN));
|
|
86
91
|
}), {
|
|
87
92
|
v: 1,
|
|
88
93
|
name: void 0,
|
|
@@ -296,17 +301,15 @@ var homeFn = tgpu.fn([
|
|
|
296
301
|
]
|
|
297
302
|
},
|
|
298
303
|
externals: () => ({
|
|
299
|
-
std,
|
|
304
|
+
std: std_exports,
|
|
300
305
|
noise: noise_exports,
|
|
301
|
-
d,
|
|
306
|
+
d: data_exports,
|
|
302
307
|
OVERSCAN
|
|
303
308
|
})
|
|
304
309
|
}) && $.f)({})).$name("filingsHome");
|
|
305
|
-
var restAngleFn =
|
|
310
|
+
var restAngleFn = src_default.fn([f32, f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fi, restMode) => {
|
|
306
311
|
"use gpu";
|
|
307
|
-
|
|
308
|
-
const a = std.select(randAng, d.f32(0), restMode > .5);
|
|
309
|
-
return std.select(a, HALF_PI, restMode > 1.5);
|
|
312
|
+
return select(select(__tsover_mul(hash11(__tsover_add(__tsover_mul(fi, 2.3987), .517)), PI), f32(0), restMode > .5), HALF_PI, restMode > 1.5);
|
|
310
313
|
}), {
|
|
311
314
|
v: 1,
|
|
312
315
|
name: void 0,
|
|
@@ -407,17 +410,17 @@ var restAngleFn = tgpu.fn([d.f32, d.f32], d.f32)(/* @__PURE__ */ (($) => (global
|
|
|
407
410
|
externals: () => ({
|
|
408
411
|
noise: noise_exports,
|
|
409
412
|
PI,
|
|
410
|
-
std,
|
|
411
|
-
d,
|
|
413
|
+
std: std_exports,
|
|
414
|
+
d: data_exports,
|
|
412
415
|
HALF_PI
|
|
413
416
|
})
|
|
414
417
|
}) && $.f)({})).$name("filingsRestAngle");
|
|
415
|
-
const filingsInitKernel =
|
|
418
|
+
const filingsInitKernel = src_default.fn([u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
|
|
416
419
|
"use gpu";
|
|
417
|
-
const fi =
|
|
420
|
+
const fi = f32(i);
|
|
418
421
|
const theta0 = __tsover_mul(hash11(__tsover_add(__tsover_mul(fi, 1.618034), .31)), PI);
|
|
419
|
-
simLayout.$.filings[i] =
|
|
420
|
-
simLayout.$.agit[i] =
|
|
422
|
+
simLayout.$.filings[i] = vec4f(f32(0), f32(0), theta0, f32(0));
|
|
423
|
+
simLayout.$.agit[i] = f32(0);
|
|
421
424
|
}), {
|
|
422
425
|
v: 1,
|
|
423
426
|
name: void 0,
|
|
@@ -558,160 +561,178 @@ const filingsInitKernel = tgpu.fn([d.u32])(/* @__PURE__ */ (($) => (globalThis._
|
|
|
558
561
|
]
|
|
559
562
|
},
|
|
560
563
|
externals: () => ({
|
|
561
|
-
d,
|
|
564
|
+
d: data_exports,
|
|
562
565
|
noise: noise_exports,
|
|
563
566
|
PI,
|
|
564
567
|
simLayout
|
|
565
568
|
})
|
|
566
569
|
}) && $.f)({})).$name("filingsInit");
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
[
|
|
585
|
-
|
|
586
|
-
|
|
570
|
+
function makeFilingsSplatKernel(shape) {
|
|
571
|
+
const name = resolveAgentShape(shape, "streak");
|
|
572
|
+
const s = AGENT_SHAPES[name];
|
|
573
|
+
const weightFn = makeAgentTexelWeightFn(name);
|
|
574
|
+
const EXT = s.ext;
|
|
575
|
+
const GAIN = s.soft ? SOFT_GAIN : HARD_GAIN;
|
|
576
|
+
const tnFn = !(s.kind === 0 && s.hl === 0) ? src_default.fn([
|
|
577
|
+
f32,
|
|
578
|
+
f32,
|
|
579
|
+
vec2f
|
|
580
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((ox, oy, dir) => {
|
|
581
|
+
"use gpu";
|
|
582
|
+
return vec2f(__tsover_add(__tsover_mul(ox, dir.x), __tsover_mul(oy, dir.y)), __tsover_add(__tsover_mul(ox, -dir.y), __tsover_mul(oy, dir.x)));
|
|
583
|
+
}), {
|
|
584
|
+
v: 1,
|
|
585
|
+
name: void 0,
|
|
586
|
+
ast: {
|
|
587
|
+
"params": [
|
|
588
|
+
{
|
|
589
|
+
"type": "i",
|
|
590
|
+
"name": "ox"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"type": "i",
|
|
594
|
+
"name": "oy"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"type": "i",
|
|
598
|
+
"name": "dir"
|
|
599
|
+
}
|
|
600
|
+
],
|
|
601
|
+
"body": [0, [[10, [
|
|
602
|
+
6,
|
|
587
603
|
[
|
|
604
|
+
7,
|
|
605
|
+
"d",
|
|
606
|
+
"vec2f"
|
|
607
|
+
],
|
|
608
|
+
[[
|
|
588
609
|
1,
|
|
589
610
|
[
|
|
590
611
|
1,
|
|
591
|
-
"
|
|
612
|
+
"ox",
|
|
592
613
|
"*",
|
|
593
614
|
[
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
"d",
|
|
598
|
-
"u32"
|
|
599
|
-
],
|
|
600
|
-
["RES"]
|
|
615
|
+
7,
|
|
616
|
+
"dir",
|
|
617
|
+
"x"
|
|
601
618
|
]
|
|
602
619
|
],
|
|
603
620
|
"+",
|
|
604
|
-
"x"
|
|
605
|
-
]
|
|
606
|
-
],
|
|
607
|
-
[
|
|
608
|
-
6,
|
|
609
|
-
[
|
|
610
|
-
7,
|
|
611
|
-
"std",
|
|
612
|
-
"atomicStore"
|
|
613
|
-
],
|
|
614
|
-
[[
|
|
615
|
-
8,
|
|
616
621
|
[
|
|
617
|
-
|
|
622
|
+
1,
|
|
623
|
+
"oy",
|
|
624
|
+
"*",
|
|
618
625
|
[
|
|
619
626
|
7,
|
|
620
|
-
"
|
|
621
|
-
"
|
|
622
|
-
]
|
|
623
|
-
|
|
624
|
-
],
|
|
625
|
-
"idx"
|
|
627
|
+
"dir",
|
|
628
|
+
"y"
|
|
629
|
+
]
|
|
630
|
+
]
|
|
626
631
|
], [
|
|
627
|
-
|
|
632
|
+
1,
|
|
628
633
|
[
|
|
629
|
-
|
|
630
|
-
"
|
|
631
|
-
"
|
|
634
|
+
1,
|
|
635
|
+
"ox",
|
|
636
|
+
"*",
|
|
637
|
+
[
|
|
638
|
+
4,
|
|
639
|
+
"-",
|
|
640
|
+
[
|
|
641
|
+
7,
|
|
642
|
+
"dir",
|
|
643
|
+
"y"
|
|
644
|
+
]
|
|
645
|
+
]
|
|
632
646
|
],
|
|
633
|
-
|
|
647
|
+
"+",
|
|
648
|
+
[
|
|
649
|
+
1,
|
|
650
|
+
"oy",
|
|
651
|
+
"*",
|
|
652
|
+
[
|
|
653
|
+
7,
|
|
654
|
+
"dir",
|
|
655
|
+
"x"
|
|
656
|
+
]
|
|
657
|
+
]
|
|
634
658
|
]]
|
|
659
|
+
]]]],
|
|
660
|
+
"externalNames": ["d"]
|
|
661
|
+
},
|
|
662
|
+
externals: () => ({ d: data_exports })
|
|
663
|
+
}) && $.f)({})).$name("filingsHeadingSpace") : src_default.fn([
|
|
664
|
+
f32,
|
|
665
|
+
f32,
|
|
666
|
+
vec2f
|
|
667
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((ox, oy, _dir) => {
|
|
668
|
+
"use gpu";
|
|
669
|
+
return vec2f(ox, oy);
|
|
670
|
+
}), {
|
|
671
|
+
v: 1,
|
|
672
|
+
name: void 0,
|
|
673
|
+
ast: {
|
|
674
|
+
"params": [
|
|
675
|
+
{
|
|
676
|
+
"type": "i",
|
|
677
|
+
"name": "ox"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"type": "i",
|
|
681
|
+
"name": "oy"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"type": "i",
|
|
685
|
+
"name": "_dir"
|
|
686
|
+
}
|
|
635
687
|
],
|
|
636
|
-
[
|
|
688
|
+
"body": [0, [[10, [
|
|
637
689
|
6,
|
|
638
690
|
[
|
|
639
691
|
7,
|
|
640
|
-
"
|
|
641
|
-
"
|
|
692
|
+
"d",
|
|
693
|
+
"vec2f"
|
|
642
694
|
],
|
|
643
|
-
[
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
"$"
|
|
651
|
-
],
|
|
652
|
-
"accumS"
|
|
653
|
-
],
|
|
654
|
-
"idx"
|
|
655
|
-
], [
|
|
656
|
-
6,
|
|
657
|
-
[
|
|
658
|
-
7,
|
|
659
|
-
"d",
|
|
660
|
-
"u32"
|
|
661
|
-
],
|
|
662
|
-
[[5, "0"]]
|
|
663
|
-
]]
|
|
664
|
-
]
|
|
665
|
-
]],
|
|
666
|
-
"externalNames": [
|
|
667
|
-
"d",
|
|
668
|
-
"RES",
|
|
669
|
-
"std",
|
|
670
|
-
"simLayout"
|
|
671
|
-
]
|
|
672
|
-
},
|
|
673
|
-
externals: () => ({
|
|
674
|
-
d,
|
|
675
|
-
RES,
|
|
676
|
-
std,
|
|
677
|
-
simLayout
|
|
678
|
-
})
|
|
679
|
-
}) && $.f)({})).$name("filingsClearAccum");
|
|
680
|
-
function makeFilingsSplatKernel(shape) {
|
|
681
|
-
const name = resolveAgentShape(shape, "streak");
|
|
682
|
-
const s = AGENT_SHAPES[name];
|
|
683
|
-
const weightFn = makeAgentWeightFn(name);
|
|
684
|
-
const SOFT = s.soft;
|
|
685
|
-
const EXT = s.ext;
|
|
686
|
-
const GAIN = s.soft ? SOFT_GAIN : HARD_GAIN;
|
|
687
|
-
return tgpu.fn([d.u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
|
|
695
|
+
["ox", "oy"]
|
|
696
|
+
]]]],
|
|
697
|
+
"externalNames": ["d"]
|
|
698
|
+
},
|
|
699
|
+
externals: () => ({ d: data_exports })
|
|
700
|
+
}) && $.f)({})).$name("filingsHeadingSpace");
|
|
701
|
+
return src_default.fn([u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
|
|
688
702
|
"use gpu";
|
|
689
703
|
const prm = simLayout.$.params;
|
|
690
704
|
const st = simLayout.$.filings[i];
|
|
691
|
-
const home = homeFn(
|
|
692
|
-
const pos =
|
|
705
|
+
const home = homeFn(f32(i), prm.gridCols, prm.cellW, prm.cellH, prm.jitter);
|
|
706
|
+
const pos = vec2f(__tsover_add(home.x, st.x), __tsover_add(home.y, st.y));
|
|
693
707
|
const theta = st.z;
|
|
694
|
-
const dir =
|
|
695
|
-
const agitI =
|
|
696
|
-
const bodyR =
|
|
697
|
-
const
|
|
698
|
-
const
|
|
699
|
-
const
|
|
700
|
-
const
|
|
701
|
-
const
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
708
|
+
const dir = vec2f(cos(theta), sin(theta));
|
|
709
|
+
const agitI = clamp(simLayout.$.agit[i], 0, 1);
|
|
710
|
+
const bodyR = clamp(prm.bodyR, 1e-6, __tsover_mul(f32(SPLAT_R), INV_RES));
|
|
711
|
+
const bodyRSq = __tsover_mul(bodyR, bodyR);
|
|
712
|
+
const rWorld = __tsover_add(__tsover_mul(bodyR, EXT), __tsover_mul(AA_W, 2));
|
|
713
|
+
const extSq = __tsover_mul(rWorld, rWorld);
|
|
714
|
+
const aspect = max(prm.aspect, 1e-5);
|
|
715
|
+
const cxi = i32(floor(__tsover_mul(__tsover_div(pos.x, aspect), f32(RES))));
|
|
716
|
+
const cyi = i32(floor(__tsover_mul(pos.y, f32(RES))));
|
|
717
|
+
const radX = i32(ceil(__tsover_div(__tsover_mul(rWorld, f32(RES)), aspect)));
|
|
718
|
+
const radY = i32(ceil(__tsover_mul(rWorld, f32(RES))));
|
|
719
|
+
const x0 = max(__tsover_sub(cxi, radX), 0);
|
|
720
|
+
const x1 = min(__tsover_add(cxi, radX), i32(__tsover_sub(RES, 1)));
|
|
721
|
+
const y0 = max(__tsover_sub(cyi, radY), 0);
|
|
722
|
+
const y1 = min(__tsover_add(cyi, radY), i32(__tsover_sub(RES, 1)));
|
|
723
|
+
if (x1 >= x0 && y1 >= y0) for (let py = y0; py <= y1; py++) {
|
|
724
|
+
const offY = __tsover_sub(__tsover_mul(__tsover_add(f32(py), .5), INV_RES), pos.y);
|
|
725
|
+
for (let px = x0; px <= x1; px++) {
|
|
726
|
+
const offX = __tsover_sub(__tsover_mul(__tsover_mul(__tsover_add(f32(px), .5), INV_RES), aspect), pos.x);
|
|
727
|
+
const dSq = __tsover_add(__tsover_mul(offX, offX), __tsover_mul(offY, offY));
|
|
728
|
+
if (dSq < extSq) {
|
|
729
|
+
const tn = tnFn(offX, offY, dir);
|
|
730
|
+
const w = weightFn(__tsover_div(dSq, bodyRSq), tn.x, tn.y, bodyR, AA_W);
|
|
731
|
+
const e = u32(__tsover_mul(w, f32(GAIN)));
|
|
732
|
+
if (e > u32(0)) {
|
|
733
|
+
const idx = u32(__tsover_add(__tsover_mul(py, RES), px));
|
|
734
|
+
atomicAdd(simLayout.$.accumE[idx], e);
|
|
735
|
+
if (agitI > 0) atomicAdd(simLayout.$.accumS[idx], u32(__tsover_mul(__tsover_mul(w, agitI), f32(GAIN))));
|
|
715
736
|
}
|
|
716
737
|
}
|
|
717
738
|
}
|
|
@@ -908,114 +929,87 @@ function makeFilingsSplatKernel(shape) {
|
|
|
908
929
|
[
|
|
909
930
|
7,
|
|
910
931
|
"std",
|
|
911
|
-
"
|
|
912
|
-
],
|
|
913
|
-
[[
|
|
914
|
-
7,
|
|
915
|
-
"prm",
|
|
916
|
-
"bodyR"
|
|
917
|
-
], [5, "0.000001"]]
|
|
918
|
-
]
|
|
919
|
-
],
|
|
920
|
-
[
|
|
921
|
-
13,
|
|
922
|
-
"extSq",
|
|
923
|
-
[
|
|
924
|
-
1,
|
|
925
|
-
[
|
|
926
|
-
1,
|
|
927
|
-
[
|
|
928
|
-
1,
|
|
929
|
-
"bodyR",
|
|
930
|
-
"*",
|
|
931
|
-
"EXT"
|
|
932
|
-
],
|
|
933
|
-
"+",
|
|
934
|
-
[
|
|
935
|
-
1,
|
|
936
|
-
"AA_W",
|
|
937
|
-
"*",
|
|
938
|
-
[5, "2"]
|
|
939
|
-
]
|
|
932
|
+
"clamp"
|
|
940
933
|
],
|
|
941
|
-
"*",
|
|
942
934
|
[
|
|
943
|
-
1,
|
|
944
935
|
[
|
|
945
|
-
|
|
946
|
-
"
|
|
947
|
-
"
|
|
948
|
-
"EXT"
|
|
936
|
+
7,
|
|
937
|
+
"prm",
|
|
938
|
+
"bodyR"
|
|
949
939
|
],
|
|
950
|
-
"
|
|
940
|
+
[5, "0.000001"],
|
|
951
941
|
[
|
|
952
942
|
1,
|
|
953
|
-
|
|
943
|
+
[
|
|
944
|
+
6,
|
|
945
|
+
[
|
|
946
|
+
7,
|
|
947
|
+
"d",
|
|
948
|
+
"f32"
|
|
949
|
+
],
|
|
950
|
+
["SPLAT_R"]
|
|
951
|
+
],
|
|
954
952
|
"*",
|
|
955
|
-
|
|
953
|
+
"INV_RES"
|
|
956
954
|
]
|
|
957
955
|
]
|
|
958
956
|
]
|
|
959
957
|
],
|
|
960
958
|
[
|
|
961
959
|
13,
|
|
962
|
-
"
|
|
960
|
+
"bodyRSq",
|
|
961
|
+
[
|
|
962
|
+
1,
|
|
963
|
+
"bodyR",
|
|
964
|
+
"*",
|
|
965
|
+
"bodyR"
|
|
966
|
+
]
|
|
967
|
+
],
|
|
968
|
+
[
|
|
969
|
+
13,
|
|
970
|
+
"rWorld",
|
|
963
971
|
[
|
|
964
972
|
1,
|
|
965
973
|
[
|
|
966
974
|
1,
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
"x"
|
|
971
|
-
],
|
|
972
|
-
"/",
|
|
973
|
-
[
|
|
974
|
-
6,
|
|
975
|
-
[
|
|
976
|
-
7,
|
|
977
|
-
"std",
|
|
978
|
-
"max"
|
|
979
|
-
],
|
|
980
|
-
[[
|
|
981
|
-
7,
|
|
982
|
-
"prm",
|
|
983
|
-
"aspect"
|
|
984
|
-
], [5, "0.00001"]]
|
|
985
|
-
]
|
|
975
|
+
"bodyR",
|
|
976
|
+
"*",
|
|
977
|
+
"EXT"
|
|
986
978
|
],
|
|
987
|
-
"
|
|
979
|
+
"+",
|
|
988
980
|
[
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
"f32"
|
|
994
|
-
],
|
|
995
|
-
["RES"]
|
|
981
|
+
1,
|
|
982
|
+
"AA_W",
|
|
983
|
+
"*",
|
|
984
|
+
[5, "2"]
|
|
996
985
|
]
|
|
997
986
|
]
|
|
998
987
|
],
|
|
999
988
|
[
|
|
1000
989
|
13,
|
|
1001
|
-
"
|
|
990
|
+
"extSq",
|
|
1002
991
|
[
|
|
1003
992
|
1,
|
|
993
|
+
"rWorld",
|
|
994
|
+
"*",
|
|
995
|
+
"rWorld"
|
|
996
|
+
]
|
|
997
|
+
],
|
|
998
|
+
[
|
|
999
|
+
13,
|
|
1000
|
+
"aspect",
|
|
1001
|
+
[
|
|
1002
|
+
6,
|
|
1004
1003
|
[
|
|
1005
1004
|
7,
|
|
1006
|
-
"
|
|
1007
|
-
"
|
|
1005
|
+
"std",
|
|
1006
|
+
"max"
|
|
1008
1007
|
],
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
"d",
|
|
1015
|
-
"f32"
|
|
1016
|
-
],
|
|
1017
|
-
["RES"]
|
|
1018
|
-
]
|
|
1008
|
+
[[
|
|
1009
|
+
7,
|
|
1010
|
+
"prm",
|
|
1011
|
+
"aspect"
|
|
1012
|
+
], [5, "0.00001"]]
|
|
1019
1013
|
]
|
|
1020
1014
|
],
|
|
1021
1015
|
[
|
|
@@ -1035,7 +1029,29 @@ function makeFilingsSplatKernel(shape) {
|
|
|
1035
1029
|
"std",
|
|
1036
1030
|
"floor"
|
|
1037
1031
|
],
|
|
1038
|
-
[
|
|
1032
|
+
[[
|
|
1033
|
+
1,
|
|
1034
|
+
[
|
|
1035
|
+
1,
|
|
1036
|
+
[
|
|
1037
|
+
7,
|
|
1038
|
+
"pos",
|
|
1039
|
+
"x"
|
|
1040
|
+
],
|
|
1041
|
+
"/",
|
|
1042
|
+
"aspect"
|
|
1043
|
+
],
|
|
1044
|
+
"*",
|
|
1045
|
+
[
|
|
1046
|
+
6,
|
|
1047
|
+
[
|
|
1048
|
+
7,
|
|
1049
|
+
"d",
|
|
1050
|
+
"f32"
|
|
1051
|
+
],
|
|
1052
|
+
["RES"]
|
|
1053
|
+
]
|
|
1054
|
+
]]
|
|
1039
1055
|
]]
|
|
1040
1056
|
]
|
|
1041
1057
|
],
|
|
@@ -1056,160 +1072,289 @@ function makeFilingsSplatKernel(shape) {
|
|
|
1056
1072
|
"std",
|
|
1057
1073
|
"floor"
|
|
1058
1074
|
],
|
|
1059
|
-
[
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1075
|
+
[[
|
|
1076
|
+
1,
|
|
1077
|
+
[
|
|
1078
|
+
7,
|
|
1079
|
+
"pos",
|
|
1080
|
+
"y"
|
|
1081
|
+
],
|
|
1082
|
+
"*",
|
|
1083
|
+
[
|
|
1084
|
+
6,
|
|
1085
|
+
[
|
|
1086
|
+
7,
|
|
1087
|
+
"d",
|
|
1088
|
+
"f32"
|
|
1089
|
+
],
|
|
1090
|
+
["RES"]
|
|
1091
|
+
]
|
|
1092
|
+
]]
|
|
1093
|
+
]]
|
|
1094
|
+
]
|
|
1095
|
+
],
|
|
1096
|
+
[
|
|
1097
|
+
13,
|
|
1098
|
+
"radX",
|
|
1099
|
+
[
|
|
1100
|
+
6,
|
|
1101
|
+
[
|
|
1102
|
+
7,
|
|
1103
|
+
"d",
|
|
1104
|
+
"i32"
|
|
1105
|
+
],
|
|
1106
|
+
[[
|
|
1107
|
+
6,
|
|
1108
|
+
[
|
|
1109
|
+
7,
|
|
1110
|
+
"std",
|
|
1111
|
+
"ceil"
|
|
1112
|
+
],
|
|
1113
|
+
[[
|
|
1114
|
+
1,
|
|
1115
|
+
[
|
|
1116
|
+
1,
|
|
1117
|
+
"rWorld",
|
|
1118
|
+
"*",
|
|
1119
|
+
[
|
|
1120
|
+
6,
|
|
1121
|
+
[
|
|
1122
|
+
7,
|
|
1123
|
+
"d",
|
|
1124
|
+
"f32"
|
|
1125
|
+
],
|
|
1126
|
+
["RES"]
|
|
1127
|
+
]
|
|
1128
|
+
],
|
|
1129
|
+
"/",
|
|
1130
|
+
"aspect"
|
|
1131
|
+
]]
|
|
1132
|
+
]]
|
|
1133
|
+
]
|
|
1134
|
+
],
|
|
1135
|
+
[
|
|
1136
|
+
13,
|
|
1137
|
+
"radY",
|
|
1138
|
+
[
|
|
1139
|
+
6,
|
|
1140
|
+
[
|
|
1141
|
+
7,
|
|
1142
|
+
"d",
|
|
1143
|
+
"i32"
|
|
1144
|
+
],
|
|
1145
|
+
[[
|
|
1146
|
+
6,
|
|
1147
|
+
[
|
|
1148
|
+
7,
|
|
1149
|
+
"std",
|
|
1150
|
+
"ceil"
|
|
1151
|
+
],
|
|
1152
|
+
[[
|
|
1153
|
+
1,
|
|
1154
|
+
"rWorld",
|
|
1155
|
+
"*",
|
|
1156
|
+
[
|
|
1157
|
+
6,
|
|
1158
|
+
[
|
|
1159
|
+
7,
|
|
1160
|
+
"d",
|
|
1161
|
+
"f32"
|
|
1162
|
+
],
|
|
1163
|
+
["RES"]
|
|
1164
|
+
]
|
|
1165
|
+
]]
|
|
1166
|
+
]]
|
|
1167
|
+
]
|
|
1168
|
+
],
|
|
1169
|
+
[
|
|
1170
|
+
13,
|
|
1171
|
+
"x0",
|
|
1172
|
+
[
|
|
1173
|
+
6,
|
|
1174
|
+
[
|
|
1175
|
+
7,
|
|
1176
|
+
"std",
|
|
1177
|
+
"max"
|
|
1178
|
+
],
|
|
1179
|
+
[[
|
|
1180
|
+
1,
|
|
1181
|
+
"cxi",
|
|
1182
|
+
"-",
|
|
1183
|
+
"radX"
|
|
1184
|
+
], [5, "0"]]
|
|
1185
|
+
]
|
|
1186
|
+
],
|
|
1187
|
+
[
|
|
1188
|
+
13,
|
|
1189
|
+
"x1",
|
|
1190
|
+
[
|
|
1191
|
+
6,
|
|
1192
|
+
[
|
|
1193
|
+
7,
|
|
1194
|
+
"std",
|
|
1195
|
+
"min"
|
|
1196
|
+
],
|
|
1197
|
+
[[
|
|
1198
|
+
1,
|
|
1199
|
+
"cxi",
|
|
1200
|
+
"+",
|
|
1201
|
+
"radX"
|
|
1202
|
+
], [
|
|
1203
|
+
6,
|
|
1204
|
+
[
|
|
1205
|
+
7,
|
|
1206
|
+
"d",
|
|
1207
|
+
"i32"
|
|
1208
|
+
],
|
|
1209
|
+
[[
|
|
1210
|
+
1,
|
|
1211
|
+
"RES",
|
|
1212
|
+
"-",
|
|
1213
|
+
[5, "1"]
|
|
1214
|
+
]]
|
|
1215
|
+
]]
|
|
1216
|
+
]
|
|
1217
|
+
],
|
|
1218
|
+
[
|
|
1219
|
+
13,
|
|
1220
|
+
"y0",
|
|
1221
|
+
[
|
|
1222
|
+
6,
|
|
1223
|
+
[
|
|
1224
|
+
7,
|
|
1225
|
+
"std",
|
|
1226
|
+
"max"
|
|
1227
|
+
],
|
|
1228
|
+
[[
|
|
1229
|
+
1,
|
|
1230
|
+
"cyi",
|
|
1231
|
+
"-",
|
|
1232
|
+
"radY"
|
|
1233
|
+
], [5, "0"]]
|
|
1234
|
+
]
|
|
1235
|
+
],
|
|
1236
|
+
[
|
|
1237
|
+
13,
|
|
1238
|
+
"y1",
|
|
1239
|
+
[
|
|
1240
|
+
6,
|
|
1241
|
+
[
|
|
1242
|
+
7,
|
|
1243
|
+
"std",
|
|
1244
|
+
"min"
|
|
1245
|
+
],
|
|
1246
|
+
[[
|
|
1247
|
+
1,
|
|
1248
|
+
"cyi",
|
|
1249
|
+
"+",
|
|
1250
|
+
"radY"
|
|
1251
|
+
], [
|
|
1252
|
+
6,
|
|
1253
|
+
[
|
|
1254
|
+
7,
|
|
1255
|
+
"d",
|
|
1256
|
+
"i32"
|
|
1257
|
+
],
|
|
1258
|
+
[[
|
|
1259
|
+
1,
|
|
1260
|
+
"RES",
|
|
1261
|
+
"-",
|
|
1262
|
+
[5, "1"]
|
|
1263
|
+
]]
|
|
1264
|
+
]]
|
|
1265
|
+
]
|
|
1266
|
+
],
|
|
1267
|
+
[
|
|
1268
|
+
11,
|
|
1076
1269
|
[
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1270
|
+
3,
|
|
1271
|
+
[
|
|
1272
|
+
1,
|
|
1273
|
+
"x1",
|
|
1274
|
+
">=",
|
|
1275
|
+
"x0"
|
|
1276
|
+
],
|
|
1277
|
+
"&&",
|
|
1278
|
+
[
|
|
1279
|
+
1,
|
|
1280
|
+
"y1",
|
|
1281
|
+
">=",
|
|
1282
|
+
"y0"
|
|
1283
|
+
]
|
|
1080
1284
|
],
|
|
1081
1285
|
[0, [[
|
|
1082
1286
|
14,
|
|
1083
1287
|
[
|
|
1084
1288
|
12,
|
|
1085
|
-
"
|
|
1086
|
-
|
|
1289
|
+
"py",
|
|
1290
|
+
"y0"
|
|
1087
1291
|
],
|
|
1088
1292
|
[
|
|
1089
1293
|
1,
|
|
1090
|
-
"
|
|
1091
|
-
"
|
|
1092
|
-
"
|
|
1294
|
+
"py",
|
|
1295
|
+
"<=",
|
|
1296
|
+
"y1"
|
|
1093
1297
|
],
|
|
1094
1298
|
[
|
|
1095
1299
|
102,
|
|
1096
1300
|
"++",
|
|
1097
|
-
"
|
|
1301
|
+
"py"
|
|
1098
1302
|
],
|
|
1099
|
-
[0, [
|
|
1303
|
+
[0, [[
|
|
1304
|
+
13,
|
|
1305
|
+
"offY",
|
|
1100
1306
|
[
|
|
1101
|
-
|
|
1102
|
-
"px",
|
|
1307
|
+
1,
|
|
1103
1308
|
[
|
|
1104
1309
|
1,
|
|
1105
1310
|
[
|
|
1106
1311
|
1,
|
|
1107
|
-
|
|
1312
|
+
[
|
|
1313
|
+
6,
|
|
1314
|
+
[
|
|
1315
|
+
7,
|
|
1316
|
+
"d",
|
|
1317
|
+
"f32"
|
|
1318
|
+
],
|
|
1319
|
+
["py"]
|
|
1320
|
+
],
|
|
1108
1321
|
"+",
|
|
1109
|
-
"
|
|
1322
|
+
[5, "0.5"]
|
|
1110
1323
|
],
|
|
1111
|
-
"
|
|
1112
|
-
"
|
|
1324
|
+
"*",
|
|
1325
|
+
"INV_RES"
|
|
1326
|
+
],
|
|
1327
|
+
"-",
|
|
1328
|
+
[
|
|
1329
|
+
7,
|
|
1330
|
+
"pos",
|
|
1331
|
+
"y"
|
|
1113
1332
|
]
|
|
1333
|
+
]
|
|
1334
|
+
], [
|
|
1335
|
+
14,
|
|
1336
|
+
[
|
|
1337
|
+
12,
|
|
1338
|
+
"px",
|
|
1339
|
+
"x0"
|
|
1114
1340
|
],
|
|
1115
1341
|
[
|
|
1116
|
-
|
|
1117
|
-
"
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
[
|
|
1121
|
-
1,
|
|
1122
|
-
"cyi",
|
|
1123
|
-
"+",
|
|
1124
|
-
"ky"
|
|
1125
|
-
],
|
|
1126
|
-
"-",
|
|
1127
|
-
"SPLAT_R"
|
|
1128
|
-
]
|
|
1342
|
+
1,
|
|
1343
|
+
"px",
|
|
1344
|
+
"<=",
|
|
1345
|
+
"x1"
|
|
1129
1346
|
],
|
|
1130
1347
|
[
|
|
1131
|
-
|
|
1348
|
+
102,
|
|
1349
|
+
"++",
|
|
1350
|
+
"px"
|
|
1351
|
+
],
|
|
1352
|
+
[0, [
|
|
1132
1353
|
[
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
3,
|
|
1136
|
-
[
|
|
1137
|
-
3,
|
|
1138
|
-
[
|
|
1139
|
-
1,
|
|
1140
|
-
"px",
|
|
1141
|
-
">=",
|
|
1142
|
-
[5, "0"]
|
|
1143
|
-
],
|
|
1144
|
-
"&&",
|
|
1145
|
-
[
|
|
1146
|
-
1,
|
|
1147
|
-
"px",
|
|
1148
|
-
"<",
|
|
1149
|
-
"RES"
|
|
1150
|
-
]
|
|
1151
|
-
],
|
|
1152
|
-
"&&",
|
|
1153
|
-
[
|
|
1154
|
-
1,
|
|
1155
|
-
"py",
|
|
1156
|
-
">=",
|
|
1157
|
-
[5, "0"]
|
|
1158
|
-
]
|
|
1159
|
-
],
|
|
1160
|
-
"&&",
|
|
1354
|
+
13,
|
|
1355
|
+
"offX",
|
|
1161
1356
|
[
|
|
1162
1357
|
1,
|
|
1163
|
-
"py",
|
|
1164
|
-
"<",
|
|
1165
|
-
"RES"
|
|
1166
|
-
]
|
|
1167
|
-
],
|
|
1168
|
-
[0, [
|
|
1169
|
-
[
|
|
1170
|
-
13,
|
|
1171
|
-
"offX",
|
|
1172
|
-
[
|
|
1173
|
-
1,
|
|
1174
|
-
[
|
|
1175
|
-
1,
|
|
1176
|
-
[
|
|
1177
|
-
1,
|
|
1178
|
-
[
|
|
1179
|
-
1,
|
|
1180
|
-
[
|
|
1181
|
-
6,
|
|
1182
|
-
[
|
|
1183
|
-
7,
|
|
1184
|
-
"d",
|
|
1185
|
-
"f32"
|
|
1186
|
-
],
|
|
1187
|
-
["px"]
|
|
1188
|
-
],
|
|
1189
|
-
"+",
|
|
1190
|
-
[5, "0.5"]
|
|
1191
|
-
],
|
|
1192
|
-
"*",
|
|
1193
|
-
"INV_RES"
|
|
1194
|
-
],
|
|
1195
|
-
"*",
|
|
1196
|
-
[
|
|
1197
|
-
7,
|
|
1198
|
-
"prm",
|
|
1199
|
-
"aspect"
|
|
1200
|
-
]
|
|
1201
|
-
],
|
|
1202
|
-
"-",
|
|
1203
|
-
[
|
|
1204
|
-
7,
|
|
1205
|
-
"pos",
|
|
1206
|
-
"x"
|
|
1207
|
-
]
|
|
1208
|
-
]
|
|
1209
|
-
],
|
|
1210
|
-
[
|
|
1211
|
-
13,
|
|
1212
|
-
"offY",
|
|
1213
1358
|
[
|
|
1214
1359
|
1,
|
|
1215
1360
|
[
|
|
@@ -1223,7 +1368,7 @@ function makeFilingsSplatKernel(shape) {
|
|
|
1223
1368
|
"d",
|
|
1224
1369
|
"f32"
|
|
1225
1370
|
],
|
|
1226
|
-
["
|
|
1371
|
+
["px"]
|
|
1227
1372
|
],
|
|
1228
1373
|
"+",
|
|
1229
1374
|
[5, "0.5"]
|
|
@@ -1231,124 +1376,119 @@ function makeFilingsSplatKernel(shape) {
|
|
|
1231
1376
|
"*",
|
|
1232
1377
|
"INV_RES"
|
|
1233
1378
|
],
|
|
1234
|
-
"
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1379
|
+
"*",
|
|
1380
|
+
"aspect"
|
|
1381
|
+
],
|
|
1382
|
+
"-",
|
|
1383
|
+
[
|
|
1384
|
+
7,
|
|
1385
|
+
"pos",
|
|
1386
|
+
"x"
|
|
1240
1387
|
]
|
|
1241
|
-
]
|
|
1388
|
+
]
|
|
1389
|
+
],
|
|
1390
|
+
[
|
|
1391
|
+
13,
|
|
1392
|
+
"dSq",
|
|
1242
1393
|
[
|
|
1243
|
-
|
|
1394
|
+
1,
|
|
1395
|
+
[
|
|
1396
|
+
1,
|
|
1397
|
+
"offX",
|
|
1398
|
+
"*",
|
|
1399
|
+
"offX"
|
|
1400
|
+
],
|
|
1401
|
+
"+",
|
|
1244
1402
|
[
|
|
1245
1403
|
1,
|
|
1404
|
+
"offY",
|
|
1405
|
+
"*",
|
|
1406
|
+
"offY"
|
|
1407
|
+
]
|
|
1408
|
+
]
|
|
1409
|
+
],
|
|
1410
|
+
[
|
|
1411
|
+
11,
|
|
1412
|
+
[
|
|
1413
|
+
1,
|
|
1414
|
+
"dSq",
|
|
1415
|
+
"<",
|
|
1416
|
+
"extSq"
|
|
1417
|
+
],
|
|
1418
|
+
[0, [
|
|
1419
|
+
[
|
|
1420
|
+
13,
|
|
1421
|
+
"tn",
|
|
1246
1422
|
[
|
|
1247
|
-
|
|
1423
|
+
6,
|
|
1424
|
+
"tnFn",
|
|
1248
1425
|
[
|
|
1249
|
-
1,
|
|
1250
1426
|
"offX",
|
|
1251
|
-
"*",
|
|
1252
|
-
"offX"
|
|
1253
|
-
],
|
|
1254
|
-
"+",
|
|
1255
|
-
[
|
|
1256
|
-
1,
|
|
1257
1427
|
"offY",
|
|
1258
|
-
"
|
|
1259
|
-
"offY"
|
|
1428
|
+
"dir"
|
|
1260
1429
|
]
|
|
1261
|
-
]
|
|
1262
|
-
"<",
|
|
1263
|
-
"extSq"
|
|
1430
|
+
]
|
|
1264
1431
|
],
|
|
1265
|
-
[
|
|
1432
|
+
[
|
|
1433
|
+
13,
|
|
1434
|
+
"w",
|
|
1266
1435
|
[
|
|
1267
|
-
|
|
1268
|
-
"
|
|
1436
|
+
6,
|
|
1437
|
+
"weightFn",
|
|
1269
1438
|
[
|
|
1270
|
-
1,
|
|
1271
1439
|
[
|
|
1272
1440
|
1,
|
|
1273
|
-
"
|
|
1274
|
-
"
|
|
1275
|
-
|
|
1276
|
-
7,
|
|
1277
|
-
"dir",
|
|
1278
|
-
"x"
|
|
1279
|
-
]
|
|
1441
|
+
"dSq",
|
|
1442
|
+
"/",
|
|
1443
|
+
"bodyRSq"
|
|
1280
1444
|
],
|
|
1281
|
-
"+",
|
|
1282
|
-
[
|
|
1283
|
-
1,
|
|
1284
|
-
"offY",
|
|
1285
|
-
"*",
|
|
1286
|
-
[
|
|
1287
|
-
7,
|
|
1288
|
-
"dir",
|
|
1289
|
-
"y"
|
|
1290
|
-
]
|
|
1291
|
-
]
|
|
1292
|
-
]
|
|
1293
|
-
],
|
|
1294
|
-
[
|
|
1295
|
-
13,
|
|
1296
|
-
"n",
|
|
1297
|
-
[
|
|
1298
|
-
1,
|
|
1299
1445
|
[
|
|
1300
|
-
|
|
1301
|
-
"
|
|
1302
|
-
"
|
|
1303
|
-
[
|
|
1304
|
-
4,
|
|
1305
|
-
"-",
|
|
1306
|
-
[
|
|
1307
|
-
7,
|
|
1308
|
-
"dir",
|
|
1309
|
-
"y"
|
|
1310
|
-
]
|
|
1311
|
-
]
|
|
1446
|
+
7,
|
|
1447
|
+
"tn",
|
|
1448
|
+
"x"
|
|
1312
1449
|
],
|
|
1313
|
-
"+",
|
|
1314
1450
|
[
|
|
1315
|
-
|
|
1316
|
-
"
|
|
1317
|
-
"
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
"x"
|
|
1322
|
-
]
|
|
1323
|
-
]
|
|
1451
|
+
7,
|
|
1452
|
+
"tn",
|
|
1453
|
+
"y"
|
|
1454
|
+
],
|
|
1455
|
+
"bodyR",
|
|
1456
|
+
"AA_W"
|
|
1324
1457
|
]
|
|
1325
|
-
]
|
|
1458
|
+
]
|
|
1459
|
+
],
|
|
1460
|
+
[
|
|
1461
|
+
13,
|
|
1462
|
+
"e",
|
|
1326
1463
|
[
|
|
1327
|
-
|
|
1328
|
-
"w",
|
|
1464
|
+
6,
|
|
1329
1465
|
[
|
|
1330
|
-
|
|
1331
|
-
"
|
|
1466
|
+
7,
|
|
1467
|
+
"d",
|
|
1468
|
+
"u32"
|
|
1469
|
+
],
|
|
1470
|
+
[[
|
|
1471
|
+
1,
|
|
1472
|
+
"w",
|
|
1473
|
+
"*",
|
|
1332
1474
|
[
|
|
1333
|
-
|
|
1334
|
-
"n",
|
|
1335
|
-
"bodyR",
|
|
1336
|
-
"AA_W",
|
|
1475
|
+
6,
|
|
1337
1476
|
[
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
],
|
|
1344
|
-
["SOFT"]
|
|
1345
|
-
]
|
|
1477
|
+
7,
|
|
1478
|
+
"d",
|
|
1479
|
+
"f32"
|
|
1480
|
+
],
|
|
1481
|
+
["GAIN"]
|
|
1346
1482
|
]
|
|
1347
|
-
]
|
|
1348
|
-
]
|
|
1483
|
+
]]
|
|
1484
|
+
]
|
|
1485
|
+
],
|
|
1486
|
+
[
|
|
1487
|
+
11,
|
|
1349
1488
|
[
|
|
1350
|
-
|
|
1489
|
+
1,
|
|
1351
1490
|
"e",
|
|
1491
|
+
">",
|
|
1352
1492
|
[
|
|
1353
1493
|
6,
|
|
1354
1494
|
[
|
|
@@ -1356,28 +1496,13 @@ function makeFilingsSplatKernel(shape) {
|
|
|
1356
1496
|
"d",
|
|
1357
1497
|
"u32"
|
|
1358
1498
|
],
|
|
1359
|
-
[[
|
|
1360
|
-
1,
|
|
1361
|
-
"w",
|
|
1362
|
-
"*",
|
|
1363
|
-
[
|
|
1364
|
-
6,
|
|
1365
|
-
[
|
|
1366
|
-
7,
|
|
1367
|
-
"d",
|
|
1368
|
-
"f32"
|
|
1369
|
-
],
|
|
1370
|
-
["GAIN"]
|
|
1371
|
-
]
|
|
1372
|
-
]]
|
|
1499
|
+
[[5, "0"]]
|
|
1373
1500
|
]
|
|
1374
1501
|
],
|
|
1375
|
-
[
|
|
1376
|
-
11,
|
|
1502
|
+
[0, [
|
|
1377
1503
|
[
|
|
1378
|
-
|
|
1379
|
-
"
|
|
1380
|
-
">",
|
|
1504
|
+
13,
|
|
1505
|
+
"idx",
|
|
1381
1506
|
[
|
|
1382
1507
|
6,
|
|
1383
1508
|
[
|
|
@@ -1385,55 +1510,49 @@ function makeFilingsSplatKernel(shape) {
|
|
|
1385
1510
|
"d",
|
|
1386
1511
|
"u32"
|
|
1387
1512
|
],
|
|
1388
|
-
[[
|
|
1513
|
+
[[
|
|
1514
|
+
1,
|
|
1515
|
+
[
|
|
1516
|
+
1,
|
|
1517
|
+
"py",
|
|
1518
|
+
"*",
|
|
1519
|
+
"RES"
|
|
1520
|
+
],
|
|
1521
|
+
"+",
|
|
1522
|
+
"px"
|
|
1523
|
+
]]
|
|
1389
1524
|
]
|
|
1390
1525
|
],
|
|
1391
|
-
[
|
|
1526
|
+
[
|
|
1527
|
+
6,
|
|
1392
1528
|
[
|
|
1393
|
-
|
|
1394
|
-
"
|
|
1395
|
-
|
|
1396
|
-
6,
|
|
1397
|
-
[
|
|
1398
|
-
7,
|
|
1399
|
-
"d",
|
|
1400
|
-
"u32"
|
|
1401
|
-
],
|
|
1402
|
-
[[
|
|
1403
|
-
1,
|
|
1404
|
-
[
|
|
1405
|
-
1,
|
|
1406
|
-
"py",
|
|
1407
|
-
"*",
|
|
1408
|
-
"RES"
|
|
1409
|
-
],
|
|
1410
|
-
"+",
|
|
1411
|
-
"px"
|
|
1412
|
-
]]
|
|
1413
|
-
]
|
|
1529
|
+
7,
|
|
1530
|
+
"std",
|
|
1531
|
+
"atomicAdd"
|
|
1414
1532
|
],
|
|
1415
|
-
[
|
|
1416
|
-
|
|
1533
|
+
[[
|
|
1534
|
+
8,
|
|
1417
1535
|
[
|
|
1418
1536
|
7,
|
|
1419
|
-
"std",
|
|
1420
|
-
"atomicAdd"
|
|
1421
|
-
],
|
|
1422
|
-
[[
|
|
1423
|
-
8,
|
|
1424
1537
|
[
|
|
1425
1538
|
7,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
"simLayout",
|
|
1429
|
-
"$"
|
|
1430
|
-
],
|
|
1431
|
-
"accumE"
|
|
1539
|
+
"simLayout",
|
|
1540
|
+
"$"
|
|
1432
1541
|
],
|
|
1433
|
-
"
|
|
1434
|
-
],
|
|
1435
|
-
|
|
1542
|
+
"accumE"
|
|
1543
|
+
],
|
|
1544
|
+
"idx"
|
|
1545
|
+
], "e"]
|
|
1546
|
+
],
|
|
1547
|
+
[
|
|
1548
|
+
11,
|
|
1436
1549
|
[
|
|
1550
|
+
1,
|
|
1551
|
+
"agitI",
|
|
1552
|
+
">",
|
|
1553
|
+
[5, "0"]
|
|
1554
|
+
],
|
|
1555
|
+
[0, [[
|
|
1437
1556
|
6,
|
|
1438
1557
|
[
|
|
1439
1558
|
7,
|
|
@@ -1479,14 +1598,14 @@ function makeFilingsSplatKernel(shape) {
|
|
|
1479
1598
|
]
|
|
1480
1599
|
]]
|
|
1481
1600
|
]]
|
|
1482
|
-
]
|
|
1483
|
-
]
|
|
1484
|
-
]
|
|
1485
|
-
]
|
|
1486
|
-
]
|
|
1487
|
-
]
|
|
1488
|
-
]
|
|
1489
|
-
]]
|
|
1601
|
+
]]]
|
|
1602
|
+
]
|
|
1603
|
+
]]
|
|
1604
|
+
]
|
|
1605
|
+
]]
|
|
1606
|
+
]
|
|
1607
|
+
]]
|
|
1608
|
+
]]]
|
|
1490
1609
|
]]]
|
|
1491
1610
|
]
|
|
1492
1611
|
]],
|
|
@@ -1495,30 +1614,28 @@ function makeFilingsSplatKernel(shape) {
|
|
|
1495
1614
|
"homeFn",
|
|
1496
1615
|
"d",
|
|
1497
1616
|
"std",
|
|
1617
|
+
"SPLAT_R",
|
|
1618
|
+
"INV_RES",
|
|
1498
1619
|
"EXT",
|
|
1499
1620
|
"AA_W",
|
|
1500
1621
|
"RES",
|
|
1501
|
-
"
|
|
1502
|
-
"SPLAT_R",
|
|
1503
|
-
"INV_RES",
|
|
1622
|
+
"tnFn",
|
|
1504
1623
|
"weightFn",
|
|
1505
|
-
"SOFT",
|
|
1506
1624
|
"GAIN"
|
|
1507
1625
|
]
|
|
1508
1626
|
},
|
|
1509
1627
|
externals: () => ({
|
|
1510
1628
|
simLayout,
|
|
1511
1629
|
homeFn,
|
|
1512
|
-
d,
|
|
1513
|
-
std,
|
|
1630
|
+
d: data_exports,
|
|
1631
|
+
std: std_exports,
|
|
1632
|
+
SPLAT_R,
|
|
1633
|
+
INV_RES,
|
|
1514
1634
|
EXT,
|
|
1515
1635
|
AA_W,
|
|
1516
1636
|
RES,
|
|
1517
|
-
|
|
1518
|
-
SPLAT_R,
|
|
1519
|
-
INV_RES,
|
|
1637
|
+
tnFn,
|
|
1520
1638
|
weightFn,
|
|
1521
|
-
SOFT,
|
|
1522
1639
|
GAIN
|
|
1523
1640
|
})
|
|
1524
1641
|
}) && $.f)({})).$name("filingsSplat");
|
|
@@ -1526,17 +1643,21 @@ function makeFilingsSplatKernel(shape) {
|
|
|
1526
1643
|
const filingsSplatKernel = makeFilingsSplatKernel("streak");
|
|
1527
1644
|
function makeFilingsResolveKernel(colorSpaceMode) {
|
|
1528
1645
|
const mixFn = mixColorsVariants[colorSpaceMode] ?? mixColorsLinear;
|
|
1529
|
-
return
|
|
1646
|
+
return src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((x, y) => {
|
|
1530
1647
|
"use gpu";
|
|
1531
1648
|
const prm = simLayout.$.params;
|
|
1532
|
-
const idx = __tsover_add(__tsover_mul(y,
|
|
1533
|
-
const eRaw =
|
|
1534
|
-
const sRaw =
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1649
|
+
const idx = __tsover_add(__tsover_mul(y, u32(RES)), x);
|
|
1650
|
+
const eRaw = f32(atomicLoad(simLayout.$.accumE[idx]));
|
|
1651
|
+
const sRaw = f32(atomicLoad(simLayout.$.accumS[idx]));
|
|
1652
|
+
atomicStore(simLayout.$.accumE[idx], u32(0));
|
|
1653
|
+
atomicStore(simLayout.$.accumS[idx], u32(0));
|
|
1654
|
+
if (eRaw > 0) {
|
|
1655
|
+
const energy = __tsover_mul(eRaw, __tsover_div(1, 255));
|
|
1656
|
+
const agitAvg = __tsover_div(sRaw, max(eRaw, 1));
|
|
1657
|
+
const col = mixFn(prm.colA, prm.colB, clamp(agitAvg, 0, 1));
|
|
1658
|
+
const a = __tsover_mul(__tsover_sub(1, exp(__tsover_mul(energy, -1.6))), col.w);
|
|
1659
|
+
textureStore(simLayout.$.outTex, vec2u(x, y), vec4f(col.x, col.y, col.z, a));
|
|
1660
|
+
} else textureStore(simLayout.$.outTex, vec2u(x, y), vec4f(prm.colA.x, prm.colA.y, prm.colA.z, f32(0)));
|
|
1540
1661
|
}), {
|
|
1541
1662
|
v: 1,
|
|
1542
1663
|
name: void 0,
|
|
@@ -1626,141 +1747,69 @@ function makeFilingsResolveKernel(colorSpaceMode) {
|
|
|
1626
1747
|
[
|
|
1627
1748
|
7,
|
|
1628
1749
|
"d",
|
|
1629
|
-
"f32"
|
|
1630
|
-
],
|
|
1631
|
-
[[
|
|
1632
|
-
6,
|
|
1633
|
-
[
|
|
1634
|
-
7,
|
|
1635
|
-
"std",
|
|
1636
|
-
"atomicLoad"
|
|
1637
|
-
],
|
|
1638
|
-
[[
|
|
1639
|
-
8,
|
|
1640
|
-
[
|
|
1641
|
-
7,
|
|
1642
|
-
[
|
|
1643
|
-
7,
|
|
1644
|
-
"simLayout",
|
|
1645
|
-
"$"
|
|
1646
|
-
],
|
|
1647
|
-
"accumS"
|
|
1648
|
-
],
|
|
1649
|
-
"idx"
|
|
1650
|
-
]]
|
|
1651
|
-
]]
|
|
1652
|
-
]
|
|
1653
|
-
],
|
|
1654
|
-
[
|
|
1655
|
-
13,
|
|
1656
|
-
"energy",
|
|
1657
|
-
[
|
|
1658
|
-
1,
|
|
1659
|
-
"eRaw",
|
|
1660
|
-
"*",
|
|
1661
|
-
[
|
|
1662
|
-
1,
|
|
1663
|
-
[5, "1"],
|
|
1664
|
-
"/",
|
|
1665
|
-
[5, "255"]
|
|
1666
|
-
]
|
|
1667
|
-
]
|
|
1668
|
-
],
|
|
1669
|
-
[
|
|
1670
|
-
13,
|
|
1671
|
-
"agitAvg",
|
|
1672
|
-
[
|
|
1673
|
-
1,
|
|
1674
|
-
"sRaw",
|
|
1675
|
-
"/",
|
|
1676
|
-
[
|
|
1677
|
-
6,
|
|
1678
|
-
[
|
|
1679
|
-
7,
|
|
1680
|
-
"std",
|
|
1681
|
-
"max"
|
|
1682
|
-
],
|
|
1683
|
-
["eRaw", [5, "1"]]
|
|
1684
|
-
]
|
|
1685
|
-
]
|
|
1686
|
-
],
|
|
1687
|
-
[
|
|
1688
|
-
13,
|
|
1689
|
-
"col",
|
|
1690
|
-
[
|
|
1691
|
-
6,
|
|
1692
|
-
"mixFn",
|
|
1693
|
-
[
|
|
1694
|
-
[
|
|
1695
|
-
7,
|
|
1696
|
-
"prm",
|
|
1697
|
-
"colA"
|
|
1698
|
-
],
|
|
1750
|
+
"f32"
|
|
1751
|
+
],
|
|
1752
|
+
[[
|
|
1753
|
+
6,
|
|
1699
1754
|
[
|
|
1700
1755
|
7,
|
|
1701
|
-
"
|
|
1702
|
-
"
|
|
1756
|
+
"std",
|
|
1757
|
+
"atomicLoad"
|
|
1703
1758
|
],
|
|
1704
|
-
[
|
|
1705
|
-
|
|
1759
|
+
[[
|
|
1760
|
+
8,
|
|
1706
1761
|
[
|
|
1707
1762
|
7,
|
|
1708
|
-
|
|
1709
|
-
|
|
1763
|
+
[
|
|
1764
|
+
7,
|
|
1765
|
+
"simLayout",
|
|
1766
|
+
"$"
|
|
1767
|
+
],
|
|
1768
|
+
"accumS"
|
|
1710
1769
|
],
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
[5, "1"]
|
|
1715
|
-
]
|
|
1716
|
-
]
|
|
1717
|
-
]
|
|
1770
|
+
"idx"
|
|
1771
|
+
]]
|
|
1772
|
+
]]
|
|
1718
1773
|
]
|
|
1719
1774
|
],
|
|
1720
1775
|
[
|
|
1721
|
-
|
|
1722
|
-
"a",
|
|
1776
|
+
6,
|
|
1723
1777
|
[
|
|
1724
|
-
|
|
1778
|
+
7,
|
|
1779
|
+
"std",
|
|
1780
|
+
"atomicStore"
|
|
1781
|
+
],
|
|
1782
|
+
[[
|
|
1783
|
+
8,
|
|
1725
1784
|
[
|
|
1726
|
-
|
|
1727
|
-
[5, "1"],
|
|
1728
|
-
"-",
|
|
1785
|
+
7,
|
|
1729
1786
|
[
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
],
|
|
1736
|
-
[[
|
|
1737
|
-
1,
|
|
1738
|
-
"energy",
|
|
1739
|
-
"*",
|
|
1740
|
-
[
|
|
1741
|
-
4,
|
|
1742
|
-
"-",
|
|
1743
|
-
[5, "1.6"]
|
|
1744
|
-
]
|
|
1745
|
-
]]
|
|
1746
|
-
]
|
|
1787
|
+
7,
|
|
1788
|
+
"simLayout",
|
|
1789
|
+
"$"
|
|
1790
|
+
],
|
|
1791
|
+
"accumE"
|
|
1747
1792
|
],
|
|
1748
|
-
"
|
|
1793
|
+
"idx"
|
|
1794
|
+
], [
|
|
1795
|
+
6,
|
|
1749
1796
|
[
|
|
1750
1797
|
7,
|
|
1751
|
-
"
|
|
1752
|
-
"
|
|
1753
|
-
]
|
|
1754
|
-
|
|
1798
|
+
"d",
|
|
1799
|
+
"u32"
|
|
1800
|
+
],
|
|
1801
|
+
[[5, "0"]]
|
|
1802
|
+
]]
|
|
1755
1803
|
],
|
|
1756
1804
|
[
|
|
1757
1805
|
6,
|
|
1758
1806
|
[
|
|
1759
1807
|
7,
|
|
1760
1808
|
"std",
|
|
1761
|
-
"
|
|
1809
|
+
"atomicStore"
|
|
1762
1810
|
],
|
|
1763
|
-
[
|
|
1811
|
+
[[
|
|
1812
|
+
8,
|
|
1764
1813
|
[
|
|
1765
1814
|
7,
|
|
1766
1815
|
[
|
|
@@ -1768,44 +1817,259 @@ function makeFilingsResolveKernel(colorSpaceMode) {
|
|
|
1768
1817
|
"simLayout",
|
|
1769
1818
|
"$"
|
|
1770
1819
|
],
|
|
1771
|
-
"
|
|
1820
|
+
"accumS"
|
|
1772
1821
|
],
|
|
1822
|
+
"idx"
|
|
1823
|
+
], [
|
|
1824
|
+
6,
|
|
1773
1825
|
[
|
|
1774
|
-
|
|
1826
|
+
7,
|
|
1827
|
+
"d",
|
|
1828
|
+
"u32"
|
|
1829
|
+
],
|
|
1830
|
+
[[5, "0"]]
|
|
1831
|
+
]]
|
|
1832
|
+
],
|
|
1833
|
+
[
|
|
1834
|
+
11,
|
|
1835
|
+
[
|
|
1836
|
+
1,
|
|
1837
|
+
"eRaw",
|
|
1838
|
+
">",
|
|
1839
|
+
[5, "0"]
|
|
1840
|
+
],
|
|
1841
|
+
[0, [
|
|
1842
|
+
[
|
|
1843
|
+
13,
|
|
1844
|
+
"energy",
|
|
1775
1845
|
[
|
|
1776
|
-
|
|
1777
|
-
"
|
|
1778
|
-
"
|
|
1779
|
-
|
|
1780
|
-
|
|
1846
|
+
1,
|
|
1847
|
+
"eRaw",
|
|
1848
|
+
"*",
|
|
1849
|
+
[
|
|
1850
|
+
1,
|
|
1851
|
+
[5, "1"],
|
|
1852
|
+
"/",
|
|
1853
|
+
[5, "255"]
|
|
1854
|
+
]
|
|
1855
|
+
]
|
|
1856
|
+
],
|
|
1857
|
+
[
|
|
1858
|
+
13,
|
|
1859
|
+
"agitAvg",
|
|
1860
|
+
[
|
|
1861
|
+
1,
|
|
1862
|
+
"sRaw",
|
|
1863
|
+
"/",
|
|
1864
|
+
[
|
|
1865
|
+
6,
|
|
1866
|
+
[
|
|
1867
|
+
7,
|
|
1868
|
+
"std",
|
|
1869
|
+
"max"
|
|
1870
|
+
],
|
|
1871
|
+
["eRaw", [5, "1"]]
|
|
1872
|
+
]
|
|
1873
|
+
]
|
|
1874
|
+
],
|
|
1875
|
+
[
|
|
1876
|
+
13,
|
|
1877
|
+
"col",
|
|
1878
|
+
[
|
|
1879
|
+
6,
|
|
1880
|
+
"mixFn",
|
|
1881
|
+
[
|
|
1882
|
+
[
|
|
1883
|
+
7,
|
|
1884
|
+
"prm",
|
|
1885
|
+
"colA"
|
|
1886
|
+
],
|
|
1887
|
+
[
|
|
1888
|
+
7,
|
|
1889
|
+
"prm",
|
|
1890
|
+
"colB"
|
|
1891
|
+
],
|
|
1892
|
+
[
|
|
1893
|
+
6,
|
|
1894
|
+
[
|
|
1895
|
+
7,
|
|
1896
|
+
"std",
|
|
1897
|
+
"clamp"
|
|
1898
|
+
],
|
|
1899
|
+
[
|
|
1900
|
+
"agitAvg",
|
|
1901
|
+
[5, "0"],
|
|
1902
|
+
[5, "1"]
|
|
1903
|
+
]
|
|
1904
|
+
]
|
|
1905
|
+
]
|
|
1906
|
+
]
|
|
1907
|
+
],
|
|
1908
|
+
[
|
|
1909
|
+
13,
|
|
1910
|
+
"a",
|
|
1911
|
+
[
|
|
1912
|
+
1,
|
|
1913
|
+
[
|
|
1914
|
+
1,
|
|
1915
|
+
[5, "1"],
|
|
1916
|
+
"-",
|
|
1917
|
+
[
|
|
1918
|
+
6,
|
|
1919
|
+
[
|
|
1920
|
+
7,
|
|
1921
|
+
"std",
|
|
1922
|
+
"exp"
|
|
1923
|
+
],
|
|
1924
|
+
[[
|
|
1925
|
+
1,
|
|
1926
|
+
"energy",
|
|
1927
|
+
"*",
|
|
1928
|
+
[
|
|
1929
|
+
4,
|
|
1930
|
+
"-",
|
|
1931
|
+
[5, "1.6"]
|
|
1932
|
+
]
|
|
1933
|
+
]]
|
|
1934
|
+
]
|
|
1935
|
+
],
|
|
1936
|
+
"*",
|
|
1937
|
+
[
|
|
1938
|
+
7,
|
|
1939
|
+
"col",
|
|
1940
|
+
"w"
|
|
1941
|
+
]
|
|
1942
|
+
]
|
|
1781
1943
|
],
|
|
1782
1944
|
[
|
|
1783
1945
|
6,
|
|
1784
1946
|
[
|
|
1785
1947
|
7,
|
|
1786
|
-
"
|
|
1787
|
-
"
|
|
1948
|
+
"std",
|
|
1949
|
+
"textureStore"
|
|
1788
1950
|
],
|
|
1789
1951
|
[
|
|
1790
1952
|
[
|
|
1791
1953
|
7,
|
|
1792
|
-
|
|
1793
|
-
|
|
1954
|
+
[
|
|
1955
|
+
7,
|
|
1956
|
+
"simLayout",
|
|
1957
|
+
"$"
|
|
1958
|
+
],
|
|
1959
|
+
"outTex"
|
|
1960
|
+
],
|
|
1961
|
+
[
|
|
1962
|
+
6,
|
|
1963
|
+
[
|
|
1964
|
+
7,
|
|
1965
|
+
"d",
|
|
1966
|
+
"vec2u"
|
|
1967
|
+
],
|
|
1968
|
+
["x", "y"]
|
|
1969
|
+
],
|
|
1970
|
+
[
|
|
1971
|
+
6,
|
|
1972
|
+
[
|
|
1973
|
+
7,
|
|
1974
|
+
"d",
|
|
1975
|
+
"vec4f"
|
|
1976
|
+
],
|
|
1977
|
+
[
|
|
1978
|
+
[
|
|
1979
|
+
7,
|
|
1980
|
+
"col",
|
|
1981
|
+
"x"
|
|
1982
|
+
],
|
|
1983
|
+
[
|
|
1984
|
+
7,
|
|
1985
|
+
"col",
|
|
1986
|
+
"y"
|
|
1987
|
+
],
|
|
1988
|
+
[
|
|
1989
|
+
7,
|
|
1990
|
+
"col",
|
|
1991
|
+
"z"
|
|
1992
|
+
],
|
|
1993
|
+
"a"
|
|
1994
|
+
]
|
|
1995
|
+
]
|
|
1996
|
+
]
|
|
1997
|
+
]
|
|
1998
|
+
]],
|
|
1999
|
+
[0, [[
|
|
2000
|
+
6,
|
|
2001
|
+
[
|
|
2002
|
+
7,
|
|
2003
|
+
"std",
|
|
2004
|
+
"textureStore"
|
|
2005
|
+
],
|
|
2006
|
+
[
|
|
2007
|
+
[
|
|
2008
|
+
7,
|
|
2009
|
+
[
|
|
2010
|
+
7,
|
|
2011
|
+
"simLayout",
|
|
2012
|
+
"$"
|
|
1794
2013
|
],
|
|
2014
|
+
"outTex"
|
|
2015
|
+
],
|
|
2016
|
+
[
|
|
2017
|
+
6,
|
|
1795
2018
|
[
|
|
1796
2019
|
7,
|
|
1797
|
-
"
|
|
1798
|
-
"
|
|
2020
|
+
"d",
|
|
2021
|
+
"vec2u"
|
|
1799
2022
|
],
|
|
2023
|
+
["x", "y"]
|
|
2024
|
+
],
|
|
2025
|
+
[
|
|
2026
|
+
6,
|
|
1800
2027
|
[
|
|
1801
2028
|
7,
|
|
1802
|
-
"
|
|
1803
|
-
"
|
|
2029
|
+
"d",
|
|
2030
|
+
"vec4f"
|
|
1804
2031
|
],
|
|
1805
|
-
|
|
2032
|
+
[
|
|
2033
|
+
[
|
|
2034
|
+
7,
|
|
2035
|
+
[
|
|
2036
|
+
7,
|
|
2037
|
+
"prm",
|
|
2038
|
+
"colA"
|
|
2039
|
+
],
|
|
2040
|
+
"x"
|
|
2041
|
+
],
|
|
2042
|
+
[
|
|
2043
|
+
7,
|
|
2044
|
+
[
|
|
2045
|
+
7,
|
|
2046
|
+
"prm",
|
|
2047
|
+
"colA"
|
|
2048
|
+
],
|
|
2049
|
+
"y"
|
|
2050
|
+
],
|
|
2051
|
+
[
|
|
2052
|
+
7,
|
|
2053
|
+
[
|
|
2054
|
+
7,
|
|
2055
|
+
"prm",
|
|
2056
|
+
"colA"
|
|
2057
|
+
],
|
|
2058
|
+
"z"
|
|
2059
|
+
],
|
|
2060
|
+
[
|
|
2061
|
+
6,
|
|
2062
|
+
[
|
|
2063
|
+
7,
|
|
2064
|
+
"d",
|
|
2065
|
+
"f32"
|
|
2066
|
+
],
|
|
2067
|
+
[[5, "0"]]
|
|
2068
|
+
]
|
|
2069
|
+
]
|
|
1806
2070
|
]
|
|
1807
2071
|
]
|
|
1808
|
-
]
|
|
2072
|
+
]]]
|
|
1809
2073
|
]
|
|
1810
2074
|
]],
|
|
1811
2075
|
"externalNames": [
|
|
@@ -1818,50 +2082,49 @@ function makeFilingsResolveKernel(colorSpaceMode) {
|
|
|
1818
2082
|
},
|
|
1819
2083
|
externals: () => ({
|
|
1820
2084
|
simLayout,
|
|
1821
|
-
d,
|
|
2085
|
+
d: data_exports,
|
|
1822
2086
|
RES,
|
|
1823
|
-
std,
|
|
2087
|
+
std: std_exports,
|
|
1824
2088
|
mixFn
|
|
1825
2089
|
})
|
|
1826
2090
|
}) && $.f)({})).$name("filingsResolve");
|
|
1827
2091
|
}
|
|
1828
2092
|
const filingsResolveKernel = makeFilingsResolveKernel(2);
|
|
1829
|
-
const filingsUpdateKernel =
|
|
2093
|
+
const filingsUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
|
|
1830
2094
|
"use gpu";
|
|
1831
2095
|
const prm = simLayout.$.params;
|
|
1832
2096
|
const st = simLayout.$.filings[i];
|
|
1833
|
-
let off =
|
|
2097
|
+
let off = vec2f(st.x, st.y);
|
|
1834
2098
|
let theta = st.z;
|
|
1835
2099
|
let omega = st.w;
|
|
1836
2100
|
const dt = prm.dt;
|
|
1837
|
-
const fi =
|
|
2101
|
+
const fi = f32(i);
|
|
1838
2102
|
const home = homeFn(fi, prm.gridCols, prm.cellW, prm.cellH, prm.jitter);
|
|
1839
|
-
const pos =
|
|
1840
|
-
const cursor =
|
|
2103
|
+
const pos = vec2f(__tsover_add(home.x, off.x), __tsover_add(home.y, off.y));
|
|
2104
|
+
const cursor = vec2f(prm.cursorX, prm.cursorY);
|
|
1841
2105
|
const delta = pos.sub(cursor);
|
|
1842
|
-
const r =
|
|
2106
|
+
const r = max(length(delta), 1e-4);
|
|
1843
2107
|
const rhat = delta.div(r);
|
|
1844
|
-
const axis =
|
|
1845
|
-
const mdotr =
|
|
1846
|
-
const
|
|
1847
|
-
const
|
|
1848
|
-
const
|
|
1849
|
-
const phiField = std.atan2(B.y, B.x);
|
|
2108
|
+
const axis = vec2f(prm.axisX, prm.axisY);
|
|
2109
|
+
const mdotr = dot(axis, rhat);
|
|
2110
|
+
const B = select(rhat.mul(__tsover_mul(2, mdotr)).sub(axis), rhat, prm.fieldType > .5);
|
|
2111
|
+
const fieldStr = __tsover_mul(prm.strength, exp(__tsover_mul(__tsover_div(__tsover_mul(r, r), max(prm.reachSq, 1e-6)), -1)));
|
|
2112
|
+
const phiField = atan2(B.y, B.x);
|
|
1850
2113
|
const restAngle = restAngleFn(fi, prm.restMode);
|
|
1851
|
-
const torqueField = __tsover_mul(__tsover_mul(prm.alignK, fieldStr),
|
|
1852
|
-
const torqueRest = __tsover_mul(prm.restK,
|
|
2114
|
+
const torqueField = __tsover_mul(__tsover_mul(prm.alignK, fieldStr), sin(__tsover_mul(2, __tsover_sub(phiField, theta))));
|
|
2115
|
+
const torqueRest = __tsover_mul(prm.restK, sin(__tsover_mul(2, __tsover_sub(restAngle, theta))));
|
|
1853
2116
|
omega = __tsover_add(omega, __tsover_mul(__tsover_add(torqueField, torqueRest), dt));
|
|
1854
|
-
omega = __tsover_mul(omega,
|
|
2117
|
+
omega = __tsover_mul(omega, exp(__tsover_mul(__tsover_mul(prm.damping, dt), -1)));
|
|
1855
2118
|
theta = __tsover_add(theta, __tsover_mul(omega, dt));
|
|
1856
|
-
const raw =
|
|
1857
|
-
const cooled = __tsover_mul(simLayout.$.agit[i],
|
|
1858
|
-
simLayout.$.agit[i] =
|
|
2119
|
+
const raw = clamp(__tsover_div(abs(omega), max(prm.omegaRef, 1e-5)), 0, 1);
|
|
2120
|
+
const cooled = __tsover_mul(simLayout.$.agit[i], exp(__tsover_mul(dt, -prm.agitCool)));
|
|
2121
|
+
simLayout.$.agit[i] = max(raw, cooled);
|
|
1859
2122
|
const pull = rhat.mul(__tsover_mul(__tsover_mul(prm.pullK, fieldStr), -1));
|
|
1860
2123
|
off = off.add(pull.mul(dt));
|
|
1861
|
-
off = off.mul(
|
|
1862
|
-
const offLen =
|
|
1863
|
-
off =
|
|
1864
|
-
simLayout.$.filings[i] =
|
|
2124
|
+
off = off.mul(exp(__tsover_mul(__tsover_mul(prm.homeK, dt), -1)));
|
|
2125
|
+
const offLen = length(off);
|
|
2126
|
+
off = select(off, off.div(max(offLen, 1e-5)).mul(MAX_OFFSET), offLen > MAX_OFFSET);
|
|
2127
|
+
simLayout.$.filings[i] = vec4f(off.x, off.y, theta, omega);
|
|
1865
2128
|
}), {
|
|
1866
2129
|
v: 1,
|
|
1867
2130
|
name: void 0,
|
|
@@ -2731,9 +2994,9 @@ const filingsUpdateKernel = tgpu.fn([d.u32])(/* @__PURE__ */ (($) => (globalThis
|
|
|
2731
2994
|
},
|
|
2732
2995
|
externals: () => ({
|
|
2733
2996
|
simLayout,
|
|
2734
|
-
d,
|
|
2997
|
+
d: data_exports,
|
|
2735
2998
|
homeFn,
|
|
2736
|
-
std,
|
|
2999
|
+
std: std_exports,
|
|
2737
3000
|
restAngleFn,
|
|
2738
3001
|
MAX_OFFSET
|
|
2739
3002
|
})
|
|
@@ -2894,10 +3157,10 @@ const componentDefinition = {
|
|
|
2894
3157
|
const { gpu, getCpuValue, registerComputeTexture, onCleanup } = params;
|
|
2895
3158
|
const root = gpu?.root;
|
|
2896
3159
|
if (!root) return null;
|
|
2897
|
-
const filings = createStateBuffer(root,
|
|
2898
|
-
const agitBuf = createStateBuffer(root,
|
|
2899
|
-
const accumE = createStateBuffer(root,
|
|
2900
|
-
const accumS = createStateBuffer(root,
|
|
3160
|
+
const filings = createStateBuffer(root, vec4f, MAX_FILINGS);
|
|
3161
|
+
const agitBuf = createStateBuffer(root, f32, MAX_FILINGS);
|
|
3162
|
+
const accumE = createStateBuffer(root, atomic(u32), RES * RES);
|
|
3163
|
+
const accumS = createStateBuffer(root, atomic(u32), RES * RES);
|
|
2901
3164
|
const outTex = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(root.createTexture({
|
|
2902
3165
|
size: [RES, RES],
|
|
2903
3166
|
format: STATE_FORMAT
|
|
@@ -2935,29 +3198,6 @@ const componentDefinition = {
|
|
|
2935
3198
|
},
|
|
2936
3199
|
externals: () => ({ filingsInitKernel })
|
|
2937
3200
|
}) && $.f)({})).with(simBg);
|
|
2938
|
-
const clearAccum = createGuardedCompute(root, /* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((x, y) => {
|
|
2939
|
-
"use gpu";
|
|
2940
|
-
filingsClearAccumKernel(x, y);
|
|
2941
|
-
}), {
|
|
2942
|
-
v: 1,
|
|
2943
|
-
name: void 0,
|
|
2944
|
-
ast: {
|
|
2945
|
-
"params": [{
|
|
2946
|
-
"type": "i",
|
|
2947
|
-
"name": "x"
|
|
2948
|
-
}, {
|
|
2949
|
-
"type": "i",
|
|
2950
|
-
"name": "y"
|
|
2951
|
-
}],
|
|
2952
|
-
"body": [0, [[
|
|
2953
|
-
6,
|
|
2954
|
-
"filingsClearAccumKernel",
|
|
2955
|
-
["x", "y"]
|
|
2956
|
-
]]],
|
|
2957
|
-
"externalNames": ["filingsClearAccumKernel"]
|
|
2958
|
-
},
|
|
2959
|
-
externals: () => ({ filingsClearAccumKernel })
|
|
2960
|
-
}) && $.f)({}), { size: [RES, RES] }).with(simBg);
|
|
2961
3201
|
const update = createGuardedCompute(root, /* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
|
|
2962
3202
|
"use gpu";
|
|
2963
3203
|
filingsUpdateKernel(i);
|
|
@@ -3038,7 +3278,7 @@ const componentDefinition = {
|
|
|
3038
3278
|
const v = getCpuValue(key);
|
|
3039
3279
|
return typeof v === "number" ? v : fallback;
|
|
3040
3280
|
};
|
|
3041
|
-
const count = Math.min(Math.max(Math.round(g("count", 5e3)), 16),
|
|
3281
|
+
const count = Math.min(Math.max(Math.round(g("count", 5e3)), 16), COUNT_CAP);
|
|
3042
3282
|
const spanX = domainX + 2 * OVERSCAN;
|
|
3043
3283
|
const spanY = 1 + 2 * OVERSCAN;
|
|
3044
3284
|
const cols = Math.max(1, Math.round(Math.sqrt(count * (spanX / spanY))));
|
|
@@ -3069,10 +3309,10 @@ const componentDefinition = {
|
|
|
3069
3309
|
const response = Math.min(Math.max(g("response", .5), 0), 1);
|
|
3070
3310
|
const colA = getCpuValue("colorA");
|
|
3071
3311
|
const colB = getCpuValue("colorB");
|
|
3072
|
-
const bodyR = Math.min(Math.max(g("size", 1), .5), 3) * 1.7
|
|
3312
|
+
const bodyR = Math.min(Math.max(g("size", 1), .5), 3) * 1.7 / SIZE_REF_RES;
|
|
3073
3313
|
paramsU.write({
|
|
3074
|
-
colA:
|
|
3075
|
-
colB:
|
|
3314
|
+
colA: vec4f(colA?.x ?? .522, colA?.y ?? .573, colA?.z ?? .639, colA?.w ?? 1),
|
|
3315
|
+
colB: vec4f(colB?.x ?? 1, colB?.y ?? .616, colB?.z ?? .361, colB?.w ?? 1),
|
|
3076
3316
|
count,
|
|
3077
3317
|
dt,
|
|
3078
3318
|
aspect,
|
|
@@ -3103,7 +3343,7 @@ const componentDefinition = {
|
|
|
3103
3343
|
initialized = true;
|
|
3104
3344
|
nodes.push(() => init.dispatchThreads(MAX_FILINGS));
|
|
3105
3345
|
}
|
|
3106
|
-
nodes.push(
|
|
3346
|
+
nodes.push(() => update.dispatchThreads(count), () => splat.dispatchThreads(count), resolve);
|
|
3107
3347
|
return nodes;
|
|
3108
3348
|
}
|
|
3109
3349
|
};
|
|
@@ -3115,4 +3355,4 @@ const componentDefinition = {
|
|
|
3115
3355
|
}
|
|
3116
3356
|
};
|
|
3117
3357
|
var MagneticFilings_default = componentDefinition;
|
|
3118
|
-
export {
|
|
3358
|
+
export { filingsSplatKernel as a, makeFilingsSplatKernel as c, filingsResolveKernel as i, componentDefinition as n, filingsUpdateKernel as o, filingsInitKernel as r, makeFilingsResolveKernel as s, MagneticFilings_default as t };
|