shaders 3.1.457 → 3.1.458
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/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 +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,5 +1,216 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as debugWarn } from "./support-
|
|
1
|
+
import { $t as vec2u, Dt as sin, Et as sign, H as mixColorsLinear, Ht as isWgslExternalTexture, Kt as arrayOf, Lt as vec4f$1, Mt as vec2f, Ot as smoothstep, U as mixColorsVariants, Ut as isWgslTexture, _t as max, an as dualImpl, b as vec4, cn as i32, ct as clamp, en as vec3u, et as typegpu_default, fn as Void, in as MissingCpuImplError, it as abs, kt as sqrt, ln as u32, lt as cos, m as call, mn as __export, mt as floor, nn as vec4i, nt as getTextureFormatInfo, ot as atan2, qt as struct, rn as vec4u, rt as select, sn as f32, tn as vec4f, un as stitch, v as floatE, vt as min, yt as mix } from "./edges-BvIjDyJK.js";
|
|
2
|
+
import { r as debugWarn } from "./support-DVuLvN48.js";
|
|
3
|
+
function compactSnippetArgs(args) {
|
|
4
|
+
return args.filter((arg) => arg !== void 0);
|
|
5
|
+
}
|
|
6
|
+
function sampleCpu(_texture, _sampler, _coords, _offsetOrArrayIndex, _maybeOffset) {
|
|
7
|
+
throw new MissingCpuImplError("Texture sampling relies on GPU resources and cannot be executed outside of a draw call");
|
|
8
|
+
}
|
|
9
|
+
dualImpl({
|
|
10
|
+
name: "textureSample",
|
|
11
|
+
normalImpl: sampleCpu,
|
|
12
|
+
codegenImpl: (ctx, args) => ctx.gen.emitCall("textureSample", [], compactSnippetArgs(args)),
|
|
13
|
+
signature: (...args) => {
|
|
14
|
+
return {
|
|
15
|
+
argTypes: args,
|
|
16
|
+
returnType: args[0].type.startsWith("texture_depth") ? f32 : vec4f
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
sideEffects: false
|
|
20
|
+
});
|
|
21
|
+
function sampleBiasCpu(_texture, _sampler, _coords, _biasOrArrayIndex, _biasOrOffset, _maybeOffset) {
|
|
22
|
+
throw new MissingCpuImplError("Texture sampling with bias relies on GPU resources and cannot be executed outside of a draw call");
|
|
23
|
+
}
|
|
24
|
+
dualImpl({
|
|
25
|
+
name: "textureSampleBias",
|
|
26
|
+
normalImpl: sampleBiasCpu,
|
|
27
|
+
codegenImpl: (ctx, args) => ctx.gen.emitCall("textureSampleBias", [], compactSnippetArgs(args)),
|
|
28
|
+
signature: (...args) => ({
|
|
29
|
+
argTypes: args,
|
|
30
|
+
returnType: vec4f
|
|
31
|
+
}),
|
|
32
|
+
sideEffects: false
|
|
33
|
+
});
|
|
34
|
+
function sampleLevelCpu(_texture, _sampler, _coords, _level, _offsetOrArrayIndex, _maybeOffset) {
|
|
35
|
+
throw new MissingCpuImplError("Texture sampling relies on GPU resources and cannot be executed outside of a draw call");
|
|
36
|
+
}
|
|
37
|
+
const textureSampleLevel = dualImpl({
|
|
38
|
+
name: "textureSampleLevel",
|
|
39
|
+
normalImpl: sampleLevelCpu,
|
|
40
|
+
codegenImpl: (ctx, args) => ctx.gen.emitCall("textureSampleLevel", [], compactSnippetArgs(args)),
|
|
41
|
+
signature: (...args) => {
|
|
42
|
+
return {
|
|
43
|
+
argTypes: args,
|
|
44
|
+
returnType: args[0].type.startsWith("texture_depth") ? f32 : vec4f
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
sideEffects: false
|
|
48
|
+
});
|
|
49
|
+
function textureLoadCpu(_texture, _coords, _levelOrArrayIndex) {
|
|
50
|
+
throw new MissingCpuImplError("`textureLoad` relies on GPU resources and cannot be executed outside of a draw call");
|
|
51
|
+
}
|
|
52
|
+
const textureLoad = dualImpl({
|
|
53
|
+
name: "textureLoad",
|
|
54
|
+
normalImpl: textureLoadCpu,
|
|
55
|
+
codegenImpl: (ctx, args) => ctx.gen.emitCall("textureLoad", [], compactSnippetArgs(args)),
|
|
56
|
+
signature: (...args) => {
|
|
57
|
+
const texture = args[0];
|
|
58
|
+
if (isWgslTexture(texture)) {
|
|
59
|
+
const isDepth = texture.type.startsWith("texture_depth");
|
|
60
|
+
const sampleType = texture.sampleType;
|
|
61
|
+
return {
|
|
62
|
+
argTypes: args,
|
|
63
|
+
returnType: isDepth ? f32 : sampleType.type === "f32" ? vec4f : sampleType.type === "u32" ? vec4u : vec4i
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
if (isWgslExternalTexture(texture)) return {
|
|
67
|
+
argTypes: args,
|
|
68
|
+
returnType: vec4f
|
|
69
|
+
};
|
|
70
|
+
const format = texture.format;
|
|
71
|
+
return {
|
|
72
|
+
argTypes: args,
|
|
73
|
+
returnType: getTextureFormatInfo(format).vectorType
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
sideEffects: false
|
|
77
|
+
});
|
|
78
|
+
function textureStoreCpu(_texture, _coords, _arrayIndexOrValue, _maybeValue) {
|
|
79
|
+
throw new MissingCpuImplError("`textureStore` relies on GPU resources and cannot be executed outside of a draw call");
|
|
80
|
+
}
|
|
81
|
+
const textureStore = dualImpl({
|
|
82
|
+
name: "textureStore",
|
|
83
|
+
normalImpl: textureStoreCpu,
|
|
84
|
+
codegenImpl: (_ctx, args) => stitch`textureStore(${args})`,
|
|
85
|
+
signature: (...args) => ({
|
|
86
|
+
argTypes: args,
|
|
87
|
+
returnType: Void
|
|
88
|
+
}),
|
|
89
|
+
sideEffects: true
|
|
90
|
+
});
|
|
91
|
+
function textureDimensionsCpu(_texture, _level) {
|
|
92
|
+
throw new MissingCpuImplError("`textureDimensions` relies on GPU resources and cannot be executed outside of a draw call");
|
|
93
|
+
}
|
|
94
|
+
const textureDimensions = dualImpl({
|
|
95
|
+
name: "textureDimensions",
|
|
96
|
+
normalImpl: textureDimensionsCpu,
|
|
97
|
+
codegenImpl: (ctx, args) => ctx.gen.emitCall("textureDimensions", [], compactSnippetArgs(args)),
|
|
98
|
+
signature: (...args) => {
|
|
99
|
+
const dim = args[0].dimension;
|
|
100
|
+
if (dim === "1d") return {
|
|
101
|
+
argTypes: args,
|
|
102
|
+
returnType: u32
|
|
103
|
+
};
|
|
104
|
+
if (dim === "3d") return {
|
|
105
|
+
argTypes: args,
|
|
106
|
+
returnType: vec3u
|
|
107
|
+
};
|
|
108
|
+
return {
|
|
109
|
+
argTypes: args,
|
|
110
|
+
returnType: vec2u
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
sideEffects: false
|
|
114
|
+
});
|
|
115
|
+
const textureGatherCpu = (..._args) => {
|
|
116
|
+
throw new Error("Texture gather relies on GPU resources and cannot be executed outside of a draw call");
|
|
117
|
+
};
|
|
118
|
+
var sampleTypeToVecType = {
|
|
119
|
+
f32: vec4f,
|
|
120
|
+
i32: vec4i,
|
|
121
|
+
u32: vec4u
|
|
122
|
+
};
|
|
123
|
+
dualImpl({
|
|
124
|
+
name: "textureGather",
|
|
125
|
+
normalImpl: textureGatherCpu,
|
|
126
|
+
codegenImpl: (_ctx, args) => stitch`textureGather(${args})`,
|
|
127
|
+
signature: (...args) => {
|
|
128
|
+
if (args[0].type.startsWith("texture")) {
|
|
129
|
+
const [texture$1, sampler$1, coords$1, _$1, ...rest$1] = args;
|
|
130
|
+
return {
|
|
131
|
+
argTypes: texture$1.type === "texture_depth_2d_array" || texture$1.type === "texture_depth_cube_array" ? [
|
|
132
|
+
texture$1,
|
|
133
|
+
sampler$1,
|
|
134
|
+
coords$1,
|
|
135
|
+
[u32, i32],
|
|
136
|
+
...rest$1
|
|
137
|
+
] : args,
|
|
138
|
+
returnType: vec4f
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
const [_, texture, sampler, coords, ...rest] = args;
|
|
142
|
+
return {
|
|
143
|
+
argTypes: texture.type === "texture_2d_array" || texture.type === "texture_cube_array" ? [
|
|
144
|
+
[u32, i32],
|
|
145
|
+
texture,
|
|
146
|
+
sampler,
|
|
147
|
+
coords,
|
|
148
|
+
[u32, i32],
|
|
149
|
+
...rest
|
|
150
|
+
] : [
|
|
151
|
+
[u32, i32],
|
|
152
|
+
texture,
|
|
153
|
+
sampler,
|
|
154
|
+
coords,
|
|
155
|
+
...rest
|
|
156
|
+
],
|
|
157
|
+
returnType: sampleTypeToVecType[texture.sampleType.type]
|
|
158
|
+
};
|
|
159
|
+
},
|
|
160
|
+
sideEffects: false
|
|
161
|
+
});
|
|
162
|
+
function textureSampleCompareCpu(_texture, _sampler, _coords, _depthRefOrArrayIndex, _depthRefOrOffset, _maybeOffset) {
|
|
163
|
+
throw new MissingCpuImplError("Texture comparison sampling relies on GPU resources and cannot be executed outside of a draw call");
|
|
164
|
+
}
|
|
165
|
+
dualImpl({
|
|
166
|
+
name: "textureSampleCompare",
|
|
167
|
+
normalImpl: textureSampleCompareCpu,
|
|
168
|
+
codegenImpl: (_ctx, args) => stitch`textureSampleCompare(${args})`,
|
|
169
|
+
signature: (...args) => ({
|
|
170
|
+
argTypes: args,
|
|
171
|
+
returnType: f32
|
|
172
|
+
}),
|
|
173
|
+
sideEffects: false
|
|
174
|
+
});
|
|
175
|
+
function textureSampleCompareLevelCpu(_texture, _sampler, _coords, _depthRefOrArrayIndex, _depthRefOrOffset, _maybeOffset) {
|
|
176
|
+
throw new MissingCpuImplError("Texture comparison sampling with level relies on GPU resources and cannot be executed outside of a draw call");
|
|
177
|
+
}
|
|
178
|
+
dualImpl({
|
|
179
|
+
name: "textureSampleCompareLevel",
|
|
180
|
+
normalImpl: textureSampleCompareLevelCpu,
|
|
181
|
+
codegenImpl: (ctx, args) => stitch`textureSampleCompareLevel(${args})`,
|
|
182
|
+
signature: (...args) => ({
|
|
183
|
+
argTypes: args,
|
|
184
|
+
returnType: f32
|
|
185
|
+
}),
|
|
186
|
+
sideEffects: false
|
|
187
|
+
});
|
|
188
|
+
function textureSampleBaseClampToEdgeCpu(_texture, _sampler, _coords) {
|
|
189
|
+
throw new MissingCpuImplError("Texture sampling with base clamp to edge is not supported outside of GPU mode.");
|
|
190
|
+
}
|
|
191
|
+
function sampleGradCpu(_texture, _sampler, _coords, _ddxOrArrayIndex, _ddyOrDdx, _offsetOrDdy, _maybeOffset) {
|
|
192
|
+
throw new MissingCpuImplError("Texture sampling with gradients relies on GPU resources and cannot be executed outside of a draw call");
|
|
193
|
+
}
|
|
194
|
+
dualImpl({
|
|
195
|
+
name: "textureSampleGrad",
|
|
196
|
+
normalImpl: sampleGradCpu,
|
|
197
|
+
codegenImpl: (_ctx, args) => stitch`textureSampleGrad(${args})`,
|
|
198
|
+
signature: (...args) => ({
|
|
199
|
+
argTypes: args,
|
|
200
|
+
returnType: vec4f
|
|
201
|
+
}),
|
|
202
|
+
sideEffects: false
|
|
203
|
+
});
|
|
204
|
+
dualImpl({
|
|
205
|
+
name: "textureSampleBaseClampToEdge",
|
|
206
|
+
normalImpl: textureSampleBaseClampToEdgeCpu,
|
|
207
|
+
codegenImpl: (_ctx, args) => stitch`textureSampleBaseClampToEdge(${args})`,
|
|
208
|
+
signature: (...args) => ({
|
|
209
|
+
argTypes: args,
|
|
210
|
+
returnType: vec4f
|
|
211
|
+
}),
|
|
212
|
+
sideEffects: false
|
|
213
|
+
});
|
|
3
214
|
function wrapGuarded(guarded, size) {
|
|
4
215
|
return {
|
|
5
216
|
guarded,
|
|
@@ -119,7 +330,7 @@ var PI = 3.141592653589793;
|
|
|
119
330
|
var TWO_PI = 6.283185307179586;
|
|
120
331
|
var SQRT2_OVER_4 = .35355339059327373;
|
|
121
332
|
var DEG_TO_RAD = .017453292519943295;
|
|
122
|
-
const circleSdf =
|
|
333
|
+
const circleSdf = typegpu_default.fn([
|
|
123
334
|
f32,
|
|
124
335
|
f32,
|
|
125
336
|
f32
|
|
@@ -127,7 +338,7 @@ const circleSdf = src_default.fn([
|
|
|
127
338
|
"use gpu";
|
|
128
339
|
return __tsover_sub(sqrt(__tsover_add(__tsover_mul(dx, dx), __tsover_mul(dy, dy))), radius);
|
|
129
340
|
}), {
|
|
130
|
-
v:
|
|
341
|
+
v: 2,
|
|
131
342
|
name: void 0,
|
|
132
343
|
ast: {
|
|
133
344
|
"params": [
|
|
@@ -148,11 +359,7 @@ const circleSdf = src_default.fn([
|
|
|
148
359
|
1,
|
|
149
360
|
[
|
|
150
361
|
6,
|
|
151
|
-
|
|
152
|
-
7,
|
|
153
|
-
"std",
|
|
154
|
-
"sqrt"
|
|
155
|
-
],
|
|
362
|
+
"std.sqrt",
|
|
156
363
|
[[
|
|
157
364
|
1,
|
|
158
365
|
[
|
|
@@ -172,12 +379,11 @@ const circleSdf = src_default.fn([
|
|
|
172
379
|
],
|
|
173
380
|
"-",
|
|
174
381
|
"radius"
|
|
175
|
-
]]]]
|
|
176
|
-
"externalNames": ["std"]
|
|
382
|
+
]]]]
|
|
177
383
|
},
|
|
178
|
-
externals: () =>
|
|
384
|
+
externals: { "std.sqrt": () => sqrt }
|
|
179
385
|
}) && $.f)({}));
|
|
180
|
-
const polygonSdf =
|
|
386
|
+
const polygonSdf = typegpu_default.fn([
|
|
181
387
|
f32,
|
|
182
388
|
f32,
|
|
183
389
|
f32,
|
|
@@ -191,7 +397,7 @@ const polygonSdf = src_default.fn([
|
|
|
191
397
|
const canonicalAngle = __tsover_sub(angle, __tsover_mul(sectorIdx, sectorAngle));
|
|
192
398
|
return __tsover_sub(__tsover_mul(len, cos(canonicalAngle)), radius);
|
|
193
399
|
}), {
|
|
194
|
-
v:
|
|
400
|
+
v: 2,
|
|
195
401
|
name: void 0,
|
|
196
402
|
ast: {
|
|
197
403
|
"params": [
|
|
@@ -218,11 +424,7 @@ const polygonSdf = src_default.fn([
|
|
|
218
424
|
"len",
|
|
219
425
|
[
|
|
220
426
|
6,
|
|
221
|
-
|
|
222
|
-
7,
|
|
223
|
-
"std",
|
|
224
|
-
"sqrt"
|
|
225
|
-
],
|
|
427
|
+
"std.sqrt",
|
|
226
428
|
[[
|
|
227
429
|
1,
|
|
228
430
|
[
|
|
@@ -246,11 +448,7 @@ const polygonSdf = src_default.fn([
|
|
|
246
448
|
"angle",
|
|
247
449
|
[
|
|
248
450
|
6,
|
|
249
|
-
|
|
250
|
-
7,
|
|
251
|
-
"std",
|
|
252
|
-
"atan2"
|
|
253
|
-
],
|
|
451
|
+
"std.atan2",
|
|
254
452
|
["dy", "dx"]
|
|
255
453
|
]
|
|
256
454
|
],
|
|
@@ -269,11 +467,7 @@ const polygonSdf = src_default.fn([
|
|
|
269
467
|
"sectorIdx",
|
|
270
468
|
[
|
|
271
469
|
6,
|
|
272
|
-
|
|
273
|
-
7,
|
|
274
|
-
"std",
|
|
275
|
-
"floor"
|
|
276
|
-
],
|
|
470
|
+
"std.floor",
|
|
277
471
|
[[
|
|
278
472
|
1,
|
|
279
473
|
[
|
|
@@ -310,26 +504,24 @@ const polygonSdf = src_default.fn([
|
|
|
310
504
|
"*",
|
|
311
505
|
[
|
|
312
506
|
6,
|
|
313
|
-
|
|
314
|
-
7,
|
|
315
|
-
"std",
|
|
316
|
-
"cos"
|
|
317
|
-
],
|
|
507
|
+
"std.cos",
|
|
318
508
|
["canonicalAngle"]
|
|
319
509
|
]
|
|
320
510
|
],
|
|
321
511
|
"-",
|
|
322
512
|
"radius"
|
|
323
513
|
]]
|
|
324
|
-
]]
|
|
325
|
-
"externalNames": ["std", "TWO_PI"]
|
|
514
|
+
]]
|
|
326
515
|
},
|
|
327
|
-
externals:
|
|
328
|
-
std:
|
|
329
|
-
|
|
330
|
-
|
|
516
|
+
externals: {
|
|
517
|
+
"std.sqrt": () => sqrt,
|
|
518
|
+
"std.atan2": () => atan2,
|
|
519
|
+
"TWO_PI": () => TWO_PI,
|
|
520
|
+
"std.floor": () => floor,
|
|
521
|
+
"std.cos": () => cos
|
|
522
|
+
}
|
|
331
523
|
}) && $.f)({}));
|
|
332
|
-
const flowerSdf =
|
|
524
|
+
const flowerSdf = typegpu_default.fn([
|
|
333
525
|
f32,
|
|
334
526
|
f32,
|
|
335
527
|
f32,
|
|
@@ -346,7 +538,7 @@ const flowerSdf = src_default.fn([
|
|
|
346
538
|
const boundaryR = __tsover_add(innerRadius, __tsover_mul(__tsover_sub(outerRadius, innerRadius), t));
|
|
347
539
|
return __tsover_sub(len, boundaryR);
|
|
348
540
|
}), {
|
|
349
|
-
v:
|
|
541
|
+
v: 2,
|
|
350
542
|
name: void 0,
|
|
351
543
|
ast: {
|
|
352
544
|
"params": [
|
|
@@ -377,11 +569,7 @@ const flowerSdf = src_default.fn([
|
|
|
377
569
|
"angle",
|
|
378
570
|
[
|
|
379
571
|
6,
|
|
380
|
-
|
|
381
|
-
7,
|
|
382
|
-
"std",
|
|
383
|
-
"atan2"
|
|
384
|
-
],
|
|
572
|
+
"std.atan2",
|
|
385
573
|
["dy", "dx"]
|
|
386
574
|
]
|
|
387
575
|
],
|
|
@@ -390,11 +578,7 @@ const flowerSdf = src_default.fn([
|
|
|
390
578
|
"len",
|
|
391
579
|
[
|
|
392
580
|
6,
|
|
393
|
-
|
|
394
|
-
7,
|
|
395
|
-
"std",
|
|
396
|
-
"sqrt"
|
|
397
|
-
],
|
|
581
|
+
"std.sqrt",
|
|
398
582
|
[[
|
|
399
583
|
1,
|
|
400
584
|
[
|
|
@@ -447,11 +631,7 @@ const flowerSdf = src_default.fn([
|
|
|
447
631
|
"-",
|
|
448
632
|
[
|
|
449
633
|
6,
|
|
450
|
-
|
|
451
|
-
7,
|
|
452
|
-
"std",
|
|
453
|
-
"floor"
|
|
454
|
-
],
|
|
634
|
+
"std.floor",
|
|
455
635
|
["tAngle"]
|
|
456
636
|
]
|
|
457
637
|
]
|
|
@@ -461,11 +641,7 @@ const flowerSdf = src_default.fn([
|
|
|
461
641
|
"t",
|
|
462
642
|
[
|
|
463
643
|
6,
|
|
464
|
-
|
|
465
|
-
7,
|
|
466
|
-
"std",
|
|
467
|
-
"abs"
|
|
468
|
-
],
|
|
644
|
+
"std.abs",
|
|
469
645
|
[[
|
|
470
646
|
1,
|
|
471
647
|
[
|
|
@@ -505,15 +681,17 @@ const flowerSdf = src_default.fn([
|
|
|
505
681
|
"-",
|
|
506
682
|
"boundaryR"
|
|
507
683
|
]]
|
|
508
|
-
]]
|
|
509
|
-
"externalNames": ["std", "TWO_PI"]
|
|
684
|
+
]]
|
|
510
685
|
},
|
|
511
|
-
externals:
|
|
512
|
-
std:
|
|
513
|
-
|
|
514
|
-
|
|
686
|
+
externals: {
|
|
687
|
+
"std.atan2": () => atan2,
|
|
688
|
+
"std.sqrt": () => sqrt,
|
|
689
|
+
"TWO_PI": () => TWO_PI,
|
|
690
|
+
"std.floor": () => floor,
|
|
691
|
+
"std.abs": () => abs
|
|
692
|
+
}
|
|
515
693
|
}) && $.f)({}));
|
|
516
|
-
const starSdf =
|
|
694
|
+
const starSdf = typegpu_default.fn([
|
|
517
695
|
f32,
|
|
518
696
|
f32,
|
|
519
697
|
f32,
|
|
@@ -545,7 +723,7 @@ const starSdf = src_default.fn([
|
|
|
545
723
|
const cross = __tsover_sub(__tsover_mul(ex, qy), __tsover_mul(ey, qx));
|
|
546
724
|
return __tsover_mul(dist, sign(cross));
|
|
547
725
|
}), {
|
|
548
|
-
v:
|
|
726
|
+
v: 2,
|
|
549
727
|
name: void 0,
|
|
550
728
|
ast: {
|
|
551
729
|
"params": [
|
|
@@ -586,11 +764,7 @@ const starSdf = src_default.fn([
|
|
|
586
764
|
"len",
|
|
587
765
|
[
|
|
588
766
|
6,
|
|
589
|
-
|
|
590
|
-
7,
|
|
591
|
-
"std",
|
|
592
|
-
"sqrt"
|
|
593
|
-
],
|
|
767
|
+
"std.sqrt",
|
|
594
768
|
[[
|
|
595
769
|
1,
|
|
596
770
|
[
|
|
@@ -614,11 +788,7 @@ const starSdf = src_default.fn([
|
|
|
614
788
|
"angle",
|
|
615
789
|
[
|
|
616
790
|
6,
|
|
617
|
-
|
|
618
|
-
7,
|
|
619
|
-
"std",
|
|
620
|
-
"atan2"
|
|
621
|
-
],
|
|
791
|
+
"std.atan2",
|
|
622
792
|
["dy", "dx"]
|
|
623
793
|
]
|
|
624
794
|
],
|
|
@@ -637,11 +807,7 @@ const starSdf = src_default.fn([
|
|
|
637
807
|
"sectorIdx",
|
|
638
808
|
[
|
|
639
809
|
6,
|
|
640
|
-
|
|
641
|
-
7,
|
|
642
|
-
"std",
|
|
643
|
-
"floor"
|
|
644
|
-
],
|
|
810
|
+
"std.floor",
|
|
645
811
|
[[
|
|
646
812
|
1,
|
|
647
813
|
[
|
|
@@ -675,22 +841,14 @@ const starSdf = src_default.fn([
|
|
|
675
841
|
"fpx",
|
|
676
842
|
[
|
|
677
843
|
6,
|
|
678
|
-
|
|
679
|
-
7,
|
|
680
|
-
"std",
|
|
681
|
-
"abs"
|
|
682
|
-
],
|
|
844
|
+
"std.abs",
|
|
683
845
|
[[
|
|
684
846
|
1,
|
|
685
847
|
"len",
|
|
686
848
|
"*",
|
|
687
849
|
[
|
|
688
850
|
6,
|
|
689
|
-
|
|
690
|
-
7,
|
|
691
|
-
"std",
|
|
692
|
-
"sin"
|
|
693
|
-
],
|
|
851
|
+
"std.sin",
|
|
694
852
|
["bn"]
|
|
695
853
|
]
|
|
696
854
|
]]
|
|
@@ -705,11 +863,7 @@ const starSdf = src_default.fn([
|
|
|
705
863
|
"*",
|
|
706
864
|
[
|
|
707
865
|
6,
|
|
708
|
-
|
|
709
|
-
7,
|
|
710
|
-
"std",
|
|
711
|
-
"cos"
|
|
712
|
-
],
|
|
866
|
+
"std.cos",
|
|
713
867
|
["bn"]
|
|
714
868
|
]
|
|
715
869
|
]
|
|
@@ -729,11 +883,7 @@ const starSdf = src_default.fn([
|
|
|
729
883
|
"sinAn",
|
|
730
884
|
[
|
|
731
885
|
6,
|
|
732
|
-
|
|
733
|
-
7,
|
|
734
|
-
"std",
|
|
735
|
-
"sin"
|
|
736
|
-
],
|
|
886
|
+
"std.sin",
|
|
737
887
|
["an"]
|
|
738
888
|
]
|
|
739
889
|
],
|
|
@@ -742,11 +892,7 @@ const starSdf = src_default.fn([
|
|
|
742
892
|
"cosAn",
|
|
743
893
|
[
|
|
744
894
|
6,
|
|
745
|
-
|
|
746
|
-
7,
|
|
747
|
-
"std",
|
|
748
|
-
"cos"
|
|
749
|
-
],
|
|
895
|
+
"std.cos",
|
|
750
896
|
["an"]
|
|
751
897
|
]
|
|
752
898
|
],
|
|
@@ -835,11 +981,7 @@ const starSdf = src_default.fn([
|
|
|
835
981
|
"t",
|
|
836
982
|
[
|
|
837
983
|
6,
|
|
838
|
-
|
|
839
|
-
7,
|
|
840
|
-
"std",
|
|
841
|
-
"clamp"
|
|
842
|
-
],
|
|
984
|
+
"std.clamp",
|
|
843
985
|
[
|
|
844
986
|
[
|
|
845
987
|
1,
|
|
@@ -892,11 +1034,7 @@ const starSdf = src_default.fn([
|
|
|
892
1034
|
"dist",
|
|
893
1035
|
[
|
|
894
1036
|
6,
|
|
895
|
-
|
|
896
|
-
7,
|
|
897
|
-
"std",
|
|
898
|
-
"sqrt"
|
|
899
|
-
],
|
|
1037
|
+
"std.sqrt",
|
|
900
1038
|
[[
|
|
901
1039
|
1,
|
|
902
1040
|
[
|
|
@@ -941,28 +1079,26 @@ const starSdf = src_default.fn([
|
|
|
941
1079
|
"*",
|
|
942
1080
|
[
|
|
943
1081
|
6,
|
|
944
|
-
|
|
945
|
-
7,
|
|
946
|
-
"std",
|
|
947
|
-
"sign"
|
|
948
|
-
],
|
|
1082
|
+
"std.sign",
|
|
949
1083
|
["cross"]
|
|
950
1084
|
]
|
|
951
1085
|
]]
|
|
952
|
-
]]
|
|
953
|
-
"externalNames": [
|
|
954
|
-
"std",
|
|
955
|
-
"TWO_PI",
|
|
956
|
-
"PI"
|
|
957
|
-
]
|
|
1086
|
+
]]
|
|
958
1087
|
},
|
|
959
|
-
externals:
|
|
960
|
-
std:
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
1088
|
+
externals: {
|
|
1089
|
+
"std.sqrt": () => sqrt,
|
|
1090
|
+
"std.atan2": () => atan2,
|
|
1091
|
+
"TWO_PI": () => TWO_PI,
|
|
1092
|
+
"std.floor": () => floor,
|
|
1093
|
+
"std.abs": () => abs,
|
|
1094
|
+
"std.sin": () => sin,
|
|
1095
|
+
"std.cos": () => cos,
|
|
1096
|
+
"PI": () => PI,
|
|
1097
|
+
"std.clamp": () => clamp,
|
|
1098
|
+
"std.sign": () => sign
|
|
1099
|
+
}
|
|
964
1100
|
}) && $.f)({}));
|
|
965
|
-
const ringSdf =
|
|
1101
|
+
const ringSdf = typegpu_default.fn([
|
|
966
1102
|
f32,
|
|
967
1103
|
f32,
|
|
968
1104
|
f32,
|
|
@@ -972,7 +1108,7 @@ const ringSdf = src_default.fn([
|
|
|
972
1108
|
const len = sqrt(__tsover_add(__tsover_mul(dx, dx), __tsover_mul(dy, dy)));
|
|
973
1109
|
return __tsover_sub(abs(__tsover_sub(len, radius)), thickness);
|
|
974
1110
|
}), {
|
|
975
|
-
v:
|
|
1111
|
+
v: 2,
|
|
976
1112
|
name: void 0,
|
|
977
1113
|
ast: {
|
|
978
1114
|
"params": [
|
|
@@ -998,11 +1134,7 @@ const ringSdf = src_default.fn([
|
|
|
998
1134
|
"len",
|
|
999
1135
|
[
|
|
1000
1136
|
6,
|
|
1001
|
-
|
|
1002
|
-
7,
|
|
1003
|
-
"std",
|
|
1004
|
-
"sqrt"
|
|
1005
|
-
],
|
|
1137
|
+
"std.sqrt",
|
|
1006
1138
|
[[
|
|
1007
1139
|
1,
|
|
1008
1140
|
[
|
|
@@ -1024,11 +1156,7 @@ const ringSdf = src_default.fn([
|
|
|
1024
1156
|
1,
|
|
1025
1157
|
[
|
|
1026
1158
|
6,
|
|
1027
|
-
|
|
1028
|
-
7,
|
|
1029
|
-
"std",
|
|
1030
|
-
"abs"
|
|
1031
|
-
],
|
|
1159
|
+
"std.abs",
|
|
1032
1160
|
[[
|
|
1033
1161
|
1,
|
|
1034
1162
|
"len",
|
|
@@ -1038,12 +1166,14 @@ const ringSdf = src_default.fn([
|
|
|
1038
1166
|
],
|
|
1039
1167
|
"-",
|
|
1040
1168
|
"thickness"
|
|
1041
|
-
]]]]
|
|
1042
|
-
"externalNames": ["std"]
|
|
1169
|
+
]]]]
|
|
1043
1170
|
},
|
|
1044
|
-
externals:
|
|
1171
|
+
externals: {
|
|
1172
|
+
"std.sqrt": () => sqrt,
|
|
1173
|
+
"std.abs": () => abs
|
|
1174
|
+
}
|
|
1045
1175
|
}) && $.f)({}));
|
|
1046
|
-
const crossSdf =
|
|
1176
|
+
const crossSdf = typegpu_default.fn([
|
|
1047
1177
|
f32,
|
|
1048
1178
|
f32,
|
|
1049
1179
|
f32,
|
|
@@ -1057,7 +1187,7 @@ const crossSdf = src_default.fn([
|
|
|
1057
1187
|
const dVert = max(__tsover_sub(py, size), __tsover_sub(px, thickness));
|
|
1058
1188
|
return __tsover_sub(min(dHoriz, dVert), rounding);
|
|
1059
1189
|
}), {
|
|
1060
|
-
v:
|
|
1190
|
+
v: 2,
|
|
1061
1191
|
name: void 0,
|
|
1062
1192
|
ast: {
|
|
1063
1193
|
"params": [
|
|
@@ -1088,11 +1218,7 @@ const crossSdf = src_default.fn([
|
|
|
1088
1218
|
"px",
|
|
1089
1219
|
[
|
|
1090
1220
|
6,
|
|
1091
|
-
|
|
1092
|
-
7,
|
|
1093
|
-
"std",
|
|
1094
|
-
"abs"
|
|
1095
|
-
],
|
|
1221
|
+
"std.abs",
|
|
1096
1222
|
["dx"]
|
|
1097
1223
|
]
|
|
1098
1224
|
],
|
|
@@ -1101,11 +1227,7 @@ const crossSdf = src_default.fn([
|
|
|
1101
1227
|
"py",
|
|
1102
1228
|
[
|
|
1103
1229
|
6,
|
|
1104
|
-
|
|
1105
|
-
7,
|
|
1106
|
-
"std",
|
|
1107
|
-
"abs"
|
|
1108
|
-
],
|
|
1230
|
+
"std.abs",
|
|
1109
1231
|
["dy"]
|
|
1110
1232
|
]
|
|
1111
1233
|
],
|
|
@@ -1114,11 +1236,7 @@ const crossSdf = src_default.fn([
|
|
|
1114
1236
|
"dHoriz",
|
|
1115
1237
|
[
|
|
1116
1238
|
6,
|
|
1117
|
-
|
|
1118
|
-
7,
|
|
1119
|
-
"std",
|
|
1120
|
-
"max"
|
|
1121
|
-
],
|
|
1239
|
+
"std.max",
|
|
1122
1240
|
[[
|
|
1123
1241
|
1,
|
|
1124
1242
|
"px",
|
|
@@ -1137,11 +1255,7 @@ const crossSdf = src_default.fn([
|
|
|
1137
1255
|
"dVert",
|
|
1138
1256
|
[
|
|
1139
1257
|
6,
|
|
1140
|
-
|
|
1141
|
-
7,
|
|
1142
|
-
"std",
|
|
1143
|
-
"max"
|
|
1144
|
-
],
|
|
1258
|
+
"std.max",
|
|
1145
1259
|
[[
|
|
1146
1260
|
1,
|
|
1147
1261
|
"py",
|
|
@@ -1159,22 +1273,21 @@ const crossSdf = src_default.fn([
|
|
|
1159
1273
|
1,
|
|
1160
1274
|
[
|
|
1161
1275
|
6,
|
|
1162
|
-
|
|
1163
|
-
7,
|
|
1164
|
-
"std",
|
|
1165
|
-
"min"
|
|
1166
|
-
],
|
|
1276
|
+
"std.min",
|
|
1167
1277
|
["dHoriz", "dVert"]
|
|
1168
1278
|
],
|
|
1169
1279
|
"-",
|
|
1170
1280
|
"rounding"
|
|
1171
1281
|
]]
|
|
1172
|
-
]]
|
|
1173
|
-
"externalNames": ["std"]
|
|
1282
|
+
]]
|
|
1174
1283
|
},
|
|
1175
|
-
externals:
|
|
1284
|
+
externals: {
|
|
1285
|
+
"std.abs": () => abs,
|
|
1286
|
+
"std.max": () => max,
|
|
1287
|
+
"std.min": () => min
|
|
1288
|
+
}
|
|
1176
1289
|
}) && $.f)({}));
|
|
1177
|
-
const roundedRectSdf =
|
|
1290
|
+
const roundedRectSdf = typegpu_default.fn([
|
|
1178
1291
|
f32,
|
|
1179
1292
|
f32,
|
|
1180
1293
|
f32,
|
|
@@ -1190,7 +1303,7 @@ const roundedRectSdf = src_default.fn([
|
|
|
1190
1303
|
const innerDist = min(max(qx, qy), 0);
|
|
1191
1304
|
return __tsover_sub(__tsover_add(outerDist, innerDist), rounding);
|
|
1192
1305
|
}), {
|
|
1193
|
-
v:
|
|
1306
|
+
v: 2,
|
|
1194
1307
|
name: void 0,
|
|
1195
1308
|
ast: {
|
|
1196
1309
|
"params": [
|
|
@@ -1225,11 +1338,7 @@ const roundedRectSdf = src_default.fn([
|
|
|
1225
1338
|
1,
|
|
1226
1339
|
[
|
|
1227
1340
|
6,
|
|
1228
|
-
|
|
1229
|
-
7,
|
|
1230
|
-
"std",
|
|
1231
|
-
"abs"
|
|
1232
|
-
],
|
|
1341
|
+
"std.abs",
|
|
1233
1342
|
["dx"]
|
|
1234
1343
|
],
|
|
1235
1344
|
"-",
|
|
@@ -1248,11 +1357,7 @@ const roundedRectSdf = src_default.fn([
|
|
|
1248
1357
|
1,
|
|
1249
1358
|
[
|
|
1250
1359
|
6,
|
|
1251
|
-
|
|
1252
|
-
7,
|
|
1253
|
-
"std",
|
|
1254
|
-
"abs"
|
|
1255
|
-
],
|
|
1360
|
+
"std.abs",
|
|
1256
1361
|
["dy"]
|
|
1257
1362
|
],
|
|
1258
1363
|
"-",
|
|
@@ -1267,11 +1372,7 @@ const roundedRectSdf = src_default.fn([
|
|
|
1267
1372
|
"mqx",
|
|
1268
1373
|
[
|
|
1269
1374
|
6,
|
|
1270
|
-
|
|
1271
|
-
7,
|
|
1272
|
-
"std",
|
|
1273
|
-
"max"
|
|
1274
|
-
],
|
|
1375
|
+
"std.max",
|
|
1275
1376
|
["qx", [5, "0"]]
|
|
1276
1377
|
]
|
|
1277
1378
|
],
|
|
@@ -1280,11 +1381,7 @@ const roundedRectSdf = src_default.fn([
|
|
|
1280
1381
|
"mqy",
|
|
1281
1382
|
[
|
|
1282
1383
|
6,
|
|
1283
|
-
|
|
1284
|
-
7,
|
|
1285
|
-
"std",
|
|
1286
|
-
"max"
|
|
1287
|
-
],
|
|
1384
|
+
"std.max",
|
|
1288
1385
|
["qy", [5, "0"]]
|
|
1289
1386
|
]
|
|
1290
1387
|
],
|
|
@@ -1293,11 +1390,7 @@ const roundedRectSdf = src_default.fn([
|
|
|
1293
1390
|
"outerDist",
|
|
1294
1391
|
[
|
|
1295
1392
|
6,
|
|
1296
|
-
|
|
1297
|
-
7,
|
|
1298
|
-
"std",
|
|
1299
|
-
"sqrt"
|
|
1300
|
-
],
|
|
1393
|
+
"std.sqrt",
|
|
1301
1394
|
[[
|
|
1302
1395
|
1,
|
|
1303
1396
|
[
|
|
@@ -1321,18 +1414,10 @@ const roundedRectSdf = src_default.fn([
|
|
|
1321
1414
|
"innerDist",
|
|
1322
1415
|
[
|
|
1323
1416
|
6,
|
|
1324
|
-
|
|
1325
|
-
7,
|
|
1326
|
-
"std",
|
|
1327
|
-
"min"
|
|
1328
|
-
],
|
|
1417
|
+
"std.min",
|
|
1329
1418
|
[[
|
|
1330
1419
|
6,
|
|
1331
|
-
|
|
1332
|
-
7,
|
|
1333
|
-
"std",
|
|
1334
|
-
"max"
|
|
1335
|
-
],
|
|
1420
|
+
"std.max",
|
|
1336
1421
|
["qx", "qy"]
|
|
1337
1422
|
], [5, "0"]]
|
|
1338
1423
|
]
|
|
@@ -1348,12 +1433,16 @@ const roundedRectSdf = src_default.fn([
|
|
|
1348
1433
|
"-",
|
|
1349
1434
|
"rounding"
|
|
1350
1435
|
]]
|
|
1351
|
-
]]
|
|
1352
|
-
"externalNames": ["std"]
|
|
1436
|
+
]]
|
|
1353
1437
|
},
|
|
1354
|
-
externals:
|
|
1438
|
+
externals: {
|
|
1439
|
+
"std.abs": () => abs,
|
|
1440
|
+
"std.max": () => max,
|
|
1441
|
+
"std.sqrt": () => sqrt,
|
|
1442
|
+
"std.min": () => min
|
|
1443
|
+
}
|
|
1355
1444
|
}) && $.f)({}));
|
|
1356
|
-
const ellipseSdf =
|
|
1445
|
+
const ellipseSdf = typegpu_default.fn([
|
|
1357
1446
|
f32,
|
|
1358
1447
|
f32,
|
|
1359
1448
|
f32,
|
|
@@ -1365,7 +1454,7 @@ const ellipseSdf = src_default.fn([
|
|
|
1365
1454
|
const k = sqrt(__tsover_add(__tsover_mul(nx, nx), __tsover_mul(ny, ny)));
|
|
1366
1455
|
return __tsover_mul(__tsover_sub(k, 1), min(radiusX, radiusY));
|
|
1367
1456
|
}), {
|
|
1368
|
-
v:
|
|
1457
|
+
v: 2,
|
|
1369
1458
|
name: void 0,
|
|
1370
1459
|
ast: {
|
|
1371
1460
|
"params": [
|
|
@@ -1412,11 +1501,7 @@ const ellipseSdf = src_default.fn([
|
|
|
1412
1501
|
"k",
|
|
1413
1502
|
[
|
|
1414
1503
|
6,
|
|
1415
|
-
|
|
1416
|
-
7,
|
|
1417
|
-
"std",
|
|
1418
|
-
"sqrt"
|
|
1419
|
-
],
|
|
1504
|
+
"std.sqrt",
|
|
1420
1505
|
[[
|
|
1421
1506
|
1,
|
|
1422
1507
|
[
|
|
@@ -1446,20 +1531,18 @@ const ellipseSdf = src_default.fn([
|
|
|
1446
1531
|
"*",
|
|
1447
1532
|
[
|
|
1448
1533
|
6,
|
|
1449
|
-
|
|
1450
|
-
7,
|
|
1451
|
-
"std",
|
|
1452
|
-
"min"
|
|
1453
|
-
],
|
|
1534
|
+
"std.min",
|
|
1454
1535
|
["radiusX", "radiusY"]
|
|
1455
1536
|
]
|
|
1456
1537
|
]]
|
|
1457
|
-
]]
|
|
1458
|
-
"externalNames": ["std"]
|
|
1538
|
+
]]
|
|
1459
1539
|
},
|
|
1460
|
-
externals:
|
|
1540
|
+
externals: {
|
|
1541
|
+
"std.sqrt": () => sqrt,
|
|
1542
|
+
"std.min": () => min
|
|
1543
|
+
}
|
|
1461
1544
|
}) && $.f)({}));
|
|
1462
|
-
const vesicaSdf =
|
|
1545
|
+
const vesicaSdf = typegpu_default.fn([
|
|
1463
1546
|
f32,
|
|
1464
1547
|
f32,
|
|
1465
1548
|
f32,
|
|
@@ -1474,7 +1557,7 @@ const vesicaSdf = src_default.fn([
|
|
|
1474
1557
|
const dist1 = sqrt(__tsover_add(__tsover_mul(px, px), __tsover_mul(__tsover_sub(py, b), __tsover_sub(py, b))));
|
|
1475
1558
|
return select(__tsover_sub(sqrt(__tsover_add(__tsover_mul(__tsover_add(px, dd), __tsover_add(px, dd)), __tsover_mul(py, py))), radius), dist1, cond);
|
|
1476
1559
|
}), {
|
|
1477
|
-
v:
|
|
1560
|
+
v: 2,
|
|
1478
1561
|
name: void 0,
|
|
1479
1562
|
ast: {
|
|
1480
1563
|
"params": [
|
|
@@ -1501,11 +1584,7 @@ const vesicaSdf = src_default.fn([
|
|
|
1501
1584
|
"px",
|
|
1502
1585
|
[
|
|
1503
1586
|
6,
|
|
1504
|
-
|
|
1505
|
-
7,
|
|
1506
|
-
"std",
|
|
1507
|
-
"abs"
|
|
1508
|
-
],
|
|
1587
|
+
"std.abs",
|
|
1509
1588
|
["dx"]
|
|
1510
1589
|
]
|
|
1511
1590
|
],
|
|
@@ -1514,11 +1593,7 @@ const vesicaSdf = src_default.fn([
|
|
|
1514
1593
|
"py",
|
|
1515
1594
|
[
|
|
1516
1595
|
6,
|
|
1517
|
-
|
|
1518
|
-
7,
|
|
1519
|
-
"std",
|
|
1520
|
-
"abs"
|
|
1521
|
-
],
|
|
1596
|
+
"std.abs",
|
|
1522
1597
|
["dy"]
|
|
1523
1598
|
]
|
|
1524
1599
|
],
|
|
@@ -1537,18 +1612,10 @@ const vesicaSdf = src_default.fn([
|
|
|
1537
1612
|
"b",
|
|
1538
1613
|
[
|
|
1539
1614
|
6,
|
|
1540
|
-
|
|
1541
|
-
7,
|
|
1542
|
-
"std",
|
|
1543
|
-
"sqrt"
|
|
1544
|
-
],
|
|
1615
|
+
"std.sqrt",
|
|
1545
1616
|
[[
|
|
1546
1617
|
6,
|
|
1547
|
-
|
|
1548
|
-
7,
|
|
1549
|
-
"std",
|
|
1550
|
-
"max"
|
|
1551
|
-
],
|
|
1618
|
+
"std.max",
|
|
1552
1619
|
[[
|
|
1553
1620
|
1,
|
|
1554
1621
|
[
|
|
@@ -1598,11 +1665,7 @@ const vesicaSdf = src_default.fn([
|
|
|
1598
1665
|
"dist1",
|
|
1599
1666
|
[
|
|
1600
1667
|
6,
|
|
1601
|
-
|
|
1602
|
-
7,
|
|
1603
|
-
"std",
|
|
1604
|
-
"sqrt"
|
|
1605
|
-
],
|
|
1668
|
+
"std.sqrt",
|
|
1606
1669
|
[[
|
|
1607
1670
|
1,
|
|
1608
1671
|
[
|
|
@@ -1638,11 +1701,7 @@ const vesicaSdf = src_default.fn([
|
|
|
1638
1701
|
1,
|
|
1639
1702
|
[
|
|
1640
1703
|
6,
|
|
1641
|
-
|
|
1642
|
-
7,
|
|
1643
|
-
"std",
|
|
1644
|
-
"sqrt"
|
|
1645
|
-
],
|
|
1704
|
+
"std.sqrt",
|
|
1646
1705
|
[[
|
|
1647
1706
|
1,
|
|
1648
1707
|
[
|
|
@@ -1676,23 +1735,23 @@ const vesicaSdf = src_default.fn([
|
|
|
1676
1735
|
],
|
|
1677
1736
|
[10, [
|
|
1678
1737
|
6,
|
|
1679
|
-
|
|
1680
|
-
7,
|
|
1681
|
-
"std",
|
|
1682
|
-
"select"
|
|
1683
|
-
],
|
|
1738
|
+
"std.select",
|
|
1684
1739
|
[
|
|
1685
1740
|
"dist2",
|
|
1686
1741
|
"dist1",
|
|
1687
1742
|
"cond"
|
|
1688
1743
|
]
|
|
1689
1744
|
]]
|
|
1690
|
-
]]
|
|
1691
|
-
"externalNames": ["std"]
|
|
1745
|
+
]]
|
|
1692
1746
|
},
|
|
1693
|
-
externals:
|
|
1747
|
+
externals: {
|
|
1748
|
+
"std.abs": () => abs,
|
|
1749
|
+
"std.sqrt": () => sqrt,
|
|
1750
|
+
"std.max": () => max,
|
|
1751
|
+
"std.select": () => select
|
|
1752
|
+
}
|
|
1694
1753
|
}) && $.f)({}));
|
|
1695
|
-
const crescentSdf =
|
|
1754
|
+
const crescentSdf = typegpu_default.fn([
|
|
1696
1755
|
f32,
|
|
1697
1756
|
f32,
|
|
1698
1757
|
f32,
|
|
@@ -1716,7 +1775,7 @@ const crescentSdf = src_default.fn([
|
|
|
1716
1775
|
const lenInner = sqrt(__tsover_add(__tsover_mul(innerX, innerX), __tsover_mul(py, py)));
|
|
1717
1776
|
return select(max(__tsover_sub(lenP, ra), __tsover_mul(__tsover_sub(lenInner, rb), -1)), dist1, lhs > rhs);
|
|
1718
1777
|
}), {
|
|
1719
|
-
v:
|
|
1778
|
+
v: 2,
|
|
1720
1779
|
name: void 0,
|
|
1721
1780
|
ast: {
|
|
1722
1781
|
"params": [
|
|
@@ -1747,11 +1806,7 @@ const crescentSdf = src_default.fn([
|
|
|
1747
1806
|
"py",
|
|
1748
1807
|
[
|
|
1749
1808
|
6,
|
|
1750
|
-
|
|
1751
|
-
7,
|
|
1752
|
-
"std",
|
|
1753
|
-
"abs"
|
|
1754
|
-
],
|
|
1809
|
+
"std.abs",
|
|
1755
1810
|
["dy"]
|
|
1756
1811
|
]
|
|
1757
1812
|
],
|
|
@@ -1809,11 +1864,7 @@ const crescentSdf = src_default.fn([
|
|
|
1809
1864
|
"/",
|
|
1810
1865
|
[
|
|
1811
1866
|
6,
|
|
1812
|
-
|
|
1813
|
-
7,
|
|
1814
|
-
"std",
|
|
1815
|
-
"max"
|
|
1816
|
-
],
|
|
1867
|
+
"std.max",
|
|
1817
1868
|
[[
|
|
1818
1869
|
1,
|
|
1819
1870
|
"off",
|
|
@@ -1828,11 +1879,7 @@ const crescentSdf = src_default.fn([
|
|
|
1828
1879
|
"bSq",
|
|
1829
1880
|
[
|
|
1830
1881
|
6,
|
|
1831
|
-
|
|
1832
|
-
7,
|
|
1833
|
-
"std",
|
|
1834
|
-
"max"
|
|
1835
|
-
],
|
|
1882
|
+
"std.max",
|
|
1836
1883
|
[[
|
|
1837
1884
|
1,
|
|
1838
1885
|
[
|
|
@@ -1856,11 +1903,7 @@ const crescentSdf = src_default.fn([
|
|
|
1856
1903
|
"b",
|
|
1857
1904
|
[
|
|
1858
1905
|
6,
|
|
1859
|
-
|
|
1860
|
-
7,
|
|
1861
|
-
"std",
|
|
1862
|
-
"sqrt"
|
|
1863
|
-
],
|
|
1906
|
+
"std.sqrt",
|
|
1864
1907
|
["bSq"]
|
|
1865
1908
|
]
|
|
1866
1909
|
],
|
|
@@ -1903,11 +1946,7 @@ const crescentSdf = src_default.fn([
|
|
|
1903
1946
|
"*",
|
|
1904
1947
|
[
|
|
1905
1948
|
6,
|
|
1906
|
-
|
|
1907
|
-
7,
|
|
1908
|
-
"std",
|
|
1909
|
-
"max"
|
|
1910
|
-
],
|
|
1949
|
+
"std.max",
|
|
1911
1950
|
[[
|
|
1912
1951
|
1,
|
|
1913
1952
|
"b",
|
|
@@ -1942,11 +1981,7 @@ const crescentSdf = src_default.fn([
|
|
|
1942
1981
|
"dist1",
|
|
1943
1982
|
[
|
|
1944
1983
|
6,
|
|
1945
|
-
|
|
1946
|
-
7,
|
|
1947
|
-
"std",
|
|
1948
|
-
"sqrt"
|
|
1949
|
-
],
|
|
1984
|
+
"std.sqrt",
|
|
1950
1985
|
[[
|
|
1951
1986
|
1,
|
|
1952
1987
|
[
|
|
@@ -1970,11 +2005,7 @@ const crescentSdf = src_default.fn([
|
|
|
1970
2005
|
"lenP",
|
|
1971
2006
|
[
|
|
1972
2007
|
6,
|
|
1973
|
-
|
|
1974
|
-
7,
|
|
1975
|
-
"std",
|
|
1976
|
-
"sqrt"
|
|
1977
|
-
],
|
|
2008
|
+
"std.sqrt",
|
|
1978
2009
|
[[
|
|
1979
2010
|
1,
|
|
1980
2011
|
[
|
|
@@ -2008,11 +2039,7 @@ const crescentSdf = src_default.fn([
|
|
|
2008
2039
|
"lenInner",
|
|
2009
2040
|
[
|
|
2010
2041
|
6,
|
|
2011
|
-
|
|
2012
|
-
7,
|
|
2013
|
-
"std",
|
|
2014
|
-
"sqrt"
|
|
2015
|
-
],
|
|
2042
|
+
"std.sqrt",
|
|
2016
2043
|
[[
|
|
2017
2044
|
1,
|
|
2018
2045
|
[
|
|
@@ -2036,11 +2063,7 @@ const crescentSdf = src_default.fn([
|
|
|
2036
2063
|
"dist2",
|
|
2037
2064
|
[
|
|
2038
2065
|
6,
|
|
2039
|
-
|
|
2040
|
-
7,
|
|
2041
|
-
"std",
|
|
2042
|
-
"max"
|
|
2043
|
-
],
|
|
2066
|
+
"std.max",
|
|
2044
2067
|
[[
|
|
2045
2068
|
1,
|
|
2046
2069
|
"lenP",
|
|
@@ -2065,11 +2088,7 @@ const crescentSdf = src_default.fn([
|
|
|
2065
2088
|
],
|
|
2066
2089
|
[10, [
|
|
2067
2090
|
6,
|
|
2068
|
-
|
|
2069
|
-
7,
|
|
2070
|
-
"std",
|
|
2071
|
-
"select"
|
|
2072
|
-
],
|
|
2091
|
+
"std.select",
|
|
2073
2092
|
[
|
|
2074
2093
|
"dist2",
|
|
2075
2094
|
"dist1",
|
|
@@ -2081,12 +2100,16 @@ const crescentSdf = src_default.fn([
|
|
|
2081
2100
|
]
|
|
2082
2101
|
]
|
|
2083
2102
|
]]
|
|
2084
|
-
]]
|
|
2085
|
-
"externalNames": ["std"]
|
|
2103
|
+
]]
|
|
2086
2104
|
},
|
|
2087
|
-
externals:
|
|
2105
|
+
externals: {
|
|
2106
|
+
"std.abs": () => abs,
|
|
2107
|
+
"std.max": () => max,
|
|
2108
|
+
"std.sqrt": () => sqrt,
|
|
2109
|
+
"std.select": () => select
|
|
2110
|
+
}
|
|
2088
2111
|
}) && $.f)({}));
|
|
2089
|
-
const trapezoidSdf =
|
|
2112
|
+
const trapezoidSdf = typegpu_default.fn([
|
|
2090
2113
|
f32,
|
|
2091
2114
|
f32,
|
|
2092
2115
|
f32,
|
|
@@ -2115,7 +2138,7 @@ const trapezoidSdf = src_default.fn([
|
|
|
2115
2138
|
const dcb = __tsover_add(__tsover_mul(cbx, cbx), __tsover_mul(cby, cby));
|
|
2116
2139
|
return __tsover_mul(s, sqrt(min(dca, dcb)));
|
|
2117
2140
|
}), {
|
|
2118
|
-
v:
|
|
2141
|
+
v: 2,
|
|
2119
2142
|
name: void 0,
|
|
2120
2143
|
ast: {
|
|
2121
2144
|
"params": [
|
|
@@ -2146,11 +2169,7 @@ const trapezoidSdf = src_default.fn([
|
|
|
2146
2169
|
"px",
|
|
2147
2170
|
[
|
|
2148
2171
|
6,
|
|
2149
|
-
|
|
2150
|
-
7,
|
|
2151
|
-
"std",
|
|
2152
|
-
"abs"
|
|
2153
|
-
],
|
|
2172
|
+
"std.abs",
|
|
2154
2173
|
["dx"]
|
|
2155
2174
|
]
|
|
2156
2175
|
],
|
|
@@ -2189,11 +2208,7 @@ const trapezoidSdf = src_default.fn([
|
|
|
2189
2208
|
"clampWidth",
|
|
2190
2209
|
[
|
|
2191
2210
|
6,
|
|
2192
|
-
|
|
2193
|
-
7,
|
|
2194
|
-
"std",
|
|
2195
|
-
"select"
|
|
2196
|
-
],
|
|
2211
|
+
"std.select",
|
|
2197
2212
|
[
|
|
2198
2213
|
"r2",
|
|
2199
2214
|
"r1",
|
|
@@ -2215,11 +2230,7 @@ const trapezoidSdf = src_default.fn([
|
|
|
2215
2230
|
"-",
|
|
2216
2231
|
[
|
|
2217
2232
|
6,
|
|
2218
|
-
|
|
2219
|
-
7,
|
|
2220
|
-
"std",
|
|
2221
|
-
"min"
|
|
2222
|
-
],
|
|
2233
|
+
"std.min",
|
|
2223
2234
|
["px", "clampWidth"]
|
|
2224
2235
|
]
|
|
2225
2236
|
]
|
|
@@ -2231,11 +2242,7 @@ const trapezoidSdf = src_default.fn([
|
|
|
2231
2242
|
1,
|
|
2232
2243
|
[
|
|
2233
2244
|
6,
|
|
2234
|
-
|
|
2235
|
-
7,
|
|
2236
|
-
"std",
|
|
2237
|
-
"abs"
|
|
2238
|
-
],
|
|
2245
|
+
"std.abs",
|
|
2239
2246
|
["dy"]
|
|
2240
2247
|
],
|
|
2241
2248
|
"-",
|
|
@@ -2287,11 +2294,7 @@ const trapezoidSdf = src_default.fn([
|
|
|
2287
2294
|
"dotDen",
|
|
2288
2295
|
[
|
|
2289
2296
|
6,
|
|
2290
|
-
|
|
2291
|
-
7,
|
|
2292
|
-
"std",
|
|
2293
|
-
"max"
|
|
2294
|
-
],
|
|
2297
|
+
"std.max",
|
|
2295
2298
|
[[
|
|
2296
2299
|
1,
|
|
2297
2300
|
[
|
|
@@ -2315,11 +2318,7 @@ const trapezoidSdf = src_default.fn([
|
|
|
2315
2318
|
"t",
|
|
2316
2319
|
[
|
|
2317
2320
|
6,
|
|
2318
|
-
|
|
2319
|
-
7,
|
|
2320
|
-
"std",
|
|
2321
|
-
"clamp"
|
|
2322
|
-
],
|
|
2321
|
+
"std.clamp",
|
|
2323
2322
|
[
|
|
2324
2323
|
[
|
|
2325
2324
|
1,
|
|
@@ -2377,28 +2376,16 @@ const trapezoidSdf = src_default.fn([
|
|
|
2377
2376
|
"sInner",
|
|
2378
2377
|
[
|
|
2379
2378
|
6,
|
|
2380
|
-
|
|
2381
|
-
7,
|
|
2382
|
-
"std",
|
|
2383
|
-
"select"
|
|
2384
|
-
],
|
|
2379
|
+
"std.select",
|
|
2385
2380
|
[
|
|
2386
2381
|
[
|
|
2387
2382
|
6,
|
|
2388
|
-
|
|
2389
|
-
7,
|
|
2390
|
-
"d",
|
|
2391
|
-
"f32"
|
|
2392
|
-
],
|
|
2383
|
+
"d.f32",
|
|
2393
2384
|
[[5, "1"]]
|
|
2394
2385
|
],
|
|
2395
2386
|
[
|
|
2396
2387
|
6,
|
|
2397
|
-
|
|
2398
|
-
7,
|
|
2399
|
-
"d",
|
|
2400
|
-
"f32"
|
|
2401
|
-
],
|
|
2388
|
+
"d.f32",
|
|
2402
2389
|
[[
|
|
2403
2390
|
4,
|
|
2404
2391
|
"-",
|
|
@@ -2419,19 +2406,11 @@ const trapezoidSdf = src_default.fn([
|
|
|
2419
2406
|
"s",
|
|
2420
2407
|
[
|
|
2421
2408
|
6,
|
|
2422
|
-
|
|
2423
|
-
7,
|
|
2424
|
-
"std",
|
|
2425
|
-
"select"
|
|
2426
|
-
],
|
|
2409
|
+
"std.select",
|
|
2427
2410
|
[
|
|
2428
2411
|
[
|
|
2429
2412
|
6,
|
|
2430
|
-
|
|
2431
|
-
7,
|
|
2432
|
-
"d",
|
|
2433
|
-
"f32"
|
|
2434
|
-
],
|
|
2413
|
+
"d.f32",
|
|
2435
2414
|
[[5, "1"]]
|
|
2436
2415
|
],
|
|
2437
2416
|
"sInner",
|
|
@@ -2490,31 +2469,27 @@ const trapezoidSdf = src_default.fn([
|
|
|
2490
2469
|
"*",
|
|
2491
2470
|
[
|
|
2492
2471
|
6,
|
|
2493
|
-
|
|
2494
|
-
7,
|
|
2495
|
-
"std",
|
|
2496
|
-
"sqrt"
|
|
2497
|
-
],
|
|
2472
|
+
"std.sqrt",
|
|
2498
2473
|
[[
|
|
2499
2474
|
6,
|
|
2500
|
-
|
|
2501
|
-
7,
|
|
2502
|
-
"std",
|
|
2503
|
-
"min"
|
|
2504
|
-
],
|
|
2475
|
+
"std.min",
|
|
2505
2476
|
["dca", "dcb"]
|
|
2506
2477
|
]]
|
|
2507
2478
|
]
|
|
2508
2479
|
]]
|
|
2509
|
-
]]
|
|
2510
|
-
"externalNames": ["std", "d"]
|
|
2480
|
+
]]
|
|
2511
2481
|
},
|
|
2512
|
-
externals:
|
|
2513
|
-
std:
|
|
2514
|
-
|
|
2515
|
-
|
|
2482
|
+
externals: {
|
|
2483
|
+
"std.abs": () => abs,
|
|
2484
|
+
"std.select": () => select,
|
|
2485
|
+
"std.min": () => min,
|
|
2486
|
+
"std.max": () => max,
|
|
2487
|
+
"std.clamp": () => clamp,
|
|
2488
|
+
"d.f32": () => f32,
|
|
2489
|
+
"std.sqrt": () => sqrt
|
|
2490
|
+
}
|
|
2516
2491
|
}) && $.f)({}));
|
|
2517
|
-
const heartSdf =
|
|
2492
|
+
const heartSdf = typegpu_default.fn([
|
|
2518
2493
|
f32,
|
|
2519
2494
|
f32,
|
|
2520
2495
|
f32
|
|
@@ -2535,7 +2510,7 @@ const heartSdf = src_default.fn([
|
|
|
2535
2510
|
const distB = __tsover_mul(sqrt(min(dot1, dot2v)), sign(__tsover_sub(px, py)));
|
|
2536
2511
|
return __tsover_mul(select(distB, distA, __tsover_add(px, py) > 1), S);
|
|
2537
2512
|
}), {
|
|
2538
|
-
v:
|
|
2513
|
+
v: 2,
|
|
2539
2514
|
name: void 0,
|
|
2540
2515
|
ast: {
|
|
2541
2516
|
"params": [
|
|
@@ -2570,11 +2545,7 @@ const heartSdf = src_default.fn([
|
|
|
2570
2545
|
1,
|
|
2571
2546
|
[
|
|
2572
2547
|
6,
|
|
2573
|
-
|
|
2574
|
-
7,
|
|
2575
|
-
"std",
|
|
2576
|
-
"abs"
|
|
2577
|
-
],
|
|
2548
|
+
"std.abs",
|
|
2578
2549
|
["dx"]
|
|
2579
2550
|
],
|
|
2580
2551
|
"/",
|
|
@@ -2632,11 +2603,7 @@ const heartSdf = src_default.fn([
|
|
|
2632
2603
|
1,
|
|
2633
2604
|
[
|
|
2634
2605
|
6,
|
|
2635
|
-
|
|
2636
|
-
7,
|
|
2637
|
-
"std",
|
|
2638
|
-
"sqrt"
|
|
2639
|
-
],
|
|
2606
|
+
"std.sqrt",
|
|
2640
2607
|
[[
|
|
2641
2608
|
1,
|
|
2642
2609
|
[
|
|
@@ -2695,11 +2662,7 @@ const heartSdf = src_default.fn([
|
|
|
2695
2662
|
1,
|
|
2696
2663
|
[
|
|
2697
2664
|
6,
|
|
2698
|
-
|
|
2699
|
-
7,
|
|
2700
|
-
"std",
|
|
2701
|
-
"max"
|
|
2702
|
-
],
|
|
2665
|
+
"std.max",
|
|
2703
2666
|
[[
|
|
2704
2667
|
1,
|
|
2705
2668
|
"px",
|
|
@@ -2758,29 +2721,17 @@ const heartSdf = src_default.fn([
|
|
|
2758
2721
|
1,
|
|
2759
2722
|
[
|
|
2760
2723
|
6,
|
|
2761
|
-
|
|
2762
|
-
7,
|
|
2763
|
-
"std",
|
|
2764
|
-
"sqrt"
|
|
2765
|
-
],
|
|
2724
|
+
"std.sqrt",
|
|
2766
2725
|
[[
|
|
2767
2726
|
6,
|
|
2768
|
-
|
|
2769
|
-
7,
|
|
2770
|
-
"std",
|
|
2771
|
-
"min"
|
|
2772
|
-
],
|
|
2727
|
+
"std.min",
|
|
2773
2728
|
["dot1", "dot2v"]
|
|
2774
2729
|
]]
|
|
2775
2730
|
],
|
|
2776
2731
|
"*",
|
|
2777
2732
|
[
|
|
2778
2733
|
6,
|
|
2779
|
-
|
|
2780
|
-
7,
|
|
2781
|
-
"std",
|
|
2782
|
-
"sign"
|
|
2783
|
-
],
|
|
2734
|
+
"std.sign",
|
|
2784
2735
|
[[
|
|
2785
2736
|
1,
|
|
2786
2737
|
"px",
|
|
@@ -2794,11 +2745,7 @@ const heartSdf = src_default.fn([
|
|
|
2794
2745
|
1,
|
|
2795
2746
|
[
|
|
2796
2747
|
6,
|
|
2797
|
-
|
|
2798
|
-
7,
|
|
2799
|
-
"std",
|
|
2800
|
-
"select"
|
|
2801
|
-
],
|
|
2748
|
+
"std.select",
|
|
2802
2749
|
[
|
|
2803
2750
|
"distB",
|
|
2804
2751
|
"distA",
|
|
@@ -2818,15 +2765,19 @@ const heartSdf = src_default.fn([
|
|
|
2818
2765
|
"*",
|
|
2819
2766
|
"S"
|
|
2820
2767
|
]]
|
|
2821
|
-
]]
|
|
2822
|
-
"externalNames": ["std", "SQRT2_OVER_4"]
|
|
2768
|
+
]]
|
|
2823
2769
|
},
|
|
2824
|
-
externals:
|
|
2825
|
-
std:
|
|
2826
|
-
|
|
2827
|
-
|
|
2770
|
+
externals: {
|
|
2771
|
+
"std.abs": () => abs,
|
|
2772
|
+
"std.sqrt": () => sqrt,
|
|
2773
|
+
"SQRT2_OVER_4": () => SQRT2_OVER_4,
|
|
2774
|
+
"std.max": () => max,
|
|
2775
|
+
"std.min": () => min,
|
|
2776
|
+
"std.sign": () => sign,
|
|
2777
|
+
"std.select": () => select
|
|
2778
|
+
}
|
|
2828
2779
|
}) && $.f)({}));
|
|
2829
|
-
const arcSdf =
|
|
2780
|
+
const arcSdf = typegpu_default.fn([
|
|
2830
2781
|
f32,
|
|
2831
2782
|
f32,
|
|
2832
2783
|
f32,
|
|
@@ -2843,7 +2794,7 @@ const arcSdf = src_default.fn([
|
|
|
2843
2794
|
const m = sqrt(__tsover_add(__tsover_mul(mx, mx), __tsover_mul(my, my)));
|
|
2844
2795
|
return max(l, __tsover_mul(m, sign(__tsover_sub(__tsover_mul(cy, px), __tsover_mul(cx, dy)))));
|
|
2845
2796
|
}), {
|
|
2846
|
-
v:
|
|
2797
|
+
v: 2,
|
|
2847
2798
|
name: void 0,
|
|
2848
2799
|
ast: {
|
|
2849
2800
|
"params": [
|
|
@@ -2870,11 +2821,7 @@ const arcSdf = src_default.fn([
|
|
|
2870
2821
|
"px",
|
|
2871
2822
|
[
|
|
2872
2823
|
6,
|
|
2873
|
-
|
|
2874
|
-
7,
|
|
2875
|
-
"std",
|
|
2876
|
-
"abs"
|
|
2877
|
-
],
|
|
2824
|
+
"std.abs",
|
|
2878
2825
|
["dx"]
|
|
2879
2826
|
]
|
|
2880
2827
|
],
|
|
@@ -2883,11 +2830,7 @@ const arcSdf = src_default.fn([
|
|
|
2883
2830
|
"cx",
|
|
2884
2831
|
[
|
|
2885
2832
|
6,
|
|
2886
|
-
|
|
2887
|
-
7,
|
|
2888
|
-
"std",
|
|
2889
|
-
"sin"
|
|
2890
|
-
],
|
|
2833
|
+
"std.sin",
|
|
2891
2834
|
["halfAngle"]
|
|
2892
2835
|
]
|
|
2893
2836
|
],
|
|
@@ -2896,11 +2839,7 @@ const arcSdf = src_default.fn([
|
|
|
2896
2839
|
"cy",
|
|
2897
2840
|
[
|
|
2898
2841
|
6,
|
|
2899
|
-
|
|
2900
|
-
7,
|
|
2901
|
-
"std",
|
|
2902
|
-
"cos"
|
|
2903
|
-
],
|
|
2842
|
+
"std.cos",
|
|
2904
2843
|
["halfAngle"]
|
|
2905
2844
|
]
|
|
2906
2845
|
],
|
|
@@ -2911,11 +2850,7 @@ const arcSdf = src_default.fn([
|
|
|
2911
2850
|
1,
|
|
2912
2851
|
[
|
|
2913
2852
|
6,
|
|
2914
|
-
|
|
2915
|
-
7,
|
|
2916
|
-
"std",
|
|
2917
|
-
"sqrt"
|
|
2918
|
-
],
|
|
2853
|
+
"std.sqrt",
|
|
2919
2854
|
[[
|
|
2920
2855
|
1,
|
|
2921
2856
|
[
|
|
@@ -2942,11 +2877,7 @@ const arcSdf = src_default.fn([
|
|
|
2942
2877
|
"clamped",
|
|
2943
2878
|
[
|
|
2944
2879
|
6,
|
|
2945
|
-
|
|
2946
|
-
7,
|
|
2947
|
-
"std",
|
|
2948
|
-
"clamp"
|
|
2949
|
-
],
|
|
2880
|
+
"std.clamp",
|
|
2950
2881
|
[
|
|
2951
2882
|
[
|
|
2952
2883
|
1,
|
|
@@ -3004,11 +2935,7 @@ const arcSdf = src_default.fn([
|
|
|
3004
2935
|
"m",
|
|
3005
2936
|
[
|
|
3006
2937
|
6,
|
|
3007
|
-
|
|
3008
|
-
7,
|
|
3009
|
-
"std",
|
|
3010
|
-
"sqrt"
|
|
3011
|
-
],
|
|
2938
|
+
"std.sqrt",
|
|
3012
2939
|
[[
|
|
3013
2940
|
1,
|
|
3014
2941
|
[
|
|
@@ -3029,22 +2956,14 @@ const arcSdf = src_default.fn([
|
|
|
3029
2956
|
],
|
|
3030
2957
|
[10, [
|
|
3031
2958
|
6,
|
|
3032
|
-
|
|
3033
|
-
7,
|
|
3034
|
-
"std",
|
|
3035
|
-
"max"
|
|
3036
|
-
],
|
|
2959
|
+
"std.max",
|
|
3037
2960
|
["l", [
|
|
3038
2961
|
1,
|
|
3039
2962
|
"m",
|
|
3040
2963
|
"*",
|
|
3041
2964
|
[
|
|
3042
2965
|
6,
|
|
3043
|
-
|
|
3044
|
-
7,
|
|
3045
|
-
"std",
|
|
3046
|
-
"sign"
|
|
3047
|
-
],
|
|
2966
|
+
"std.sign",
|
|
3048
2967
|
[[
|
|
3049
2968
|
1,
|
|
3050
2969
|
[
|
|
@@ -3064,12 +2983,19 @@ const arcSdf = src_default.fn([
|
|
|
3064
2983
|
]
|
|
3065
2984
|
]]
|
|
3066
2985
|
]]
|
|
3067
|
-
]]
|
|
3068
|
-
"externalNames": ["std"]
|
|
2986
|
+
]]
|
|
3069
2987
|
},
|
|
3070
|
-
externals:
|
|
2988
|
+
externals: {
|
|
2989
|
+
"std.abs": () => abs,
|
|
2990
|
+
"std.sin": () => sin,
|
|
2991
|
+
"std.cos": () => cos,
|
|
2992
|
+
"std.sqrt": () => sqrt,
|
|
2993
|
+
"std.clamp": () => clamp,
|
|
2994
|
+
"std.max": () => max,
|
|
2995
|
+
"std.sign": () => sign
|
|
2996
|
+
}
|
|
3071
2997
|
}) && $.f)({}));
|
|
3072
|
-
const teardropSdf =
|
|
2998
|
+
const teardropSdf = typegpu_default.fn([
|
|
3073
2999
|
f32,
|
|
3074
3000
|
f32,
|
|
3075
3001
|
f32,
|
|
@@ -3088,7 +3014,7 @@ const teardropSdf = src_default.fn([
|
|
|
3088
3014
|
const cap1 = sqrt(__tsover_add(__tsover_mul(qx, qx), __tsover_mul(qyTip, qyTip)));
|
|
3089
3015
|
return select(select(__tsover_sub(__tsover_add(__tsover_mul(qx, a), __tsover_mul(qy, b)), radius), cap1, k > __tsover_mul(a, h)), cap0, k < 0);
|
|
3090
3016
|
}), {
|
|
3091
|
-
v:
|
|
3017
|
+
v: 2,
|
|
3092
3018
|
name: void 0,
|
|
3093
3019
|
ast: {
|
|
3094
3020
|
"params": [
|
|
@@ -3130,11 +3056,7 @@ const teardropSdf = src_default.fn([
|
|
|
3130
3056
|
"qx",
|
|
3131
3057
|
[
|
|
3132
3058
|
6,
|
|
3133
|
-
|
|
3134
|
-
7,
|
|
3135
|
-
"std",
|
|
3136
|
-
"abs"
|
|
3137
|
-
],
|
|
3059
|
+
"std.abs",
|
|
3138
3060
|
["dx"]
|
|
3139
3061
|
]
|
|
3140
3062
|
],
|
|
@@ -3162,11 +3084,7 @@ const teardropSdf = src_default.fn([
|
|
|
3162
3084
|
"hSafe",
|
|
3163
3085
|
[
|
|
3164
3086
|
6,
|
|
3165
|
-
|
|
3166
|
-
7,
|
|
3167
|
-
"std",
|
|
3168
|
-
"max"
|
|
3169
|
-
],
|
|
3087
|
+
"std.max",
|
|
3170
3088
|
["h", [5, "0.0001"]]
|
|
3171
3089
|
]
|
|
3172
3090
|
],
|
|
@@ -3185,18 +3103,10 @@ const teardropSdf = src_default.fn([
|
|
|
3185
3103
|
"a",
|
|
3186
3104
|
[
|
|
3187
3105
|
6,
|
|
3188
|
-
|
|
3189
|
-
7,
|
|
3190
|
-
"std",
|
|
3191
|
-
"sqrt"
|
|
3192
|
-
],
|
|
3106
|
+
"std.sqrt",
|
|
3193
3107
|
[[
|
|
3194
3108
|
6,
|
|
3195
|
-
|
|
3196
|
-
7,
|
|
3197
|
-
"std",
|
|
3198
|
-
"max"
|
|
3199
|
-
],
|
|
3109
|
+
"std.max",
|
|
3200
3110
|
[[
|
|
3201
3111
|
1,
|
|
3202
3112
|
[5, "1"],
|
|
@@ -3247,11 +3157,7 @@ const teardropSdf = src_default.fn([
|
|
|
3247
3157
|
1,
|
|
3248
3158
|
[
|
|
3249
3159
|
6,
|
|
3250
|
-
|
|
3251
|
-
7,
|
|
3252
|
-
"std",
|
|
3253
|
-
"sqrt"
|
|
3254
|
-
],
|
|
3160
|
+
"std.sqrt",
|
|
3255
3161
|
[[
|
|
3256
3162
|
1,
|
|
3257
3163
|
[
|
|
@@ -3288,11 +3194,7 @@ const teardropSdf = src_default.fn([
|
|
|
3288
3194
|
"cap1",
|
|
3289
3195
|
[
|
|
3290
3196
|
6,
|
|
3291
|
-
|
|
3292
|
-
7,
|
|
3293
|
-
"std",
|
|
3294
|
-
"sqrt"
|
|
3295
|
-
],
|
|
3197
|
+
"std.sqrt",
|
|
3296
3198
|
[[
|
|
3297
3199
|
1,
|
|
3298
3200
|
[
|
|
@@ -3338,19 +3240,11 @@ const teardropSdf = src_default.fn([
|
|
|
3338
3240
|
],
|
|
3339
3241
|
[10, [
|
|
3340
3242
|
6,
|
|
3341
|
-
|
|
3342
|
-
7,
|
|
3343
|
-
"std",
|
|
3344
|
-
"select"
|
|
3345
|
-
],
|
|
3243
|
+
"std.select",
|
|
3346
3244
|
[
|
|
3347
3245
|
[
|
|
3348
3246
|
6,
|
|
3349
|
-
|
|
3350
|
-
7,
|
|
3351
|
-
"std",
|
|
3352
|
-
"select"
|
|
3353
|
-
],
|
|
3247
|
+
"std.select",
|
|
3354
3248
|
[
|
|
3355
3249
|
"body",
|
|
3356
3250
|
"cap1",
|
|
@@ -3376,12 +3270,16 @@ const teardropSdf = src_default.fn([
|
|
|
3376
3270
|
]
|
|
3377
3271
|
]
|
|
3378
3272
|
]]
|
|
3379
|
-
]]
|
|
3380
|
-
"externalNames": ["std"]
|
|
3273
|
+
]]
|
|
3381
3274
|
},
|
|
3382
|
-
externals:
|
|
3275
|
+
externals: {
|
|
3276
|
+
"std.abs": () => abs,
|
|
3277
|
+
"std.max": () => max,
|
|
3278
|
+
"std.sqrt": () => sqrt,
|
|
3279
|
+
"std.select": () => select
|
|
3280
|
+
}
|
|
3383
3281
|
}) && $.f)({}));
|
|
3384
|
-
const parallelogramSdf =
|
|
3282
|
+
const parallelogramSdf = typegpu_default.fn([
|
|
3385
3283
|
f32,
|
|
3386
3284
|
f32,
|
|
3387
3285
|
f32,
|
|
@@ -3413,7 +3311,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3413
3311
|
const finalY = min(dY, __tsover_sub(__tsover_mul(wi, he), abs(s)));
|
|
3414
3312
|
return __tsover_mul(sqrt(finalX), sign(__tsover_mul(finalY, -1)));
|
|
3415
3313
|
}), {
|
|
3416
|
-
v:
|
|
3314
|
+
v: 2,
|
|
3417
3315
|
name: void 0,
|
|
3418
3316
|
ast: {
|
|
3419
3317
|
"params": [
|
|
@@ -3464,11 +3362,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3464
3362
|
"px0",
|
|
3465
3363
|
[
|
|
3466
3364
|
6,
|
|
3467
|
-
|
|
3468
|
-
7,
|
|
3469
|
-
"std",
|
|
3470
|
-
"select"
|
|
3471
|
-
],
|
|
3365
|
+
"std.select",
|
|
3472
3366
|
[
|
|
3473
3367
|
"dx",
|
|
3474
3368
|
[
|
|
@@ -3490,11 +3384,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3490
3384
|
"py0",
|
|
3491
3385
|
[
|
|
3492
3386
|
6,
|
|
3493
|
-
|
|
3494
|
-
7,
|
|
3495
|
-
"std",
|
|
3496
|
-
"select"
|
|
3497
|
-
],
|
|
3387
|
+
"std.select",
|
|
3498
3388
|
[
|
|
3499
3389
|
"dy",
|
|
3500
3390
|
[
|
|
@@ -3540,11 +3430,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3540
3430
|
"-",
|
|
3541
3431
|
[
|
|
3542
3432
|
6,
|
|
3543
|
-
|
|
3544
|
-
7,
|
|
3545
|
-
"std",
|
|
3546
|
-
"clamp"
|
|
3547
|
-
],
|
|
3433
|
+
"std.clamp",
|
|
3548
3434
|
[
|
|
3549
3435
|
"wx0",
|
|
3550
3436
|
[
|
|
@@ -3631,11 +3517,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3631
3517
|
"px",
|
|
3632
3518
|
[
|
|
3633
3519
|
6,
|
|
3634
|
-
|
|
3635
|
-
7,
|
|
3636
|
-
"std",
|
|
3637
|
-
"select"
|
|
3638
|
-
],
|
|
3520
|
+
"std.select",
|
|
3639
3521
|
[
|
|
3640
3522
|
"px0",
|
|
3641
3523
|
[
|
|
@@ -3657,11 +3539,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3657
3539
|
"py",
|
|
3658
3540
|
[
|
|
3659
3541
|
6,
|
|
3660
|
-
|
|
3661
|
-
7,
|
|
3662
|
-
"std",
|
|
3663
|
-
"select"
|
|
3664
|
-
],
|
|
3542
|
+
"std.select",
|
|
3665
3543
|
[
|
|
3666
3544
|
"py0",
|
|
3667
3545
|
[
|
|
@@ -3713,11 +3591,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3713
3591
|
"dotee",
|
|
3714
3592
|
[
|
|
3715
3593
|
6,
|
|
3716
|
-
|
|
3717
|
-
7,
|
|
3718
|
-
"std",
|
|
3719
|
-
"max"
|
|
3720
|
-
],
|
|
3594
|
+
"std.max",
|
|
3721
3595
|
[[
|
|
3722
3596
|
1,
|
|
3723
3597
|
[
|
|
@@ -3741,11 +3615,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3741
3615
|
"tt",
|
|
3742
3616
|
[
|
|
3743
3617
|
6,
|
|
3744
|
-
|
|
3745
|
-
7,
|
|
3746
|
-
"std",
|
|
3747
|
-
"clamp"
|
|
3748
|
-
],
|
|
3618
|
+
"std.clamp",
|
|
3749
3619
|
[
|
|
3750
3620
|
[
|
|
3751
3621
|
1,
|
|
@@ -3797,11 +3667,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3797
3667
|
"finalX",
|
|
3798
3668
|
[
|
|
3799
3669
|
6,
|
|
3800
|
-
|
|
3801
|
-
7,
|
|
3802
|
-
"std",
|
|
3803
|
-
"min"
|
|
3804
|
-
],
|
|
3670
|
+
"std.min",
|
|
3805
3671
|
["dX", [
|
|
3806
3672
|
1,
|
|
3807
3673
|
[
|
|
@@ -3825,11 +3691,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3825
3691
|
"finalY",
|
|
3826
3692
|
[
|
|
3827
3693
|
6,
|
|
3828
|
-
|
|
3829
|
-
7,
|
|
3830
|
-
"std",
|
|
3831
|
-
"min"
|
|
3832
|
-
],
|
|
3694
|
+
"std.min",
|
|
3833
3695
|
["dY", [
|
|
3834
3696
|
1,
|
|
3835
3697
|
[
|
|
@@ -3841,11 +3703,7 @@ const parallelogramSdf = src_default.fn([
|
|
|
3841
3703
|
"-",
|
|
3842
3704
|
[
|
|
3843
3705
|
6,
|
|
3844
|
-
|
|
3845
|
-
7,
|
|
3846
|
-
"std",
|
|
3847
|
-
"abs"
|
|
3848
|
-
],
|
|
3706
|
+
"std.abs",
|
|
3849
3707
|
["s"]
|
|
3850
3708
|
]
|
|
3851
3709
|
]]
|
|
@@ -3855,21 +3713,13 @@ const parallelogramSdf = src_default.fn([
|
|
|
3855
3713
|
1,
|
|
3856
3714
|
[
|
|
3857
3715
|
6,
|
|
3858
|
-
|
|
3859
|
-
7,
|
|
3860
|
-
"std",
|
|
3861
|
-
"sqrt"
|
|
3862
|
-
],
|
|
3716
|
+
"std.sqrt",
|
|
3863
3717
|
["finalX"]
|
|
3864
3718
|
],
|
|
3865
3719
|
"*",
|
|
3866
3720
|
[
|
|
3867
3721
|
6,
|
|
3868
|
-
|
|
3869
|
-
7,
|
|
3870
|
-
"std",
|
|
3871
|
-
"sign"
|
|
3872
|
-
],
|
|
3722
|
+
"std.sign",
|
|
3873
3723
|
[[
|
|
3874
3724
|
1,
|
|
3875
3725
|
"finalY",
|
|
@@ -3882,12 +3732,19 @@ const parallelogramSdf = src_default.fn([
|
|
|
3882
3732
|
]]
|
|
3883
3733
|
]
|
|
3884
3734
|
]]
|
|
3885
|
-
]]
|
|
3886
|
-
"externalNames": ["std"]
|
|
3735
|
+
]]
|
|
3887
3736
|
},
|
|
3888
|
-
externals:
|
|
3737
|
+
externals: {
|
|
3738
|
+
"std.select": () => select,
|
|
3739
|
+
"std.clamp": () => clamp,
|
|
3740
|
+
"std.max": () => max,
|
|
3741
|
+
"std.min": () => min,
|
|
3742
|
+
"std.abs": () => abs,
|
|
3743
|
+
"std.sqrt": () => sqrt,
|
|
3744
|
+
"std.sign": () => sign
|
|
3745
|
+
}
|
|
3889
3746
|
}) && $.f)({}));
|
|
3890
|
-
const shapeLocalCoords =
|
|
3747
|
+
const shapeLocalCoords = typegpu_default.fn([
|
|
3891
3748
|
vec2f,
|
|
3892
3749
|
f32,
|
|
3893
3750
|
vec2f,
|
|
@@ -3903,7 +3760,7 @@ const shapeLocalCoords = src_default.fn([
|
|
|
3903
3760
|
const sinR = sin(rotRad);
|
|
3904
3761
|
return vec2f(__tsover_add(__tsover_mul(dx, cosR), __tsover_mul(dy, sinR)), __tsover_sub(__tsover_mul(dy, cosR), __tsover_mul(dx, sinR)));
|
|
3905
3762
|
}), {
|
|
3906
|
-
v:
|
|
3763
|
+
v: 2,
|
|
3907
3764
|
name: void 0,
|
|
3908
3765
|
ast: {
|
|
3909
3766
|
"params": [
|
|
@@ -3930,11 +3787,7 @@ const shapeLocalCoords = src_default.fn([
|
|
|
3930
3787
|
"aspectUV",
|
|
3931
3788
|
[
|
|
3932
3789
|
6,
|
|
3933
|
-
|
|
3934
|
-
7,
|
|
3935
|
-
"d",
|
|
3936
|
-
"vec2f"
|
|
3937
|
-
],
|
|
3790
|
+
"d.vec2f",
|
|
3938
3791
|
[[
|
|
3939
3792
|
1,
|
|
3940
3793
|
[
|
|
@@ -3956,11 +3809,7 @@ const shapeLocalCoords = src_default.fn([
|
|
|
3956
3809
|
"centerPos",
|
|
3957
3810
|
[
|
|
3958
3811
|
6,
|
|
3959
|
-
|
|
3960
|
-
7,
|
|
3961
|
-
"d",
|
|
3962
|
-
"vec2f"
|
|
3963
|
-
],
|
|
3812
|
+
"d.vec2f",
|
|
3964
3813
|
[[
|
|
3965
3814
|
1,
|
|
3966
3815
|
[
|
|
@@ -4033,11 +3882,7 @@ const shapeLocalCoords = src_default.fn([
|
|
|
4033
3882
|
"cosR",
|
|
4034
3883
|
[
|
|
4035
3884
|
6,
|
|
4036
|
-
|
|
4037
|
-
7,
|
|
4038
|
-
"std",
|
|
4039
|
-
"cos"
|
|
4040
|
-
],
|
|
3885
|
+
"std.cos",
|
|
4041
3886
|
["rotRad"]
|
|
4042
3887
|
]
|
|
4043
3888
|
],
|
|
@@ -4046,11 +3891,7 @@ const shapeLocalCoords = src_default.fn([
|
|
|
4046
3891
|
"sinR",
|
|
4047
3892
|
[
|
|
4048
3893
|
6,
|
|
4049
|
-
|
|
4050
|
-
7,
|
|
4051
|
-
"std",
|
|
4052
|
-
"sin"
|
|
4053
|
-
],
|
|
3894
|
+
"std.sin",
|
|
4054
3895
|
["rotRad"]
|
|
4055
3896
|
]
|
|
4056
3897
|
],
|
|
@@ -4096,31 +3937,23 @@ const shapeLocalCoords = src_default.fn([
|
|
|
4096
3937
|
],
|
|
4097
3938
|
[10, [
|
|
4098
3939
|
6,
|
|
4099
|
-
|
|
4100
|
-
7,
|
|
4101
|
-
"d",
|
|
4102
|
-
"vec2f"
|
|
4103
|
-
],
|
|
3940
|
+
"d.vec2f",
|
|
4104
3941
|
["rdx", "rdy"]
|
|
4105
3942
|
]]
|
|
4106
|
-
]]
|
|
4107
|
-
"externalNames": [
|
|
4108
|
-
"d",
|
|
4109
|
-
"DEG_TO_RAD",
|
|
4110
|
-
"std"
|
|
4111
|
-
]
|
|
3943
|
+
]]
|
|
4112
3944
|
},
|
|
4113
|
-
externals:
|
|
4114
|
-
d:
|
|
4115
|
-
DEG_TO_RAD,
|
|
4116
|
-
std:
|
|
4117
|
-
|
|
3945
|
+
externals: {
|
|
3946
|
+
"d.vec2f": () => vec2f,
|
|
3947
|
+
"DEG_TO_RAD": () => DEG_TO_RAD,
|
|
3948
|
+
"std.cos": () => cos,
|
|
3949
|
+
"std.sin": () => sin
|
|
3950
|
+
}
|
|
4118
3951
|
}) && $.f)({}));
|
|
4119
3952
|
const ShapeMask = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(struct({
|
|
4120
3953
|
overallMask: f32,
|
|
4121
3954
|
strokeBlend: f32
|
|
4122
3955
|
}), "ShapeMask");
|
|
4123
|
-
const strokeMaskFromSdf =
|
|
3956
|
+
const strokeMaskFromSdf = typegpu_default.fn([
|
|
4124
3957
|
f32,
|
|
4125
3958
|
f32,
|
|
4126
3959
|
f32,
|
|
@@ -4142,7 +3975,7 @@ const strokeMaskFromSdf = src_default.fn([
|
|
|
4142
3975
|
strokeBlend: select(f32(0), blend, hasStroke)
|
|
4143
3976
|
});
|
|
4144
3977
|
}), {
|
|
4145
|
-
v:
|
|
3978
|
+
v: 2,
|
|
4146
3979
|
name: void 0,
|
|
4147
3980
|
ast: {
|
|
4148
3981
|
"params": [
|
|
@@ -4237,27 +4070,15 @@ const strokeMaskFromSdf = src_default.fn([
|
|
|
4237
4070
|
"strokeInner",
|
|
4238
4071
|
[
|
|
4239
4072
|
6,
|
|
4240
|
-
|
|
4241
|
-
7,
|
|
4242
|
-
"std",
|
|
4243
|
-
"select"
|
|
4244
|
-
],
|
|
4073
|
+
"std.select",
|
|
4245
4074
|
[
|
|
4246
4075
|
[
|
|
4247
4076
|
6,
|
|
4248
|
-
|
|
4249
|
-
7,
|
|
4250
|
-
"std",
|
|
4251
|
-
"select"
|
|
4252
|
-
],
|
|
4077
|
+
"std.select",
|
|
4253
4078
|
[
|
|
4254
4079
|
[
|
|
4255
4080
|
6,
|
|
4256
|
-
|
|
4257
|
-
7,
|
|
4258
|
-
"d",
|
|
4259
|
-
"f32"
|
|
4260
|
-
],
|
|
4081
|
+
"d.f32",
|
|
4261
4082
|
[[5, "0"]]
|
|
4262
4083
|
],
|
|
4263
4084
|
"negHalf",
|
|
@@ -4274,19 +4095,11 @@ const strokeMaskFromSdf = src_default.fn([
|
|
|
4274
4095
|
"strokeOuter",
|
|
4275
4096
|
[
|
|
4276
4097
|
6,
|
|
4277
|
-
|
|
4278
|
-
7,
|
|
4279
|
-
"std",
|
|
4280
|
-
"select"
|
|
4281
|
-
],
|
|
4098
|
+
"std.select",
|
|
4282
4099
|
[
|
|
4283
4100
|
[
|
|
4284
4101
|
6,
|
|
4285
|
-
|
|
4286
|
-
7,
|
|
4287
|
-
"std",
|
|
4288
|
-
"select"
|
|
4289
|
-
],
|
|
4102
|
+
"std.select",
|
|
4290
4103
|
[
|
|
4291
4104
|
"strokeThickness",
|
|
4292
4105
|
"halfThickness",
|
|
@@ -4295,11 +4108,7 @@ const strokeMaskFromSdf = src_default.fn([
|
|
|
4295
4108
|
],
|
|
4296
4109
|
[
|
|
4297
4110
|
6,
|
|
4298
|
-
|
|
4299
|
-
7,
|
|
4300
|
-
"d",
|
|
4301
|
-
"f32"
|
|
4302
|
-
],
|
|
4111
|
+
"d.f32",
|
|
4303
4112
|
[[5, "0"]]
|
|
4304
4113
|
],
|
|
4305
4114
|
"isInside"
|
|
@@ -4315,11 +4124,7 @@ const strokeMaskFromSdf = src_default.fn([
|
|
|
4315
4124
|
"-",
|
|
4316
4125
|
[
|
|
4317
4126
|
6,
|
|
4318
|
-
|
|
4319
|
-
7,
|
|
4320
|
-
"std",
|
|
4321
|
-
"smoothstep"
|
|
4322
|
-
],
|
|
4127
|
+
"std.smoothstep",
|
|
4323
4128
|
[
|
|
4324
4129
|
[
|
|
4325
4130
|
1,
|
|
@@ -4338,11 +4143,7 @@ const strokeMaskFromSdf = src_default.fn([
|
|
|
4338
4143
|
"blend",
|
|
4339
4144
|
[
|
|
4340
4145
|
6,
|
|
4341
|
-
|
|
4342
|
-
7,
|
|
4343
|
-
"std",
|
|
4344
|
-
"smoothstep"
|
|
4345
|
-
],
|
|
4146
|
+
"std.smoothstep",
|
|
4346
4147
|
[
|
|
4347
4148
|
[
|
|
4348
4149
|
1,
|
|
@@ -4360,19 +4161,11 @@ const strokeMaskFromSdf = src_default.fn([
|
|
|
4360
4161
|
"strokeBlend",
|
|
4361
4162
|
[
|
|
4362
4163
|
6,
|
|
4363
|
-
|
|
4364
|
-
7,
|
|
4365
|
-
"std",
|
|
4366
|
-
"select"
|
|
4367
|
-
],
|
|
4164
|
+
"std.select",
|
|
4368
4165
|
[
|
|
4369
4166
|
[
|
|
4370
4167
|
6,
|
|
4371
|
-
|
|
4372
|
-
7,
|
|
4373
|
-
"d",
|
|
4374
|
-
"f32"
|
|
4375
|
-
],
|
|
4168
|
+
"d.f32",
|
|
4376
4169
|
[[5, "0"]]
|
|
4377
4170
|
],
|
|
4378
4171
|
"blend",
|
|
@@ -4388,18 +4181,14 @@ const strokeMaskFromSdf = src_default.fn([
|
|
|
4388
4181
|
"strokeBlend": "strokeBlend"
|
|
4389
4182
|
}]]
|
|
4390
4183
|
]]
|
|
4391
|
-
]]
|
|
4392
|
-
"externalNames": [
|
|
4393
|
-
"std",
|
|
4394
|
-
"d",
|
|
4395
|
-
"ShapeMask"
|
|
4396
|
-
]
|
|
4184
|
+
]]
|
|
4397
4185
|
},
|
|
4398
|
-
externals:
|
|
4399
|
-
std:
|
|
4400
|
-
d:
|
|
4401
|
-
|
|
4402
|
-
|
|
4186
|
+
externals: {
|
|
4187
|
+
"std.select": () => select,
|
|
4188
|
+
"d.f32": () => f32,
|
|
4189
|
+
"std.smoothstep": () => smoothstep,
|
|
4190
|
+
"ShapeMask": () => ShapeMask
|
|
4191
|
+
}
|
|
4403
4192
|
}) && $.f)({}));
|
|
4404
4193
|
function fillStrokeColor(mask, fill, stroke, colorSpaceMode) {
|
|
4405
4194
|
const blended = call(mixColorsVariants[colorSpaceMode] ?? mixColorsLinear, "mixColors", [
|
|
@@ -4517,7 +4306,7 @@ function createSvgSdfSamplerWithGradients(params, shapeSdfUrl) {
|
|
|
4517
4306
|
}
|
|
4518
4307
|
const APERTURE_TO_HALFANGLE = .008726646259971648;
|
|
4519
4308
|
function buildAnalyticSdfFn(shapeType) {
|
|
4520
|
-
return
|
|
4309
|
+
return typegpu_default.fn([
|
|
4521
4310
|
vec2f,
|
|
4522
4311
|
f32,
|
|
4523
4312
|
f32,
|
|
@@ -4527,7 +4316,7 @@ function buildAnalyticSdfFn(shapeType) {
|
|
|
4527
4316
|
f32,
|
|
4528
4317
|
f32,
|
|
4529
4318
|
f32
|
|
4530
|
-
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, r, n, round, inner, rot, h, off, ap) => {
|
|
4319
|
+
], vec4f$1)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, r, n, round, inner, rot, h, off, ap) => {
|
|
4531
4320
|
"use gpu";
|
|
4532
4321
|
const dx = __tsover_sub(uv.x, .5);
|
|
4533
4322
|
const dy = __tsover_sub(uv.y, .5);
|
|
@@ -4552,9 +4341,9 @@ function buildAnalyticSdfFn(shapeType) {
|
|
|
4552
4341
|
else if (shapeType === "teardropSDF") dist = teardropSdf(rdx, rdy, r, h);
|
|
4553
4342
|
else if (shapeType === "parallelogramSDF") dist = parallelogramSdf(rdx, rdy, r, h, off);
|
|
4554
4343
|
else dist = circleSdf(rdx, rdy, r);
|
|
4555
|
-
return vec4f(dist, 0, 0, 1);
|
|
4344
|
+
return vec4f$1(dist, 0, 0, 1);
|
|
4556
4345
|
}), {
|
|
4557
|
-
v:
|
|
4346
|
+
v: 2,
|
|
4558
4347
|
name: void 0,
|
|
4559
4348
|
ast: {
|
|
4560
4349
|
"params": [
|
|
@@ -4639,11 +4428,7 @@ function buildAnalyticSdfFn(shapeType) {
|
|
|
4639
4428
|
"cosR",
|
|
4640
4429
|
[
|
|
4641
4430
|
6,
|
|
4642
|
-
|
|
4643
|
-
7,
|
|
4644
|
-
"std",
|
|
4645
|
-
"cos"
|
|
4646
|
-
],
|
|
4431
|
+
"std.cos",
|
|
4647
4432
|
["rotRad"]
|
|
4648
4433
|
]
|
|
4649
4434
|
],
|
|
@@ -4652,11 +4437,7 @@ function buildAnalyticSdfFn(shapeType) {
|
|
|
4652
4437
|
"sinR",
|
|
4653
4438
|
[
|
|
4654
4439
|
6,
|
|
4655
|
-
|
|
4656
|
-
7,
|
|
4657
|
-
"std",
|
|
4658
|
-
"sin"
|
|
4659
|
-
],
|
|
4440
|
+
"std.sin",
|
|
4660
4441
|
["rotRad"]
|
|
4661
4442
|
]
|
|
4662
4443
|
],
|
|
@@ -4705,11 +4486,7 @@ function buildAnalyticSdfFn(shapeType) {
|
|
|
4705
4486
|
"dist",
|
|
4706
4487
|
[
|
|
4707
4488
|
6,
|
|
4708
|
-
|
|
4709
|
-
7,
|
|
4710
|
-
"d",
|
|
4711
|
-
"f32"
|
|
4712
|
-
],
|
|
4489
|
+
"d.f32",
|
|
4713
4490
|
[[5, "0"]]
|
|
4714
4491
|
]
|
|
4715
4492
|
],
|
|
@@ -4727,11 +4504,7 @@ function buildAnalyticSdfFn(shapeType) {
|
|
|
4727
4504
|
"=",
|
|
4728
4505
|
[
|
|
4729
4506
|
6,
|
|
4730
|
-
|
|
4731
|
-
7,
|
|
4732
|
-
"std",
|
|
4733
|
-
"mix"
|
|
4734
|
-
],
|
|
4507
|
+
"std.mix",
|
|
4735
4508
|
[
|
|
4736
4509
|
[
|
|
4737
4510
|
6,
|
|
@@ -5096,11 +4869,7 @@ function buildAnalyticSdfFn(shapeType) {
|
|
|
5096
4869
|
],
|
|
5097
4870
|
[10, [
|
|
5098
4871
|
6,
|
|
5099
|
-
|
|
5100
|
-
7,
|
|
5101
|
-
"d",
|
|
5102
|
-
"vec4f"
|
|
5103
|
-
],
|
|
4872
|
+
"d.vec4f",
|
|
5104
4873
|
[
|
|
5105
4874
|
"dist",
|
|
5106
4875
|
[5, "0"],
|
|
@@ -5108,52 +4877,33 @@ function buildAnalyticSdfFn(shapeType) {
|
|
|
5108
4877
|
[5, "1"]
|
|
5109
4878
|
]
|
|
5110
4879
|
]]
|
|
5111
|
-
]]
|
|
5112
|
-
"externalNames": [
|
|
5113
|
-
"DEG_TO_RAD",
|
|
5114
|
-
"std",
|
|
5115
|
-
"d",
|
|
5116
|
-
"shapeType",
|
|
5117
|
-
"polygonSdf",
|
|
5118
|
-
"circleSdf",
|
|
5119
|
-
"flowerSdf",
|
|
5120
|
-
"ringSdf",
|
|
5121
|
-
"crossSdf",
|
|
5122
|
-
"starSdf",
|
|
5123
|
-
"roundedRectSdf",
|
|
5124
|
-
"ellipseSdf",
|
|
5125
|
-
"vesicaSdf",
|
|
5126
|
-
"crescentSdf",
|
|
5127
|
-
"trapezoidSdf",
|
|
5128
|
-
"heartSdf",
|
|
5129
|
-
"arcSdf",
|
|
5130
|
-
"APERTURE_TO_HALFANGLE",
|
|
5131
|
-
"teardropSdf",
|
|
5132
|
-
"parallelogramSdf"
|
|
5133
|
-
]
|
|
4880
|
+
]]
|
|
5134
4881
|
},
|
|
5135
|
-
externals:
|
|
5136
|
-
DEG_TO_RAD,
|
|
5137
|
-
std:
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
4882
|
+
externals: {
|
|
4883
|
+
"DEG_TO_RAD": () => DEG_TO_RAD,
|
|
4884
|
+
"std.cos": () => cos,
|
|
4885
|
+
"std.sin": () => sin,
|
|
4886
|
+
"d.f32": () => f32,
|
|
4887
|
+
"shapeType": () => shapeType,
|
|
4888
|
+
"std.mix": () => mix,
|
|
4889
|
+
"polygonSdf": () => polygonSdf,
|
|
4890
|
+
"circleSdf": () => circleSdf,
|
|
4891
|
+
"flowerSdf": () => flowerSdf,
|
|
4892
|
+
"ringSdf": () => ringSdf,
|
|
4893
|
+
"crossSdf": () => crossSdf,
|
|
4894
|
+
"starSdf": () => starSdf,
|
|
4895
|
+
"roundedRectSdf": () => roundedRectSdf,
|
|
4896
|
+
"ellipseSdf": () => ellipseSdf,
|
|
4897
|
+
"vesicaSdf": () => vesicaSdf,
|
|
4898
|
+
"crescentSdf": () => crescentSdf,
|
|
4899
|
+
"trapezoidSdf": () => trapezoidSdf,
|
|
4900
|
+
"heartSdf": () => heartSdf,
|
|
4901
|
+
"arcSdf": () => arcSdf,
|
|
4902
|
+
"APERTURE_TO_HALFANGLE": () => .008726646259971648,
|
|
4903
|
+
"teardropSdf": () => teardropSdf,
|
|
4904
|
+
"parallelogramSdf": () => parallelogramSdf,
|
|
4905
|
+
"d.vec4f": () => vec4f$1
|
|
4906
|
+
}
|
|
5157
4907
|
}) && $.f)({})).$name(`analyticSdf_${shapeType}`);
|
|
5158
4908
|
}
|
|
5159
4909
|
function createAnalyticSdfSampler(shapeType, sub, _patternMode = "none") {
|
|
@@ -5272,4 +5022,4 @@ function isMobileGpuViewport() {
|
|
|
5272
5022
|
function maxPixelRatioForDevice() {
|
|
5273
5023
|
return isMobileGpuViewport() ? 1.5 : 2;
|
|
5274
5024
|
}
|
|
5275
|
-
export { toHalfFloat as A, sdf_exports as C, teardropSdf as D, strokeMaskFromSdf as E, createGuardedCompute as M, createPingPongPair as N, trapezoidSdf as O, createStateBuffer as P, roundedRectSdf as S, starSdf as T, flowerSdf as _, ShapeMask as a, polygonSdf as b, createAnalyticSdfSampler as c, createSvgSdfSamplerWithGradients as d, crescentSdf as f, fillStrokeColor as g, ellipseSdf as h, SVG_SDF_SIZE as i, createComputeDispatcher as j, vesicaSdf as k, createSdfDataTexture as l, driveAnalyticSubProps as m, maxPixelRatioForDevice as n, arcSdf as o, crossSdf as p, APERTURE_TO_HALFANGLE as r, circleSdf as s, isMobileGpuViewport as t, createSvgSdfSampler as u, heartSdf as v, shapeLocalCoords as w, ringSdf as x, parallelogramSdf as y };
|
|
5025
|
+
export { toHalfFloat as A, sdf_exports as C, teardropSdf as D, strokeMaskFromSdf as E, textureDimensions as F, textureLoad as I, textureSampleLevel as L, createGuardedCompute as M, createPingPongPair as N, trapezoidSdf as O, createStateBuffer as P, textureStore as R, roundedRectSdf as S, starSdf as T, flowerSdf as _, ShapeMask as a, polygonSdf as b, createAnalyticSdfSampler as c, createSvgSdfSamplerWithGradients as d, crescentSdf as f, fillStrokeColor as g, ellipseSdf as h, SVG_SDF_SIZE as i, createComputeDispatcher as j, vesicaSdf as k, createSdfDataTexture as l, driveAnalyticSubProps as m, maxPixelRatioForDevice as n, arcSdf as o, crossSdf as p, APERTURE_TO_HALFANGLE as r, circleSdf as s, isMobileGpuViewport as t, createSvgSdfSampler as u, heartSdf as v, shapeLocalCoords as w, ringSdf as x, parallelogramSdf as y };
|