shaders 3.0.451 → 3.0.453

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.
Files changed (519) hide show
  1. package/dist/cli.js +2 -2
  2. package/dist/core/{AngularBlur-4jt7bNoF.js → AngularBlur-B0m-LKoD.js} +2 -2
  3. package/dist/core/{Arc-DXIfbBgd.js → Arc-DhhcsMqr.js} +3 -3
  4. package/dist/core/{Ascii-GDof03Ca.js → Ascii-BiFuRRQ1.js} +2 -2
  5. package/dist/core/{Aurora-CS4vewUW.js → Aurora-B35I8qRz.js} +4 -4
  6. package/dist/core/{BarShift-BtnYLQ0B.js → BarShift-C_waFkRO.js} +3 -3
  7. package/dist/core/{BarnDoors-Dw9K-amf.js → BarnDoors-Cnyfsla8.js} +2 -2
  8. package/dist/core/{Beam-D_cyaMjJ.js → Beam-BPBmQMGD.js} +2 -2
  9. package/dist/core/{Bend-CSs5UIh8.js → Bend-Bq1Qlhq4.js} +2 -2
  10. package/dist/core/{Blob-h25zA5WH.js → Blob-BtInePsq.js} +3 -3
  11. package/dist/core/{BlockDissolve-CKN_KvLP.js → BlockDissolve-i8V6gmZw.js} +3 -3
  12. package/dist/core/{BlockNoise-DhKyd_F7.js → BlockNoise-BfDNfyBP.js} +5 -5
  13. package/dist/core/{BlueNoise-Auhzq4x5.js → BlueNoise-CNLIGPMW.js} +4 -4
  14. package/dist/core/{Blur-CcxMqYsu.js → Blur-B8NcZJdr.js} +3 -3
  15. package/dist/core/{Boids-D51U46GF.js → Boids-D51ZdvH0.js} +5 -5
  16. package/dist/core/{BokehBlur-Cfaqbh3I.js → BokehBlur-DO4V8nZ-.js} +4 -4
  17. package/dist/core/{BrickPattern-tASwilX0.js → BrickPattern-D21Nqxcj.js} +3 -3
  18. package/dist/core/{BrightnessContrast-ZCKqJW7i.js → BrightnessContrast-QxVeVMih.js} +1 -1
  19. package/dist/core/{BrushedMetal-B6gSVB28.js → BrushedMetal-Xq4jMVz1.js} +142 -35
  20. package/dist/core/{Bulge-dCYtWP4S.js → Bulge-CdCqTfrp.js} +2 -2
  21. package/dist/core/{CRTScreen-CVY1lOGL.js → CRTScreen-D7WSk5fJ.js} +1 -1
  22. package/dist/core/{CarbonFiber-Do9EONKv.js → CarbonFiber-Dg-XleHg.js} +141 -34
  23. package/dist/core/{Chalkboard-0hyyGnYl.js → Chalkboard-B_YRavSR.js} +2 -2
  24. package/dist/core/{ChannelBlur-DcZKCKXi.js → ChannelBlur-BmEILWdn.js} +2 -2
  25. package/dist/core/{CheckerWipe-BIE62tJ1.js → CheckerWipe-Dbt7TTDK.js} +2 -2
  26. package/dist/core/{Checkerboard-CRnfu63u.js → Checkerboard-BnWdSZLM.js} +2 -2
  27. package/dist/core/{Chevron-Ld_v4z9T.js → Chevron-DsJK3THV.js} +3 -3
  28. package/dist/core/{ChromaFlow-CTWeauIr.js → ChromaFlow-Bj4rfeWl.js} +2 -2
  29. package/dist/core/{ChromaticAberration-CxuOb68m.js → ChromaticAberration-C2UtSgN3.js} +2 -2
  30. package/dist/core/Chrome-CSrC5yk_.js +3692 -0
  31. package/dist/core/{Circle-XP1B5rsN.js → Circle-CJ4IbgBH.js} +3 -3
  32. package/dist/core/{ColorWheel-CFU_OmOW.js → ColorWheel-C_YLOL93.js} +3 -3
  33. package/dist/core/{CompressionArtifacts-Bc9xTdQP.js → CompressionArtifacts-BXto-pLr.js} +2 -2
  34. package/dist/core/{ConcentricSpin-DTJytpAk.js → ConcentricSpin-1tArUXYX.js} +3 -3
  35. package/dist/core/{ConicGradient-C-4uDmQj.js → ConicGradient-Tw-pg593.js} +3 -3
  36. package/dist/core/{ContourLines-C8p6f-1y.js → ContourLines-CBFm0hjl.js} +2 -2
  37. package/dist/core/{CornerPin-CB92kX10.js → CornerPin-BNgPHIHY.js} +2 -2
  38. package/dist/core/{Crescent-Dk4nlG8T.js → Crescent-BKcpTzwd.js} +3 -3
  39. package/dist/core/{Cross-DsnI1U8g.js → Cross-CDUSIOgx.js} +3 -3
  40. package/dist/core/{Crystal-CR_sG2y7.js → Crystal-DN2WgBrm.js} +6 -6
  41. package/dist/core/{CurlNoise-DJ27ih0F.js → CurlNoise-RsATuC8w.js} +5 -5
  42. package/dist/core/{CursorRipples-CuO3sZga.js → CursorRipples-DbtJtDDl.js} +3 -3
  43. package/dist/core/{CursorTrail-d4xx4QpM.js → CursorTrail-yoPFtwk9.js} +4 -4
  44. package/dist/core/{DataMosh-BhvE-2yC.js → DataMosh-DabFQ-B5.js} +2 -2
  45. package/dist/core/{DiamondGradient-CtOVKrYf.js → DiamondGradient-DbaUt2tC.js} +3 -3
  46. package/dist/core/{DiamondWipe-D-yiQBVj.js → DiamondWipe-Jth0vS7V.js} +2 -2
  47. package/dist/core/{DiffuseBlur-BDf-Czxz.js → DiffuseBlur-BZxj-iAt.js} +2 -2
  48. package/dist/core/{DisplacementMap-B_jf_2lj.js → DisplacementMap-31H7QPQl.js} +2 -2
  49. package/dist/core/{Dither-D3P6EJU8.js → Dither-BN-zSZ0l.js} +2 -2
  50. package/dist/core/{DotGrid-BnSVhJlh.js → DotGrid-BRDFAkBz.js} +3 -3
  51. package/dist/core/{DropShadow-BSKVH3n3.js → DropShadow-_lFvglPh.js} +2 -2
  52. package/dist/core/{Duotone-DfjYuK2u.js → Duotone-BhxXqh0S.js} +2 -2
  53. package/dist/core/{Ellipse-D7_1QKaa.js → Ellipse-NdZQjjl7.js} +3 -3
  54. package/dist/core/{Emboss-ZiPslqzl.js → Emboss--yOZdnyf.js} +5 -5
  55. package/dist/core/{Engraving-DsfkKajz.js → Engraving-B26NgnCE.js} +3 -3
  56. package/dist/core/{ErosionNoise-SELArv9H.js → ErosionNoise-_uC5Hx2q.js} +4 -4
  57. package/dist/core/{Exposure-A7WlTOti.js → Exposure-BM3eE3ol.js} +1 -1
  58. package/dist/core/{FallingLines-9PRMb_Ou.js → FallingLines-BuczyepF.js} +3 -3
  59. package/dist/core/{FilmGrain-SXzVDesw.js → FilmGrain-Dyy76ena.js} +1 -1
  60. package/dist/core/{FilmStock-RK4fk4m0.js → FilmStock-mi-H3Ul9.js} +3 -3
  61. package/dist/core/{Flip-DjoNWG4v.js → Flip-rZzkYscj.js} +2 -2
  62. package/dist/core/{FloatingParticles-D7vUF5g7.js → FloatingParticles-BbbTJldX.js} +5 -5
  63. package/dist/core/{FlowField-tHrXhd1b.js → FlowField-u0qYoqV2.js} +4 -4
  64. package/dist/core/{Flower-BfehbmmG.js → Flower--rN6c2HY.js} +3 -3
  65. package/dist/core/{FlowingGradient-BTKjkx5F.js → FlowingGradient-_zyM9KQn.js} +98 -13
  66. package/dist/core/{FlutedGlass-uFT7iy_9.js → FlutedGlass-C9-K6UQ7.js} +3 -3
  67. package/dist/core/{Fog-Cu1CMATa.js → Fog-2iNe3zZl.js} +3 -3
  68. package/dist/core/{Form3D-D0ji-MeC.js → Form3D-Dmvpcqp1.js} +3 -3
  69. package/dist/core/{FractalNoise-D9HYiOdr.js → FractalNoise-C8uudMNt.js} +5 -5
  70. package/dist/core/{Frost-DQZZxdTk.js → Frost-DV2zJSAL.js} +7 -7
  71. package/dist/core/{GaborNoise-D7BP0K4g.js → GaborNoise-Bty1hWmn.js} +5 -5
  72. package/dist/core/{Glass-CzCVnGn-.js → Glass-CYmFGP1b.js} +6 -6
  73. package/dist/core/{GlassTiles-DJzPPqwz.js → GlassTiles-B3vyGos-.js} +1 -1
  74. package/dist/core/{Glitch-D1Dx8__X.js → Glitch-DcjdwJep.js} +1 -1
  75. package/dist/core/{Glow-Bd9_o_Kv.js → Glow-D_nSsYo1.js} +3 -3
  76. package/dist/core/{Godrays-DRPRWGPm.js → Godrays-lPn_O_W-.js} +3 -3
  77. package/dist/core/{Goo-28A_pNBg.js → Goo-DxEB8kMF.js} +6 -6
  78. package/dist/core/{GradientMap-D8dv-1AX.js → GradientMap-7G6EOwy8.js} +2 -2
  79. package/dist/core/{Grayscale-BlVXBVwW.js → Grayscale-BJz0olll.js} +1 -1
  80. package/dist/core/{Grid-D9vlHvs1.js → Grid-D8ewrixy.js} +2 -2
  81. package/dist/core/{GridDistortion-BpqDvqj6.js → GridDistortion-CSBRousF.js} +3 -3
  82. package/dist/core/{Group-bwQnJRec.js → Group-BSg6a8Ro.js} +1 -1
  83. package/dist/core/{HTMLInCanvas-gCf64ozE.js → HTMLInCanvas-DnQ0ZY38.js} +1 -1
  84. package/dist/core/{Halftone-B_WouxiP.js → Halftone-B2C55h6_.js} +2 -2
  85. package/dist/core/{Heart-Bmt2TLNz.js → Heart-0eDZ50ZK.js} +3 -3
  86. package/dist/core/{Heatmap-Ruef741_.js → Heatmap-BdExXQBU.js} +7 -7
  87. package/dist/core/{HexGrid-By9k0YuI.js → HexGrid-B6UygS6q.js} +2 -2
  88. package/dist/core/{Hologram-Cf25ONOE.js → Hologram-D_eqqb8P.js} +7 -7
  89. package/dist/core/{Holographic-C9RzYykt.js → Holographic-Ctrsya3k.js} +7 -7
  90. package/dist/core/{HueShift-V3gQVuIo.js → HueShift-CFXxhPpm.js} +1 -1
  91. package/dist/core/{ImageTexture-DAUR2N5Q.js → ImageTexture-B5oPuXeI.js} +3 -3
  92. package/dist/core/{InkFlow-DlP1gmr4.js → InkFlow-C7l_qlaJ.js} +3 -3
  93. package/dist/core/{Invert-K648khvD.js → Invert-Bya7lBpK.js} +1 -1
  94. package/dist/core/{IrisWipe-Clkd_5CA.js → IrisWipe-Dg9iiTjF.js} +2 -2
  95. package/dist/core/{IsometricCubes-CzfAwpQ5.js → IsometricCubes-CC-l8cnR.js} +2 -2
  96. package/dist/core/{Kaleidoscope-B9k6HkNn.js → Kaleidoscope-DhvQTJdp.js} +2 -2
  97. package/dist/core/{KeyFrames-DX6JFhsy.js → KeyFrames-ZTsc7rtN.js} +3 -3
  98. package/dist/core/{LensDistortion-DG4VHEXV.js → LensDistortion-KiZJXFKC.js} +2 -2
  99. package/dist/core/{LensFlare-DO5lm--6.js → LensFlare-D5fr8RPA.js} +3 -3
  100. package/dist/core/{LightEdge-CxWsQwpZ.js → LightEdge-D0NOWDh7.js} +7 -7
  101. package/dist/core/{LightLeak-tGJW6l2_.js → LightLeak-DdaidQ1D.js} +4 -4
  102. package/dist/core/Line-B5DIIWBz.js +1428 -0
  103. package/dist/core/{LinearBlur-OmZcUden.js → LinearBlur-CyQxSLS2.js} +2 -2
  104. package/dist/core/{LinearGradient-DDqFujWC.js → LinearGradient-B8tyawJy.js} +3 -3
  105. package/dist/core/{LinearWipe-BzthBFNb.js → LinearWipe-D5UkI1cK.js} +2 -2
  106. package/dist/core/{LiquidMetal-DpRAJ5Ne.js → LiquidMetal-vARkyRL2.js} +230 -41
  107. package/dist/core/{Liquify-BVzmuY6D.js → Liquify-Djnk6ryT.js} +3 -3
  108. package/dist/core/{MagneticFilings-BP1KyU2C.js → MagneticFilings-BfTe8-Jn.js} +5 -5
  109. package/dist/core/{Marble-abj97ioG.js → Marble-3s7VS-tT.js} +4 -4
  110. package/dist/core/{Mirror-BYqbXWUj.js → Mirror-Ck4Hzdd8.js} +2 -2
  111. package/dist/core/{MultiPointGradient-DZZSkiDv.js → MultiPointGradient-CdzqMTN9.js} +2 -2
  112. package/dist/core/{Neon-DD8qY6H9.js → Neon-B8iSfL5s.js} +5 -5
  113. package/dist/core/{NoiseDissolve-DSkh5NdD.js → NoiseDissolve-Df70NgHI.js} +3 -3
  114. package/dist/core/{ObjectTracker-DvQF31-0.js → ObjectTracker-CFpotAyg.js} +3 -3
  115. package/dist/core/{PagePeel-DWtgqWdt.js → PagePeel-Bmc4hBhO.js} +1 -1
  116. package/dist/core/{Paper-DGzZsv79.js → Paper-af7JgKOt.js} +2 -2
  117. package/dist/core/{Parallelogram-Ce0Pg7DX.js → Parallelogram-D7bW1gMV.js} +3 -3
  118. package/dist/core/{ParticleField-CgCOigET.js → ParticleField-FPUBkJmo.js} +4 -4
  119. package/dist/core/{ParticleFlow-CRQhvYQx.js → ParticleFlow-DfdDvN-j.js} +5 -5
  120. package/dist/core/{Particles-fKk9qTkl.js → Particles-DZaTzOZP.js} +7 -7
  121. package/dist/core/{PerlinNoise-DIFK1BpN.js → PerlinNoise-DPaPG55C.js} +5 -5
  122. package/dist/core/{Perspective-CDNz_7y5.js → Perspective-DBzb7DC9.js} +2 -2
  123. package/dist/core/{PixelSort-sgh5ghCc.js → PixelSort-sqoLBmqR.js} +2 -2
  124. package/dist/core/{PixelThrow-CXtB4Am2.js → PixelThrow-arRYRlCO.js} +2 -2
  125. package/dist/core/{Pixelate-BSOzwVHo.js → Pixelate-Ba_iNPwv.js} +1 -1
  126. package/dist/core/{Plasma-G6Hl__3L.js → Plasma-zC1y0At6.js} +4 -4
  127. package/dist/core/{Plastic-B6F2WeaX.js → Plastic-C-NBXCG-.js} +7 -7
  128. package/dist/core/{PolarCoordinates-Bi99omfI.js → PolarCoordinates-CjV_EFpN.js} +2 -2
  129. package/dist/core/{Polygon-BFxoe-Fg.js → Polygon-0kVtkdec.js} +3 -3
  130. package/dist/core/{Posterize-DxiCXLUL.js → Posterize-BUt2MAqY.js} +1 -1
  131. package/dist/core/{Prism-D6J-acZf.js → Prism-BBSdqnRm.js} +3 -3
  132. package/dist/core/{ProgressiveBlur-Bko6UMxQ.js → ProgressiveBlur-CQhyaOwl.js} +4 -4
  133. package/dist/core/{RadialGradient-B_Dgxs9_.js → RadialGradient-BXLBHnCC.js} +3 -3
  134. package/dist/core/{RadialWipe-U9n5aeiJ.js → RadialWipe-DfJ3dL7p.js} +2 -2
  135. package/dist/core/{RandomBars-U_zpGDJh.js → RandomBars-B-EaAz9c.js} +3 -3
  136. package/dist/core/{ReactionDiffusion-I9xj-iK_.js → ReactionDiffusion-r1qHYWoB.js} +3 -3
  137. package/dist/core/{RectangularCoordinates-DX6wutjX.js → RectangularCoordinates-CFGiELUv.js} +2 -2
  138. package/dist/core/{ReflectivePlane-DU9pf-7H.js → ReflectivePlane-BbKUjtUs.js} +4 -4
  139. package/dist/core/{Repeater-kCIaHHFy.js → Repeater-DZhhgwMr.js} +2 -2
  140. package/dist/core/{Ring-B_tYq3KV.js → Ring-DFxV0XzX.js} +3 -3
  141. package/dist/core/{RippleWipe-DCgZZ4VT.js → RippleWipe-DFh-8SmT.js} +2 -2
  142. package/dist/core/{Ripples-BDhMh7XC.js → Ripples-BG24IcNH.js} +3 -3
  143. package/dist/core/{RoundedRect-9b3REf2d.js → RoundedRect-B2EDoIqT.js} +3 -3
  144. package/dist/core/{Saturation-CcblT031.js → Saturation-DKbtxVNf.js} +1 -1
  145. package/dist/core/{Scratches-Rzk27V6D.js → Scratches-C40D6A1_.js} +5 -5
  146. package/dist/core/{Sharpness-ClLOnNR8.js → Sharpness-DygCiVsY.js} +1 -1
  147. package/dist/core/{Shatter-CLI896c7.js → Shatter-eVP3Mt9W.js} +3 -3
  148. package/dist/core/{SimplexNoise-98RPhPzU.js → SimplexNoise-HorjLzId.js} +5 -5
  149. package/dist/core/{SineWave-BZPrTdYD.js → SineWave-CTIhqhO-.js} +3 -3
  150. package/dist/core/{SliceWipe-BR5Qr38C.js → SliceWipe-D3yX3CAm.js} +1 -1
  151. package/dist/core/{Smoke-DoW6Brlo.js → Smoke-CFr-A3JD.js} +4 -4
  152. package/dist/core/{SmokeFill-CXHhKX8u.js → SmokeFill-DglhxF4x.js} +6 -6
  153. package/dist/core/{SmokeFlow-mRJ_JcnZ.js → SmokeFlow-CC1tfLRh.js} +4 -4
  154. package/dist/core/{Solarize-BNCG4TCa.js → Solarize-wvgIpPSb.js} +1 -1
  155. package/dist/core/{SolidColor-dYxjV0YF.js → SolidColor-CQ9bQ-k6.js} +1 -1
  156. package/dist/core/{Spherize-6d5WZIZV.js → Spherize-N33ACzeM.js} +2 -2
  157. package/dist/core/{Spiral-IOZ-Zm0_.js → Spiral-NeLWfZ6k.js} +3 -3
  158. package/dist/core/{Star-D9txpy4P.js → Star-DqkPHXlP.js} +3 -3
  159. package/dist/core/{Stone-H2qLOvGJ.js → Stone-mVzuC5SK.js} +2 -2
  160. package/dist/core/{Strands-Db6_uJAi.js → Strands-C19HsqO_.js} +3 -3
  161. package/dist/core/{Stretch-BIFeD7-1.js → Stretch-CAGlZjVf.js} +2 -2
  162. package/dist/core/{Stripes-5YZhE4bc.js → Stripes-DH9wZV3F.js} +3 -3
  163. package/dist/core/{StudioBackground-B16ICQTt.js → StudioBackground-DPsj_N10.js} +352 -403
  164. package/dist/core/{SunBurst-DSUFLqjC.js → SunBurst-D5p0QAnh.js} +3 -3
  165. package/dist/core/{Surface3D-BoliMAeJ.js → Surface3D-HSAAGomd.js} +4 -4
  166. package/dist/core/{Swirl-CozBN2cj.js → Swirl-C1lH2gAk.js} +3 -3
  167. package/dist/core/{Teardrop-D8uqqHu8.js → Teardrop-b8XQR6NO.js} +3 -3
  168. package/dist/core/{Text-Dka9dwCa.js → Text-DPjLa6Eh.js} +3 -3
  169. package/dist/core/{ThinFilm-d7IlUY62.js → ThinFilm-DhpK-SoR.js} +5 -5
  170. package/dist/core/{TiltShift-CNc1M7bT.js → TiltShift-e57KIilk.js} +4 -4
  171. package/dist/core/{TimeTrail-BFuqrI-l.js → TimeTrail-CYofyeeE.js} +3 -3
  172. package/dist/core/{Tint-BzCm1m93.js → Tint-DBM82OkZ.js} +2 -2
  173. package/dist/core/{Trapezoid-Dc6dpnCU.js → Trapezoid-DaIBhsop.js} +3 -3
  174. package/dist/core/{TriangularGrid-BMemTQ8X.js → TriangularGrid-CBOVJOcR.js} +3 -3
  175. package/dist/core/{Tritone-XnyfjYXL.js → Tritone-D6Dur2eo.js} +2 -2
  176. package/dist/core/{Truchet-DUbAZPvr.js → Truchet-sunCQd_E.js} +2 -2
  177. package/dist/core/{Twirl-Dj6ZOh7V.js → Twirl-D3-3HSuS.js} +2 -2
  178. package/dist/core/{VHS-DcN38Sa-.js → VHS-DtyeGxi8.js} +1 -1
  179. package/dist/core/{VenetianBlinds-Dsix9S6Y.js → VenetianBlinds-H8OVGxhT.js} +2 -2
  180. package/dist/core/{Vesica-BvLPrNBY.js → Vesica-C8MrL_up.js} +3 -3
  181. package/dist/core/{Vibrance-B3F1IOJC.js → Vibrance-B8gBhQS7.js} +1 -1
  182. package/dist/core/{VideoTexture-rZnbkY1j.js → VideoTexture--U8aiyP1.js} +2 -2
  183. package/dist/core/{Vignette-D747S9Un.js → Vignette-yIXlpfCE.js} +2 -2
  184. package/dist/core/{Voronoi-tdjJp1Yz.js → Voronoi-BW4RE3MQ.js} +3 -3
  185. package/dist/core/{Water-wnYFmeVF.js → Water-uLbQQrt-.js} +7 -7
  186. package/dist/core/{Watercolor-DlrWTnkX.js → Watercolor-CcZ0fVEu.js} +3 -3
  187. package/dist/core/{WaveDistortion-11QwOfVR.js → WaveDistortion-DasSsVxv.js} +3 -3
  188. package/dist/core/{WaveletNoise-DWOzHG3M.js → WaveletNoise-DpRWc5Qw.js} +5 -5
  189. package/dist/core/{Weave-CdGwj7cZ.js → Weave-CLGYIcmf.js} +2 -2
  190. package/dist/core/{WebcamTexture-CihYSbzd.js → WebcamTexture--GTVU-Bm.js} +3 -3
  191. package/dist/core/{Wool-DKCBMabi.js → Wool-uy61uieK.js} +2 -2
  192. package/dist/core/{WorleyNoise-BjD32UOl.js → WorleyNoise-i7i0azT8.js} +3 -3
  193. package/dist/core/{ZoomBlur-BnRTijPn.js → ZoomBlur-OQP2jw3F.js} +2 -2
  194. package/dist/core/{agents-c-JjGH1b.js → agents-BVhq_Z2T.js} +1 -1
  195. package/dist/core/bevel-BGAb1fb2.js +121 -0
  196. package/dist/core/{blur-DKmdsW6d.js → blur-cLcFzL4x.js} +3 -3
  197. package/dist/core/{compute-BoeIXi0l.js → compute-Ax-p6Ubc.js} +1 -1
  198. package/dist/core/{edges-BZUKQxSE.js → edges-B7Yet3LV.js} +10 -10
  199. package/dist/core/{glass-BVqgjSPg.js → glass-CNFJB2On.js} +8 -8
  200. package/dist/core/gpu/composer.d.ts +1 -0
  201. package/dist/core/gpu/composer.d.ts.map +1 -1
  202. package/dist/core/gpu/kit/blur.d.ts +7 -7
  203. package/dist/core/gpu/kit/blur.d.ts.map +1 -1
  204. package/dist/core/gpu/kit/effects/bevel.d.ts +5 -0
  205. package/dist/core/gpu/kit/effects/bevel.d.ts.map +1 -0
  206. package/dist/core/gpu/kit/effects/glass.d.ts.map +1 -1
  207. package/dist/core/gpu/kit/effects/index.d.ts +1 -0
  208. package/dist/core/gpu/kit/effects/index.d.ts.map +1 -1
  209. package/dist/core/gpu/porters.d.ts +1 -1
  210. package/dist/core/gpu/porters.d.ts.map +1 -1
  211. package/dist/core/index.js +210 -207
  212. package/dist/core/{media-Ds6MRfGR.js → media-Y-WxQcQD.js} +1 -1
  213. package/dist/core/{noise-Cq0KUOSC.js → noise-B-PI7JUx.js} +1 -1
  214. package/dist/core/{noiseColor-CQyzqpVZ.js → noiseColor-BQAO-Rjk.js} +2 -2
  215. package/dist/core/{noiseColor-DjCUZ_8u.js → noiseColor-Cgx-FS2o.js} +2 -2
  216. package/dist/core/{noiseStylize-fKVcJbGK.js → noiseStylize-BN5zji1E.js} +2 -2
  217. package/dist/core/{porters-DogLzpKT.js → porters-D_xmIPz2.js} +2 -2
  218. package/dist/core/registry.js +210 -207
  219. package/dist/core/{sdf-o99ONcMJ.js → sdf-B8rPE1PG.js} +1 -1
  220. package/dist/core/shaderRegistry-DFRVhoj2.js +431 -0
  221. package/dist/core/shaderRegistry.d.ts.map +1 -1
  222. package/dist/core/shaders/AngularBlur/index.js +5 -5
  223. package/dist/core/shaders/Arc/index.js +6 -6
  224. package/dist/core/shaders/Ascii/index.js +5 -5
  225. package/dist/core/shaders/Aurora/index.js +6 -6
  226. package/dist/core/shaders/BarShift/index.js +5 -5
  227. package/dist/core/shaders/BarnDoors/index.js +5 -5
  228. package/dist/core/shaders/Beam/index.js +5 -5
  229. package/dist/core/shaders/Bend/index.js +5 -5
  230. package/dist/core/shaders/Blob/index.js +5 -5
  231. package/dist/core/shaders/BlockDissolve/index.js +6 -6
  232. package/dist/core/shaders/BlockNoise/index.js +8 -8
  233. package/dist/core/shaders/BlueNoise/index.js +8 -8
  234. package/dist/core/shaders/Blur/index.js +6 -6
  235. package/dist/core/shaders/Boids/index.js +7 -7
  236. package/dist/core/shaders/BokehBlur/index.js +6 -6
  237. package/dist/core/shaders/BrickPattern/index.js +5 -5
  238. package/dist/core/shaders/BrightnessContrast/index.js +5 -5
  239. package/dist/core/shaders/BrushedMetal/index.d.ts +13 -1
  240. package/dist/core/shaders/BrushedMetal/index.d.ts.map +1 -1
  241. package/dist/core/shaders/BrushedMetal/index.js +10 -9
  242. package/dist/core/shaders/Bulge/index.js +5 -5
  243. package/dist/core/shaders/CRTScreen/index.js +5 -5
  244. package/dist/core/shaders/CarbonFiber/index.d.ts +13 -1
  245. package/dist/core/shaders/CarbonFiber/index.d.ts.map +1 -1
  246. package/dist/core/shaders/CarbonFiber/index.js +10 -9
  247. package/dist/core/shaders/Chalkboard/index.js +5 -5
  248. package/dist/core/shaders/ChannelBlur/index.js +6 -6
  249. package/dist/core/shaders/CheckerWipe/index.js +5 -5
  250. package/dist/core/shaders/Checkerboard/index.js +5 -5
  251. package/dist/core/shaders/Chevron/index.js +5 -5
  252. package/dist/core/shaders/ChromaFlow/index.js +5 -5
  253. package/dist/core/shaders/ChromaticAberration/index.js +5 -5
  254. package/dist/core/shaders/Chrome/index.d.ts +152 -0
  255. package/dist/core/shaders/Chrome/index.d.ts.map +1 -0
  256. package/dist/core/shaders/Chrome/index.js +14 -0
  257. package/dist/core/shaders/Circle/index.js +6 -6
  258. package/dist/core/shaders/ColorWheel/index.js +5 -5
  259. package/dist/core/shaders/CompressionArtifacts/index.js +5 -5
  260. package/dist/core/shaders/ConcentricSpin/index.js +5 -5
  261. package/dist/core/shaders/ConicGradient/index.js +5 -5
  262. package/dist/core/shaders/ContourLines/index.js +5 -5
  263. package/dist/core/shaders/CornerPin/index.js +5 -5
  264. package/dist/core/shaders/Crescent/index.js +6 -6
  265. package/dist/core/shaders/Cross/index.js +6 -6
  266. package/dist/core/shaders/Crystal/index.js +9 -9
  267. package/dist/core/shaders/CurlNoise/index.js +8 -8
  268. package/dist/core/shaders/CursorRipples/index.js +5 -5
  269. package/dist/core/shaders/CursorTrail/index.js +5 -5
  270. package/dist/core/shaders/DataMosh/index.js +5 -5
  271. package/dist/core/shaders/DiamondGradient/index.js +5 -5
  272. package/dist/core/shaders/DiamondWipe/index.js +5 -5
  273. package/dist/core/shaders/DiffuseBlur/index.js +5 -5
  274. package/dist/core/shaders/DisplacementMap/index.js +5 -5
  275. package/dist/core/shaders/Dither/index.js +5 -5
  276. package/dist/core/shaders/DotGrid/index.js +5 -5
  277. package/dist/core/shaders/DropShadow/index.js +5 -5
  278. package/dist/core/shaders/Duotone/index.js +5 -5
  279. package/dist/core/shaders/Ellipse/index.js +6 -6
  280. package/dist/core/shaders/Emboss/index.js +8 -8
  281. package/dist/core/shaders/Engraving/index.js +6 -6
  282. package/dist/core/shaders/ErosionNoise/index.js +8 -8
  283. package/dist/core/shaders/Exposure/index.js +5 -5
  284. package/dist/core/shaders/FallingLines/index.js +5 -5
  285. package/dist/core/shaders/FilmGrain/index.js +5 -5
  286. package/dist/core/shaders/FilmStock/index.js +6 -6
  287. package/dist/core/shaders/Flip/index.js +5 -5
  288. package/dist/core/shaders/FloatingParticles/index.js +7 -7
  289. package/dist/core/shaders/FlowField/index.js +6 -6
  290. package/dist/core/shaders/Flower/index.js +6 -6
  291. package/dist/core/shaders/FlowingGradient/index.d.ts.map +1 -1
  292. package/dist/core/shaders/FlowingGradient/index.js +6 -6
  293. package/dist/core/shaders/FlutedGlass/index.js +5 -5
  294. package/dist/core/shaders/Fog/index.js +5 -5
  295. package/dist/core/shaders/Form3D/index.js +5 -5
  296. package/dist/core/shaders/FractalNoise/index.js +7 -7
  297. package/dist/core/shaders/Frost/index.js +9 -9
  298. package/dist/core/shaders/GaborNoise/index.js +8 -8
  299. package/dist/core/shaders/Glass/index.js +9 -9
  300. package/dist/core/shaders/GlassTiles/index.js +5 -5
  301. package/dist/core/shaders/Glitch/index.js +5 -5
  302. package/dist/core/shaders/Glow/index.js +6 -6
  303. package/dist/core/shaders/Godrays/index.js +5 -5
  304. package/dist/core/shaders/Goo/index.js +8 -8
  305. package/dist/core/shaders/GradientMap/index.js +5 -5
  306. package/dist/core/shaders/Grayscale/index.js +5 -5
  307. package/dist/core/shaders/Grid/index.js +5 -5
  308. package/dist/core/shaders/GridDistortion/index.js +5 -5
  309. package/dist/core/shaders/Group/index.js +5 -5
  310. package/dist/core/shaders/HTMLInCanvas/index.js +5 -5
  311. package/dist/core/shaders/Halftone/index.js +5 -5
  312. package/dist/core/shaders/Heart/index.js +6 -6
  313. package/dist/core/shaders/Heatmap/index.js +9 -9
  314. package/dist/core/shaders/HexGrid/index.js +5 -5
  315. package/dist/core/shaders/Hologram/index.js +9 -9
  316. package/dist/core/shaders/Holographic/index.js +9 -9
  317. package/dist/core/shaders/HueShift/index.js +5 -5
  318. package/dist/core/shaders/ImageTexture/index.js +7 -7
  319. package/dist/core/shaders/InkFlow/index.js +5 -5
  320. package/dist/core/shaders/Invert/index.js +5 -5
  321. package/dist/core/shaders/IrisWipe/index.js +5 -5
  322. package/dist/core/shaders/IsometricCubes/index.js +5 -5
  323. package/dist/core/shaders/Kaleidoscope/index.js +5 -5
  324. package/dist/core/shaders/KeyFrames/index.js +5 -5
  325. package/dist/core/shaders/LensDistortion/index.js +5 -5
  326. package/dist/core/shaders/LensFlare/index.js +5 -5
  327. package/dist/core/shaders/LightEdge/index.js +9 -9
  328. package/dist/core/shaders/LightLeak/index.js +6 -6
  329. package/dist/core/shaders/Line/index.d.ts +72 -0
  330. package/dist/core/shaders/Line/index.d.ts.map +1 -0
  331. package/dist/core/shaders/Line/index.js +7 -0
  332. package/dist/core/shaders/LinearBlur/index.js +5 -5
  333. package/dist/core/shaders/LinearGradient/index.js +5 -5
  334. package/dist/core/shaders/LinearWipe/index.js +5 -5
  335. package/dist/core/shaders/LiquidMetal/index.d.ts +13 -1
  336. package/dist/core/shaders/LiquidMetal/index.d.ts.map +1 -1
  337. package/dist/core/shaders/LiquidMetal/index.js +10 -9
  338. package/dist/core/shaders/Liquify/index.js +5 -5
  339. package/dist/core/shaders/MagneticFilings/index.js +7 -7
  340. package/dist/core/shaders/Marble/index.js +6 -6
  341. package/dist/core/shaders/Mirror/index.js +5 -5
  342. package/dist/core/shaders/MultiPointGradient/index.js +5 -5
  343. package/dist/core/shaders/Neon/index.js +7 -7
  344. package/dist/core/shaders/NoiseDissolve/index.js +6 -6
  345. package/dist/core/shaders/ObjectTracker/index.js +6 -6
  346. package/dist/core/shaders/PagePeel/index.js +5 -5
  347. package/dist/core/shaders/Paper/index.js +6 -6
  348. package/dist/core/shaders/Parallelogram/index.js +6 -6
  349. package/dist/core/shaders/ParticleField/index.js +7 -7
  350. package/dist/core/shaders/ParticleFlow/index.js +7 -7
  351. package/dist/core/shaders/Particles/index.js +9 -9
  352. package/dist/core/shaders/PerlinNoise/index.js +8 -8
  353. package/dist/core/shaders/Perspective/index.js +5 -5
  354. package/dist/core/shaders/PixelSort/index.js +5 -5
  355. package/dist/core/shaders/PixelThrow/index.js +5 -5
  356. package/dist/core/shaders/Pixelate/index.js +5 -5
  357. package/dist/core/shaders/Plasma/index.js +6 -6
  358. package/dist/core/shaders/Plastic/index.js +9 -9
  359. package/dist/core/shaders/PolarCoordinates/index.js +5 -5
  360. package/dist/core/shaders/Polygon/index.js +6 -6
  361. package/dist/core/shaders/Posterize/index.js +5 -5
  362. package/dist/core/shaders/Prism/index.js +5 -5
  363. package/dist/core/shaders/ProgressiveBlur/index.js +6 -6
  364. package/dist/core/shaders/RadialGradient/index.js +5 -5
  365. package/dist/core/shaders/RadialWipe/index.js +5 -5
  366. package/dist/core/shaders/RandomBars/index.js +6 -6
  367. package/dist/core/shaders/ReactionDiffusion/index.js +5 -5
  368. package/dist/core/shaders/RectangularCoordinates/index.js +5 -5
  369. package/dist/core/shaders/ReflectivePlane/index.js +6 -6
  370. package/dist/core/shaders/Repeater/index.js +5 -5
  371. package/dist/core/shaders/Ring/index.js +6 -6
  372. package/dist/core/shaders/RippleWipe/index.js +5 -5
  373. package/dist/core/shaders/Ripples/index.js +5 -5
  374. package/dist/core/shaders/RoundedRect/index.js +6 -6
  375. package/dist/core/shaders/Saturation/index.js +5 -5
  376. package/dist/core/shaders/Scratches/index.js +8 -8
  377. package/dist/core/shaders/Sharpness/index.js +5 -5
  378. package/dist/core/shaders/Shatter/index.js +5 -5
  379. package/dist/core/shaders/SimplexNoise/index.js +7 -7
  380. package/dist/core/shaders/SineWave/index.js +5 -5
  381. package/dist/core/shaders/SliceWipe/index.js +5 -5
  382. package/dist/core/shaders/Smoke/index.js +5 -5
  383. package/dist/core/shaders/SmokeFill/index.js +8 -8
  384. package/dist/core/shaders/SmokeFlow/index.js +5 -5
  385. package/dist/core/shaders/Solarize/index.js +5 -5
  386. package/dist/core/shaders/SolidColor/index.js +2 -2
  387. package/dist/core/shaders/Spherize/index.js +5 -5
  388. package/dist/core/shaders/Spiral/index.js +5 -5
  389. package/dist/core/shaders/Star/index.js +6 -6
  390. package/dist/core/shaders/Stone/index.js +4 -4
  391. package/dist/core/shaders/Strands/index.js +5 -5
  392. package/dist/core/shaders/Stretch/index.js +5 -5
  393. package/dist/core/shaders/Stripes/index.js +5 -5
  394. package/dist/core/shaders/StudioBackground/index.d.ts +1 -1
  395. package/dist/core/shaders/StudioBackground/index.d.ts.map +1 -1
  396. package/dist/core/shaders/StudioBackground/index.js +5 -5
  397. package/dist/core/shaders/SunBurst/index.js +5 -5
  398. package/dist/core/shaders/Surface3D/index.js +6 -6
  399. package/dist/core/shaders/Swirl/index.js +5 -5
  400. package/dist/core/shaders/Teardrop/index.js +6 -6
  401. package/dist/core/shaders/Text/index.js +6 -6
  402. package/dist/core/shaders/ThinFilm/index.js +7 -7
  403. package/dist/core/shaders/TiltShift/index.js +6 -6
  404. package/dist/core/shaders/TimeTrail/index.js +5 -5
  405. package/dist/core/shaders/Tint/index.js +5 -5
  406. package/dist/core/shaders/Trapezoid/index.js +6 -6
  407. package/dist/core/shaders/TriangularGrid/index.js +5 -5
  408. package/dist/core/shaders/Tritone/index.js +5 -5
  409. package/dist/core/shaders/Truchet/index.js +5 -5
  410. package/dist/core/shaders/Twirl/index.js +5 -5
  411. package/dist/core/shaders/VHS/index.js +5 -5
  412. package/dist/core/shaders/VenetianBlinds/index.js +5 -5
  413. package/dist/core/shaders/Vesica/index.js +6 -6
  414. package/dist/core/shaders/Vibrance/index.js +5 -5
  415. package/dist/core/shaders/VideoTexture/index.js +6 -6
  416. package/dist/core/shaders/Vignette/index.js +5 -5
  417. package/dist/core/shaders/Voronoi/index.js +5 -5
  418. package/dist/core/shaders/Water/index.js +9 -9
  419. package/dist/core/shaders/Watercolor/index.js +6 -6
  420. package/dist/core/shaders/WaveDistortion/index.js +5 -5
  421. package/dist/core/shaders/WaveletNoise/index.js +8 -8
  422. package/dist/core/shaders/Weave/index.js +5 -5
  423. package/dist/core/shaders/WebcamTexture/index.js +7 -7
  424. package/dist/core/shaders/Wool/index.js +4 -4
  425. package/dist/core/shaders/WorleyNoise/index.js +5 -5
  426. package/dist/core/shaders/ZoomBlur/index.js +5 -5
  427. package/dist/core/{shapeEffectBounds-Dg4GQ5vW.js → shapeEffectBounds-Svfd_R5a.js} +13 -9
  428. package/dist/core/utilities/shapeEffectBounds.d.ts.map +1 -1
  429. package/dist/core/utilities/transformations/index.js +1 -1
  430. package/dist/js/bundle.js +166 -166
  431. package/dist/js/createShader.js +1 -1
  432. package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
  433. package/dist/js/utils/generatePresetCode.js +54 -0
  434. package/dist/react/Chrome.js +226 -0
  435. package/dist/react/Line.js +226 -0
  436. package/dist/react/Preview.js +2 -0
  437. package/dist/react/Shader.js +1 -1
  438. package/dist/react/bundle.js +153 -153
  439. package/dist/react/components/BrushedMetal.d.ts +3 -1
  440. package/dist/react/components/BrushedMetal.d.ts.map +1 -1
  441. package/dist/react/components/CarbonFiber.d.ts +3 -1
  442. package/dist/react/components/CarbonFiber.d.ts.map +1 -1
  443. package/dist/react/components/Chrome.d.ts +46 -0
  444. package/dist/react/components/Chrome.d.ts.map +1 -0
  445. package/dist/react/components/Line.d.ts +40 -0
  446. package/dist/react/components/Line.d.ts.map +1 -0
  447. package/dist/react/components/LiquidMetal.d.ts +3 -1
  448. package/dist/react/components/LiquidMetal.d.ts.map +1 -1
  449. package/dist/react/engine/Preview.d.ts.map +1 -1
  450. package/dist/react/index.d.ts +2 -0
  451. package/dist/react/index.d.ts.map +1 -1
  452. package/dist/react/index.js +3 -1
  453. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  454. package/dist/react/utils/generatePresetCode.js +54 -0
  455. package/dist/registry.js +1179 -2
  456. package/dist/solid/components/BrushedMetal.d.ts +3 -1
  457. package/dist/solid/components/BrushedMetal.d.ts.map +1 -1
  458. package/dist/solid/components/CarbonFiber.d.ts +3 -1
  459. package/dist/solid/components/CarbonFiber.d.ts.map +1 -1
  460. package/dist/solid/components/Chrome.d.ts +43 -0
  461. package/dist/solid/components/Chrome.d.ts.map +1 -0
  462. package/dist/solid/components/Chrome.js +232 -0
  463. package/dist/solid/components/Line.d.ts +37 -0
  464. package/dist/solid/components/Line.d.ts.map +1 -0
  465. package/dist/solid/components/Line.js +232 -0
  466. package/dist/solid/components/LiquidMetal.d.ts +3 -1
  467. package/dist/solid/components/LiquidMetal.d.ts.map +1 -1
  468. package/dist/solid/engine/Preview.d.ts.map +1 -1
  469. package/dist/solid/engine/Preview.js +203 -199
  470. package/dist/solid/engine/Shader.js +1 -1
  471. package/dist/solid/index.d.ts +2 -0
  472. package/dist/solid/index.d.ts.map +1 -1
  473. package/dist/solid/index.js +333 -329
  474. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  475. package/dist/solid/utils/generatePresetCode.js +54 -0
  476. package/dist/svelte/components/BrushedMetal.svelte.d.ts +2 -0
  477. package/dist/svelte/components/CarbonFiber.svelte.d.ts +2 -0
  478. package/dist/svelte/components/Chrome.svelte.d.ts +33 -0
  479. package/dist/svelte/components/Line.svelte.d.ts +27 -0
  480. package/dist/svelte/components/LiquidMetal.svelte.d.ts +2 -0
  481. package/dist/svelte/index.d.ts +2 -0
  482. package/dist/svelte/index.js +2313 -1899
  483. package/dist/svelte/source/components/BrushedMetal.svelte +2 -0
  484. package/dist/svelte/source/components/CarbonFiber.svelte +2 -0
  485. package/dist/svelte/source/components/Chrome.svelte +357 -0
  486. package/dist/svelte/source/components/Line.svelte +351 -0
  487. package/dist/svelte/source/components/LiquidMetal.svelte +2 -0
  488. package/dist/svelte/source/engine/Preview.svelte +4 -0
  489. package/dist/svelte/source/index.js +2 -0
  490. package/dist/svelte/utils/generatePresetCode.js +54 -0
  491. package/dist/vue/BrushedMetal.vue_vue_type_script_setup_true_lang.js +2 -0
  492. package/dist/vue/CarbonFiber.vue_vue_type_script_setup_true_lang.js +2 -0
  493. package/dist/vue/Chrome.js +3 -0
  494. package/dist/vue/Chrome.vue_vue_type_script_setup_true_lang.js +247 -0
  495. package/dist/vue/Line.js +3 -0
  496. package/dist/vue/Line.vue_vue_type_script_setup_true_lang.js +234 -0
  497. package/dist/vue/LiquidMetal.vue_vue_type_script_setup_true_lang.js +2 -0
  498. package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +4 -0
  499. package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
  500. package/dist/vue/components/BrushedMetal.vue.d.ts +2 -0
  501. package/dist/vue/components/BrushedMetal.vue.d.ts.map +1 -1
  502. package/dist/vue/components/CarbonFiber.vue.d.ts +2 -0
  503. package/dist/vue/components/CarbonFiber.vue.d.ts.map +1 -1
  504. package/dist/vue/components/Chrome.vue.d.ts +68 -0
  505. package/dist/vue/components/Chrome.vue.d.ts.map +1 -0
  506. package/dist/vue/components/Line.vue.d.ts +62 -0
  507. package/dist/vue/components/Line.vue.d.ts.map +1 -0
  508. package/dist/vue/components/LiquidMetal.vue.d.ts +2 -0
  509. package/dist/vue/components/LiquidMetal.vue.d.ts.map +1 -1
  510. package/dist/vue/index.d.ts +2 -0
  511. package/dist/vue/index.d.ts.map +1 -1
  512. package/dist/vue/index.js +3 -1
  513. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  514. package/dist/vue/utils/generatePresetCode.js +54 -0
  515. package/package.json +17 -1
  516. package/dist/core/shaderRegistry-CkDrffEe.js +0 -427
  517. /package/dist/core/{fonts-DFuXI3Hk.js → fonts-DxVn9e-I.js} +0 -0
  518. /package/dist/core/{naturalSize-B679wTgN.js → naturalSize-BPCi_I-Z.js} +0 -0
  519. /package/dist/core/{transformations-CsPUHppB.js → transformations-C7gn_5rF.js} +0 -0
@@ -0,0 +1,3692 @@
1
+ import { A as neutral, At as max, Bt as sin, Gt as data_exports, Ht as sqrt, It as reflect, M as tonemap_exports, Mt as mix, Nt as normalize, St as cos, Tt as exp, Vt as smoothstep, _t as abs, b as vec4, cn as vec4f, gt as select, it as std_exports, jt as min, kt as length, ln as f32, m as call, nt as src_default, on as vec3f, rn as vec2f, v as floatE, wt as dot, xt as clamp } from "./edges-B7Yet3LV.js";
2
+ import { t as animatedTime } from "./porters-D_xmIPz2.js";
3
+ import { h as perlin12d, p as noise_exports } from "./noise-B-PI7JUx.js";
4
+ import { h as sdf_exports } from "./sdf-B8rPE1PG.js";
5
+ import { f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-Svfd_R5a.js";
6
+ import { t as bevel_exports } from "./bevel-BGAb1fb2.js";
7
+ import { n as glass_exports } from "./glass-CNFJB2On.js";
8
+ import { a as transformColor, c as transformPosition } from "./transformations-C7gn_5rF.js";
9
+ var { sdfSpaceUV, offsetUV } = glass_exports;
10
+ var { bevelSin } = bevel_exports;
11
+ var { createSvgSdfSampler, createAnalyticSdfSampler, driveAnalyticSubProps, ANALYTIC_SDF_EXTRA_FIELDS } = sdf_exports;
12
+ var { createVolumetricFieldComputeNode, buildVolumetricFieldSampler, VOLUMETRIC_FIELD_EXTRA_FIELDS, is3dShapeType, isVolumetricShapeType, isMobileGpuViewport } = sdf3d_exports;
13
+ var DEG_TO_RAD = .017453292519943295;
14
+ var DEFAULT_SHAPE_CONFIG = JSON.stringify({
15
+ type: "roundedRectSDF",
16
+ width: .42,
17
+ height: .3,
18
+ rounding: .12
19
+ });
20
+ const chromeStudio = src_default.fn([
21
+ vec3f,
22
+ f32,
23
+ f32,
24
+ f32,
25
+ f32,
26
+ vec3f,
27
+ vec3f
28
+ ], vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((dir, boxSoftIn, stripSoft, spectral, shadows, warmC, coolC) => {
29
+ "use gpu";
30
+ const ex = dir.x;
31
+ const ey = dir.y;
32
+ const ez = dir.z;
33
+ const horiz = __tsover_div(ex, __tsover_add(length(vec2f(ex, ey)), 1e-4));
34
+ const warmSide = __tsover_add(.35, __tsover_mul(.65, smoothstep(-.7, .7, horiz)));
35
+ const coolSide = __tsover_add(.45, __tsover_mul(.55, smoothstep(-.7, .7, __tsover_mul(horiz, -1))));
36
+ const up = smoothstep(-.65, 1, ey);
37
+ const graphite = coolC.mul(.03).add(vec3f(.003, .003, .004));
38
+ let env = mix(mix(vec3f(.17, .175, .19), graphite, vec3f(shadows)), vec3f(.56, .57, .6), vec3f(__tsover_mul(up, up)));
39
+ const ceil = smoothstep(.3, .9, ey);
40
+ env = env.add(vec3f(.55, .55, .56).mul(ceil));
41
+ const cd = __tsover_div(__tsover_add(ey, .45), .2);
42
+ const coolBand = exp(__tsover_mul(__tsover_mul(cd, cd), -1));
43
+ env = env.add(coolC.mul(__tsover_mul(__tsover_mul(__tsover_mul(coolBand, spectral), .2), coolSide)));
44
+ const facing = smoothstep(.18, -.1, ez);
45
+ const pz = max(__tsover_sub(.32, ez), .06);
46
+ const px = __tsover_div(ex, pz);
47
+ const py = __tsover_div(ey, pz);
48
+ const bx = __tsover_sub(abs(px), .62);
49
+ const by = __tsover_sub(abs(__tsover_sub(py, .3)), .28);
50
+ const inside = min(max(bx, by), 0);
51
+ const dbox = __tsover_add(length(max(vec2f(bx, by), vec2f(0, 0))), inside);
52
+ const boxSoft = __tsover_add(.05, __tsover_mul(boxSoftIn, .4));
53
+ const box = __tsover_mul(smoothstep(boxSoft, __tsover_mul(boxSoft, -.6), dbox), facing);
54
+ env = env.add(vec3f(2.9, 2.87, 2.82).mul(box));
55
+ const flagMask = smoothstep(.5, .92, abs(ex));
56
+ const flagDepth = mix(f32(.55), f32(.07), shadows);
57
+ env = env.mul(mix(f32(1), flagDepth, flagMask));
58
+ const gw = __tsover_add(.065, __tsover_mul(stripSoft, .05));
59
+ const dOut = max(dbox, 0);
60
+ const warmGlow = __tsover_mul(exp(__tsover_mul(__tsover_mul(__tsover_div(dOut, gw), __tsover_div(dOut, gw)), -1)), smoothstep(-.06, .1, dbox));
61
+ env = env.add(warmC.mul(__tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(warmGlow, spectral), 1.3), warmSide), facing)));
62
+ const fb = __tsover_div(__tsover_add(ey, .12), .05);
63
+ env = env.add(warmC.mul(__tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(exp(__tsover_mul(__tsover_mul(fb, fb), -1)), spectral), .5), warmSide), __tsover_sub(1, facing))));
64
+ const cbx = __tsover_sub(abs(px), .7);
65
+ const cby = __tsover_sub(abs(__tsover_add(py, .78)), .05);
66
+ const dcard = __tsover_add(length(max(vec2f(cbx, cby), vec2f(0, 0))), min(max(cbx, cby), 0));
67
+ const card = __tsover_mul(smoothstep(boxSoft, __tsover_mul(boxSoft, -.6), dcard), facing);
68
+ return env.add(vec3f(.5, .5, .52).mul(card));
69
+ }), {
70
+ v: 1,
71
+ name: void 0,
72
+ ast: {
73
+ "params": [
74
+ {
75
+ "type": "i",
76
+ "name": "dir"
77
+ },
78
+ {
79
+ "type": "i",
80
+ "name": "boxSoftIn"
81
+ },
82
+ {
83
+ "type": "i",
84
+ "name": "stripSoft"
85
+ },
86
+ {
87
+ "type": "i",
88
+ "name": "spectral"
89
+ },
90
+ {
91
+ "type": "i",
92
+ "name": "shadows"
93
+ },
94
+ {
95
+ "type": "i",
96
+ "name": "warmC"
97
+ },
98
+ {
99
+ "type": "i",
100
+ "name": "coolC"
101
+ }
102
+ ],
103
+ "body": [0, [
104
+ [
105
+ 13,
106
+ "ex",
107
+ [
108
+ 7,
109
+ "dir",
110
+ "x"
111
+ ]
112
+ ],
113
+ [
114
+ 13,
115
+ "ey",
116
+ [
117
+ 7,
118
+ "dir",
119
+ "y"
120
+ ]
121
+ ],
122
+ [
123
+ 13,
124
+ "ez",
125
+ [
126
+ 7,
127
+ "dir",
128
+ "z"
129
+ ]
130
+ ],
131
+ [
132
+ 13,
133
+ "horiz",
134
+ [
135
+ 1,
136
+ "ex",
137
+ "/",
138
+ [
139
+ 1,
140
+ [
141
+ 6,
142
+ [
143
+ 7,
144
+ "std",
145
+ "length"
146
+ ],
147
+ [[
148
+ 6,
149
+ [
150
+ 7,
151
+ "d",
152
+ "vec2f"
153
+ ],
154
+ ["ex", "ey"]
155
+ ]]
156
+ ],
157
+ "+",
158
+ [5, "0.0001"]
159
+ ]
160
+ ]
161
+ ],
162
+ [
163
+ 13,
164
+ "warmSide",
165
+ [
166
+ 1,
167
+ [5, "0.35"],
168
+ "+",
169
+ [
170
+ 1,
171
+ [5, "0.65"],
172
+ "*",
173
+ [
174
+ 6,
175
+ [
176
+ 7,
177
+ "std",
178
+ "smoothstep"
179
+ ],
180
+ [
181
+ [
182
+ 4,
183
+ "-",
184
+ [5, "0.7"]
185
+ ],
186
+ [5, "0.7"],
187
+ "horiz"
188
+ ]
189
+ ]
190
+ ]
191
+ ]
192
+ ],
193
+ [
194
+ 13,
195
+ "coolSide",
196
+ [
197
+ 1,
198
+ [5, "0.45"],
199
+ "+",
200
+ [
201
+ 1,
202
+ [5, "0.55"],
203
+ "*",
204
+ [
205
+ 6,
206
+ [
207
+ 7,
208
+ "std",
209
+ "smoothstep"
210
+ ],
211
+ [
212
+ [
213
+ 4,
214
+ "-",
215
+ [5, "0.7"]
216
+ ],
217
+ [5, "0.7"],
218
+ [
219
+ 1,
220
+ "horiz",
221
+ "*",
222
+ [
223
+ 4,
224
+ "-",
225
+ [5, "1"]
226
+ ]
227
+ ]
228
+ ]
229
+ ]
230
+ ]
231
+ ]
232
+ ],
233
+ [
234
+ 13,
235
+ "up",
236
+ [
237
+ 6,
238
+ [
239
+ 7,
240
+ "std",
241
+ "smoothstep"
242
+ ],
243
+ [
244
+ [
245
+ 4,
246
+ "-",
247
+ [5, "0.65"]
248
+ ],
249
+ [5, "1"],
250
+ "ey"
251
+ ]
252
+ ]
253
+ ],
254
+ [
255
+ 13,
256
+ "graphite",
257
+ [
258
+ 6,
259
+ [
260
+ 7,
261
+ [
262
+ 6,
263
+ [
264
+ 7,
265
+ "coolC",
266
+ "mul"
267
+ ],
268
+ [[5, "0.03"]]
269
+ ],
270
+ "add"
271
+ ],
272
+ [[
273
+ 6,
274
+ [
275
+ 7,
276
+ "d",
277
+ "vec3f"
278
+ ],
279
+ [
280
+ [5, "0.003"],
281
+ [5, "0.003"],
282
+ [5, "0.004"]
283
+ ]
284
+ ]]
285
+ ]
286
+ ],
287
+ [
288
+ 13,
289
+ "baseLo",
290
+ [
291
+ 6,
292
+ [
293
+ 7,
294
+ "std",
295
+ "mix"
296
+ ],
297
+ [
298
+ [
299
+ 6,
300
+ [
301
+ 7,
302
+ "d",
303
+ "vec3f"
304
+ ],
305
+ [
306
+ [5, "0.17"],
307
+ [5, "0.175"],
308
+ [5, "0.19"]
309
+ ]
310
+ ],
311
+ "graphite",
312
+ [
313
+ 6,
314
+ [
315
+ 7,
316
+ "d",
317
+ "vec3f"
318
+ ],
319
+ ["shadows"]
320
+ ]
321
+ ]
322
+ ]
323
+ ],
324
+ [
325
+ 13,
326
+ "baseHi",
327
+ [
328
+ 6,
329
+ [
330
+ 7,
331
+ "d",
332
+ "vec3f"
333
+ ],
334
+ [
335
+ [5, "0.56"],
336
+ [5, "0.57"],
337
+ [5, "0.6"]
338
+ ]
339
+ ]
340
+ ],
341
+ [
342
+ 12,
343
+ "env",
344
+ [
345
+ 6,
346
+ [
347
+ 7,
348
+ "std",
349
+ "mix"
350
+ ],
351
+ [
352
+ "baseLo",
353
+ "baseHi",
354
+ [
355
+ 6,
356
+ [
357
+ 7,
358
+ "d",
359
+ "vec3f"
360
+ ],
361
+ [[
362
+ 1,
363
+ "up",
364
+ "*",
365
+ "up"
366
+ ]]
367
+ ]
368
+ ]
369
+ ]
370
+ ],
371
+ [
372
+ 13,
373
+ "ceil",
374
+ [
375
+ 6,
376
+ [
377
+ 7,
378
+ "std",
379
+ "smoothstep"
380
+ ],
381
+ [
382
+ [5, "0.3"],
383
+ [5, "0.9"],
384
+ "ey"
385
+ ]
386
+ ]
387
+ ],
388
+ [
389
+ 2,
390
+ "env",
391
+ "=",
392
+ [
393
+ 6,
394
+ [
395
+ 7,
396
+ "env",
397
+ "add"
398
+ ],
399
+ [[
400
+ 6,
401
+ [
402
+ 7,
403
+ [
404
+ 6,
405
+ [
406
+ 7,
407
+ "d",
408
+ "vec3f"
409
+ ],
410
+ [
411
+ [5, "0.55"],
412
+ [5, "0.55"],
413
+ [5, "0.56"]
414
+ ]
415
+ ],
416
+ "mul"
417
+ ],
418
+ ["ceil"]
419
+ ]]
420
+ ]
421
+ ],
422
+ [
423
+ 13,
424
+ "cd",
425
+ [
426
+ 1,
427
+ [
428
+ 1,
429
+ "ey",
430
+ "+",
431
+ [5, "0.45"]
432
+ ],
433
+ "/",
434
+ [5, "0.2"]
435
+ ]
436
+ ],
437
+ [
438
+ 13,
439
+ "coolBand",
440
+ [
441
+ 6,
442
+ [
443
+ 7,
444
+ "std",
445
+ "exp"
446
+ ],
447
+ [[
448
+ 1,
449
+ [
450
+ 1,
451
+ "cd",
452
+ "*",
453
+ "cd"
454
+ ],
455
+ "*",
456
+ [
457
+ 4,
458
+ "-",
459
+ [5, "1"]
460
+ ]
461
+ ]]
462
+ ]
463
+ ],
464
+ [
465
+ 2,
466
+ "env",
467
+ "=",
468
+ [
469
+ 6,
470
+ [
471
+ 7,
472
+ "env",
473
+ "add"
474
+ ],
475
+ [[
476
+ 6,
477
+ [
478
+ 7,
479
+ "coolC",
480
+ "mul"
481
+ ],
482
+ [[
483
+ 1,
484
+ [
485
+ 1,
486
+ [
487
+ 1,
488
+ "coolBand",
489
+ "*",
490
+ "spectral"
491
+ ],
492
+ "*",
493
+ [5, "0.2"]
494
+ ],
495
+ "*",
496
+ "coolSide"
497
+ ]]
498
+ ]]
499
+ ]
500
+ ],
501
+ [
502
+ 13,
503
+ "facing",
504
+ [
505
+ 6,
506
+ [
507
+ 7,
508
+ "std",
509
+ "smoothstep"
510
+ ],
511
+ [
512
+ [5, "0.18"],
513
+ [
514
+ 4,
515
+ "-",
516
+ [5, "0.1"]
517
+ ],
518
+ "ez"
519
+ ]
520
+ ]
521
+ ],
522
+ [
523
+ 13,
524
+ "pz",
525
+ [
526
+ 6,
527
+ [
528
+ 7,
529
+ "std",
530
+ "max"
531
+ ],
532
+ [[
533
+ 1,
534
+ [5, "0.32"],
535
+ "-",
536
+ "ez"
537
+ ], [5, "0.06"]]
538
+ ]
539
+ ],
540
+ [
541
+ 13,
542
+ "px",
543
+ [
544
+ 1,
545
+ "ex",
546
+ "/",
547
+ "pz"
548
+ ]
549
+ ],
550
+ [
551
+ 13,
552
+ "py",
553
+ [
554
+ 1,
555
+ "ey",
556
+ "/",
557
+ "pz"
558
+ ]
559
+ ],
560
+ [
561
+ 13,
562
+ "bx",
563
+ [
564
+ 1,
565
+ [
566
+ 6,
567
+ [
568
+ 7,
569
+ "std",
570
+ "abs"
571
+ ],
572
+ ["px"]
573
+ ],
574
+ "-",
575
+ [5, "0.62"]
576
+ ]
577
+ ],
578
+ [
579
+ 13,
580
+ "by",
581
+ [
582
+ 1,
583
+ [
584
+ 6,
585
+ [
586
+ 7,
587
+ "std",
588
+ "abs"
589
+ ],
590
+ [[
591
+ 1,
592
+ "py",
593
+ "-",
594
+ [5, "0.3"]
595
+ ]]
596
+ ],
597
+ "-",
598
+ [5, "0.28"]
599
+ ]
600
+ ],
601
+ [
602
+ 13,
603
+ "inside",
604
+ [
605
+ 6,
606
+ [
607
+ 7,
608
+ "std",
609
+ "min"
610
+ ],
611
+ [[
612
+ 6,
613
+ [
614
+ 7,
615
+ "std",
616
+ "max"
617
+ ],
618
+ ["bx", "by"]
619
+ ], [5, "0"]]
620
+ ]
621
+ ],
622
+ [
623
+ 13,
624
+ "dbox",
625
+ [
626
+ 1,
627
+ [
628
+ 6,
629
+ [
630
+ 7,
631
+ "std",
632
+ "length"
633
+ ],
634
+ [[
635
+ 6,
636
+ [
637
+ 7,
638
+ "std",
639
+ "max"
640
+ ],
641
+ [[
642
+ 6,
643
+ [
644
+ 7,
645
+ "d",
646
+ "vec2f"
647
+ ],
648
+ ["bx", "by"]
649
+ ], [
650
+ 6,
651
+ [
652
+ 7,
653
+ "d",
654
+ "vec2f"
655
+ ],
656
+ [[5, "0"], [5, "0"]]
657
+ ]]
658
+ ]]
659
+ ],
660
+ "+",
661
+ "inside"
662
+ ]
663
+ ],
664
+ [
665
+ 13,
666
+ "boxSoft",
667
+ [
668
+ 1,
669
+ [5, "0.05"],
670
+ "+",
671
+ [
672
+ 1,
673
+ "boxSoftIn",
674
+ "*",
675
+ [5, "0.4"]
676
+ ]
677
+ ]
678
+ ],
679
+ [
680
+ 13,
681
+ "box",
682
+ [
683
+ 1,
684
+ [
685
+ 6,
686
+ [
687
+ 7,
688
+ "std",
689
+ "smoothstep"
690
+ ],
691
+ [
692
+ "boxSoft",
693
+ [
694
+ 1,
695
+ "boxSoft",
696
+ "*",
697
+ [
698
+ 4,
699
+ "-",
700
+ [5, "0.6"]
701
+ ]
702
+ ],
703
+ "dbox"
704
+ ]
705
+ ],
706
+ "*",
707
+ "facing"
708
+ ]
709
+ ],
710
+ [
711
+ 2,
712
+ "env",
713
+ "=",
714
+ [
715
+ 6,
716
+ [
717
+ 7,
718
+ "env",
719
+ "add"
720
+ ],
721
+ [[
722
+ 6,
723
+ [
724
+ 7,
725
+ [
726
+ 6,
727
+ [
728
+ 7,
729
+ "d",
730
+ "vec3f"
731
+ ],
732
+ [
733
+ [5, "2.9"],
734
+ [5, "2.87"],
735
+ [5, "2.82"]
736
+ ]
737
+ ],
738
+ "mul"
739
+ ],
740
+ ["box"]
741
+ ]]
742
+ ]
743
+ ],
744
+ [
745
+ 13,
746
+ "flagMask",
747
+ [
748
+ 6,
749
+ [
750
+ 7,
751
+ "std",
752
+ "smoothstep"
753
+ ],
754
+ [
755
+ [5, "0.5"],
756
+ [5, "0.92"],
757
+ [
758
+ 6,
759
+ [
760
+ 7,
761
+ "std",
762
+ "abs"
763
+ ],
764
+ ["ex"]
765
+ ]
766
+ ]
767
+ ]
768
+ ],
769
+ [
770
+ 13,
771
+ "flagDepth",
772
+ [
773
+ 6,
774
+ [
775
+ 7,
776
+ "std",
777
+ "mix"
778
+ ],
779
+ [
780
+ [
781
+ 6,
782
+ [
783
+ 7,
784
+ "d",
785
+ "f32"
786
+ ],
787
+ [[5, "0.55"]]
788
+ ],
789
+ [
790
+ 6,
791
+ [
792
+ 7,
793
+ "d",
794
+ "f32"
795
+ ],
796
+ [[5, "0.07"]]
797
+ ],
798
+ "shadows"
799
+ ]
800
+ ]
801
+ ],
802
+ [
803
+ 2,
804
+ "env",
805
+ "=",
806
+ [
807
+ 6,
808
+ [
809
+ 7,
810
+ "env",
811
+ "mul"
812
+ ],
813
+ [[
814
+ 6,
815
+ [
816
+ 7,
817
+ "std",
818
+ "mix"
819
+ ],
820
+ [
821
+ [
822
+ 6,
823
+ [
824
+ 7,
825
+ "d",
826
+ "f32"
827
+ ],
828
+ [[5, "1"]]
829
+ ],
830
+ "flagDepth",
831
+ "flagMask"
832
+ ]
833
+ ]]
834
+ ]
835
+ ],
836
+ [
837
+ 13,
838
+ "gw",
839
+ [
840
+ 1,
841
+ [5, "0.065"],
842
+ "+",
843
+ [
844
+ 1,
845
+ "stripSoft",
846
+ "*",
847
+ [5, "0.05"]
848
+ ]
849
+ ]
850
+ ],
851
+ [
852
+ 13,
853
+ "dOut",
854
+ [
855
+ 6,
856
+ [
857
+ 7,
858
+ "std",
859
+ "max"
860
+ ],
861
+ ["dbox", [5, "0"]]
862
+ ]
863
+ ],
864
+ [
865
+ 13,
866
+ "warmGlow",
867
+ [
868
+ 1,
869
+ [
870
+ 6,
871
+ [
872
+ 7,
873
+ "std",
874
+ "exp"
875
+ ],
876
+ [[
877
+ 1,
878
+ [
879
+ 1,
880
+ [
881
+ 1,
882
+ "dOut",
883
+ "/",
884
+ "gw"
885
+ ],
886
+ "*",
887
+ [
888
+ 1,
889
+ "dOut",
890
+ "/",
891
+ "gw"
892
+ ]
893
+ ],
894
+ "*",
895
+ [
896
+ 4,
897
+ "-",
898
+ [5, "1"]
899
+ ]
900
+ ]]
901
+ ],
902
+ "*",
903
+ [
904
+ 6,
905
+ [
906
+ 7,
907
+ "std",
908
+ "smoothstep"
909
+ ],
910
+ [
911
+ [
912
+ 4,
913
+ "-",
914
+ [5, "0.06"]
915
+ ],
916
+ [5, "0.1"],
917
+ "dbox"
918
+ ]
919
+ ]
920
+ ]
921
+ ],
922
+ [
923
+ 2,
924
+ "env",
925
+ "=",
926
+ [
927
+ 6,
928
+ [
929
+ 7,
930
+ "env",
931
+ "add"
932
+ ],
933
+ [[
934
+ 6,
935
+ [
936
+ 7,
937
+ "warmC",
938
+ "mul"
939
+ ],
940
+ [[
941
+ 1,
942
+ [
943
+ 1,
944
+ [
945
+ 1,
946
+ [
947
+ 1,
948
+ "warmGlow",
949
+ "*",
950
+ "spectral"
951
+ ],
952
+ "*",
953
+ [5, "1.3"]
954
+ ],
955
+ "*",
956
+ "warmSide"
957
+ ],
958
+ "*",
959
+ "facing"
960
+ ]]
961
+ ]]
962
+ ]
963
+ ],
964
+ [
965
+ 13,
966
+ "fb",
967
+ [
968
+ 1,
969
+ [
970
+ 1,
971
+ "ey",
972
+ "+",
973
+ [5, "0.12"]
974
+ ],
975
+ "/",
976
+ [5, "0.05"]
977
+ ]
978
+ ],
979
+ [
980
+ 2,
981
+ "env",
982
+ "=",
983
+ [
984
+ 6,
985
+ [
986
+ 7,
987
+ "env",
988
+ "add"
989
+ ],
990
+ [[
991
+ 6,
992
+ [
993
+ 7,
994
+ "warmC",
995
+ "mul"
996
+ ],
997
+ [[
998
+ 1,
999
+ [
1000
+ 1,
1001
+ [
1002
+ 1,
1003
+ [
1004
+ 1,
1005
+ [
1006
+ 6,
1007
+ [
1008
+ 7,
1009
+ "std",
1010
+ "exp"
1011
+ ],
1012
+ [[
1013
+ 1,
1014
+ [
1015
+ 1,
1016
+ "fb",
1017
+ "*",
1018
+ "fb"
1019
+ ],
1020
+ "*",
1021
+ [
1022
+ 4,
1023
+ "-",
1024
+ [5, "1"]
1025
+ ]
1026
+ ]]
1027
+ ],
1028
+ "*",
1029
+ "spectral"
1030
+ ],
1031
+ "*",
1032
+ [5, "0.5"]
1033
+ ],
1034
+ "*",
1035
+ "warmSide"
1036
+ ],
1037
+ "*",
1038
+ [
1039
+ 1,
1040
+ [5, "1"],
1041
+ "-",
1042
+ "facing"
1043
+ ]
1044
+ ]]
1045
+ ]]
1046
+ ]
1047
+ ],
1048
+ [
1049
+ 13,
1050
+ "cbx",
1051
+ [
1052
+ 1,
1053
+ [
1054
+ 6,
1055
+ [
1056
+ 7,
1057
+ "std",
1058
+ "abs"
1059
+ ],
1060
+ ["px"]
1061
+ ],
1062
+ "-",
1063
+ [5, "0.7"]
1064
+ ]
1065
+ ],
1066
+ [
1067
+ 13,
1068
+ "cby",
1069
+ [
1070
+ 1,
1071
+ [
1072
+ 6,
1073
+ [
1074
+ 7,
1075
+ "std",
1076
+ "abs"
1077
+ ],
1078
+ [[
1079
+ 1,
1080
+ "py",
1081
+ "+",
1082
+ [5, "0.78"]
1083
+ ]]
1084
+ ],
1085
+ "-",
1086
+ [5, "0.05"]
1087
+ ]
1088
+ ],
1089
+ [
1090
+ 13,
1091
+ "dcard",
1092
+ [
1093
+ 1,
1094
+ [
1095
+ 6,
1096
+ [
1097
+ 7,
1098
+ "std",
1099
+ "length"
1100
+ ],
1101
+ [[
1102
+ 6,
1103
+ [
1104
+ 7,
1105
+ "std",
1106
+ "max"
1107
+ ],
1108
+ [[
1109
+ 6,
1110
+ [
1111
+ 7,
1112
+ "d",
1113
+ "vec2f"
1114
+ ],
1115
+ ["cbx", "cby"]
1116
+ ], [
1117
+ 6,
1118
+ [
1119
+ 7,
1120
+ "d",
1121
+ "vec2f"
1122
+ ],
1123
+ [[5, "0"], [5, "0"]]
1124
+ ]]
1125
+ ]]
1126
+ ],
1127
+ "+",
1128
+ [
1129
+ 6,
1130
+ [
1131
+ 7,
1132
+ "std",
1133
+ "min"
1134
+ ],
1135
+ [[
1136
+ 6,
1137
+ [
1138
+ 7,
1139
+ "std",
1140
+ "max"
1141
+ ],
1142
+ ["cbx", "cby"]
1143
+ ], [5, "0"]]
1144
+ ]
1145
+ ]
1146
+ ],
1147
+ [
1148
+ 13,
1149
+ "card",
1150
+ [
1151
+ 1,
1152
+ [
1153
+ 6,
1154
+ [
1155
+ 7,
1156
+ "std",
1157
+ "smoothstep"
1158
+ ],
1159
+ [
1160
+ "boxSoft",
1161
+ [
1162
+ 1,
1163
+ "boxSoft",
1164
+ "*",
1165
+ [
1166
+ 4,
1167
+ "-",
1168
+ [5, "0.6"]
1169
+ ]
1170
+ ],
1171
+ "dcard"
1172
+ ]
1173
+ ],
1174
+ "*",
1175
+ "facing"
1176
+ ]
1177
+ ],
1178
+ [10, [
1179
+ 6,
1180
+ [
1181
+ 7,
1182
+ "env",
1183
+ "add"
1184
+ ],
1185
+ [[
1186
+ 6,
1187
+ [
1188
+ 7,
1189
+ [
1190
+ 6,
1191
+ [
1192
+ 7,
1193
+ "d",
1194
+ "vec3f"
1195
+ ],
1196
+ [
1197
+ [5, "0.5"],
1198
+ [5, "0.5"],
1199
+ [5, "0.52"]
1200
+ ]
1201
+ ],
1202
+ "mul"
1203
+ ],
1204
+ ["card"]
1205
+ ]]
1206
+ ]]
1207
+ ]],
1208
+ "externalNames": ["std", "d"]
1209
+ },
1210
+ externals: () => ({
1211
+ std: std_exports,
1212
+ d: data_exports
1213
+ })
1214
+ }) && $.f)({}));
1215
+ const chromeComposite = src_default.fn([
1216
+ vec4f,
1217
+ vec4f,
1218
+ vec4f,
1219
+ vec2f,
1220
+ vec2f,
1221
+ vec2f,
1222
+ vec3f,
1223
+ vec3f,
1224
+ vec3f,
1225
+ vec4f,
1226
+ vec4f,
1227
+ vec4f,
1228
+ vec4f
1229
+ ], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((surf0, surfX, surfY, sdfUV, uv, viewportSize, tint, warmC, coolC, p0, p1, p2, p3) => {
1230
+ "use gpu";
1231
+ const scl = p0.x;
1232
+ const edgeSoftness = p0.y;
1233
+ const bevelWidth = p0.z;
1234
+ const bevelShape = p0.w;
1235
+ const curvature = p1.x;
1236
+ const environment = p1.y;
1237
+ const envRotation = p1.z;
1238
+ const soft = p1.w;
1239
+ const dispersion = p2.x;
1240
+ const spectral = p2.y;
1241
+ const animTime = p2.z;
1242
+ const volumetric = p2.w;
1243
+ const waviness = p3.x;
1244
+ const shadows = p3.y;
1245
+ const mobile = p3.z;
1246
+ const aspect = __tsover_div(viewportSize.x, viewportSize.y);
1247
+ const sharpEdge = max(__tsover_mul(edgeSoftness, .5), .001);
1248
+ const pxH = __tsover_div(1, viewportSize.y);
1249
+ const sdfRaw = surf0.x;
1250
+ const sdf = __tsover_div(sdfRaw, scl);
1251
+ if (sdf > __tsover_mul(pxH, 2)) return vec4f(0, 0, 0, 0);
1252
+ const EPS = .01;
1253
+ const gradX = __tsover_div(__tsover_sub(surfX.x, sdfRaw), EPS);
1254
+ const gradY = __tsover_div(__tsover_sub(surfY.x, sdfRaw), EPS);
1255
+ const glen = max(length(vec2f(gradX, gradY)), 1e-4);
1256
+ const gx = __tsover_div(gradX, glen);
1257
+ const gy = __tsover_div(gradY, glen);
1258
+ const fx = select(__tsover_sub(sdfUV.x, .5), surf0.y, volumetric > .5);
1259
+ const fy = select(__tsover_sub(sdfUV.y, .5), surf0.z, volumetric > .5);
1260
+ const bw = max(bevelWidth, .003);
1261
+ const depth = __tsover_mul(sdf, -1);
1262
+ const t0 = clamp(__tsover_div(depth, bw), 0, 1);
1263
+ const rimN = perlin12d(vec2f(__tsover_mul(fx, 21), __tsover_mul(fy, 21)));
1264
+ const sBev = bevelSin(clamp(__tsover_add(t0, __tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(rimN.x, waviness), .22), t0), __tsover_sub(1, t0)), 4)), 0, 1), bevelShape);
1265
+ const pr = .0081;
1266
+ const sPillow = __tsover_mul(__tsover_mul(curvature, .14), __tsover_div(pr, __tsover_add(__tsover_mul(depth, depth), pr)));
1267
+ const flen = length(vec2f(fx, fy));
1268
+ const dgx = __tsover_div(fx, max(flen, 1e-4));
1269
+ const dgy = __tsover_div(fy, max(flen, 1e-4));
1270
+ const sSphere = __tsover_mul(__tsover_mul(curvature, .75), smoothstep(0, .5, flen));
1271
+ const sEdge = max(sBev, sPillow);
1272
+ const txy = vec2f(__tsover_add(__tsover_mul(gx, sEdge), __tsover_mul(dgx, sSphere)), __tsover_add(__tsover_mul(gy, sEdge), __tsover_mul(dgy, sSphere)));
1273
+ const tl = min(length(txy), .9995);
1274
+ const tn = txy.mul(__tsover_div(tl, max(length(txy), 1e-4)));
1275
+ const cz = sqrt(__tsover_sub(1, __tsover_mul(tl, tl)));
1276
+ const nGeo = select(vec3f(tn.x, tn.y, __tsover_mul(cz, -1)), normalize(vec3f(clamp(__tsover_div(__tsover_sub(surfX.w, surf0.w), EPS), -5, 5), clamp(__tsover_div(__tsover_sub(surfY.w, surf0.w), EPS), -5, 5), -1)), volumetric > .5);
1277
+ const wn = perlin12d(vec2f(__tsover_add(__tsover_mul(fx, 1.05), __tsover_mul(animTime, .08)), __tsover_mul(fy, 1.05)));
1278
+ const gMax = f32(4);
1279
+ const wxg = clamp(wn.y, __tsover_mul(gMax, -1), gMax);
1280
+ const wyg = clamp(wn.z, __tsover_mul(gMax, -1), gMax);
1281
+ const wAmt = __tsover_mul(waviness, .2);
1282
+ const n = normalize(vec3f(__tsover_add(nGeo.x, __tsover_mul(wxg, wAmt)), __tsover_add(nGeo.y, __tsover_mul(wyg, wAmt)), nGeo.z));
1283
+ const fov = .55;
1284
+ const viewI = normalize(vec3f(__tsover_mul(__tsover_mul(__tsover_sub(uv.x, .5), aspect), fov), __tsover_mul(__tsover_sub(uv.y, .5), fov), 1));
1285
+ const R = reflect(viewI, n);
1286
+ const cosV = clamp(__tsover_mul(dot(n, viewI), -1), 0, 1);
1287
+ const tiltV = __tsover_sub(1, cosV);
1288
+ const rotA = __tsover_add(__tsover_mul(envRotation, DEG_TO_RAD), __tsover_mul(sin(__tsover_mul(animTime, .23)), .05));
1289
+ const envC = cos(rotA);
1290
+ const envS = sin(rotA);
1291
+ const upY = __tsover_mul(R.y, -1);
1292
+ const rx0 = __tsover_sub(__tsover_mul(R.x, envC), __tsover_mul(upY, envS));
1293
+ const ry0 = __tsover_add(__tsover_mul(R.x, envS), __tsover_mul(upY, envC));
1294
+ const orbit = __tsover_add(__tsover_mul(sin(__tsover_mul(animTime, .5)), .4), __tsover_mul(sin(__tsover_add(__tsover_mul(animTime, .19), 1.7)), .2));
1295
+ const oc = cos(orbit);
1296
+ const os = sin(orbit);
1297
+ const rx = __tsover_add(__tsover_mul(rx0, oc), __tsover_mul(R.z, os));
1298
+ const rz0 = __tsover_sub(__tsover_mul(R.z, oc), __tsover_mul(rx0, os));
1299
+ const nod = __tsover_mul(sin(__tsover_add(__tsover_mul(animTime, .31), .9)), .12);
1300
+ const nc = cos(nod);
1301
+ const ns = sin(nod);
1302
+ const ry = __tsover_sub(__tsover_mul(ry0, nc), __tsover_mul(rz0, ns));
1303
+ const rz = __tsover_add(__tsover_mul(rz0, nc), __tsover_mul(ry0, ns));
1304
+ const dir = vec3f(rx, ry, rz);
1305
+ const faceness = smoothstep(.75, 1, __tsover_mul(n.z, -1));
1306
+ const softEff = __tsover_add(soft, __tsover_mul(faceness, .2));
1307
+ const envG = chromeStudio(dir, softEff, soft, spectral, shadows, warmC, coolC);
1308
+ let envR = envG.x;
1309
+ let envB = envG.z;
1310
+ if (mobile < .5) {
1311
+ const delta = __tsover_mul(dispersion, __tsover_add(.004, __tsover_mul(__tsover_mul(tiltV, tiltV), .06)));
1312
+ const envRt = chromeStudio(vec3f(rx, __tsover_add(ry, delta), rz), softEff, soft, spectral, shadows, warmC, coolC);
1313
+ const envBt = chromeStudio(vec3f(rx, __tsover_sub(ry, delta), rz), softEff, soft, spectral, shadows, warmC, coolC);
1314
+ envR = envRt.x;
1315
+ envB = envBt.z;
1316
+ }
1317
+ let env = vec3f(envR, envG.y, envB);
1318
+ env = env.mul(environment);
1319
+ const rgb = neutral(env.mul(tint));
1320
+ const transition = smoothstep(0, 1, clamp(__tsover_mul(__tsover_div(__tsover_mul(sdf, -1), sharpEdge), 32), 0, 1));
1321
+ return vec4f(rgb.x, rgb.y, rgb.z, transition);
1322
+ }), {
1323
+ v: 1,
1324
+ name: void 0,
1325
+ ast: {
1326
+ "params": [
1327
+ {
1328
+ "type": "i",
1329
+ "name": "surf0"
1330
+ },
1331
+ {
1332
+ "type": "i",
1333
+ "name": "surfX"
1334
+ },
1335
+ {
1336
+ "type": "i",
1337
+ "name": "surfY"
1338
+ },
1339
+ {
1340
+ "type": "i",
1341
+ "name": "sdfUV"
1342
+ },
1343
+ {
1344
+ "type": "i",
1345
+ "name": "uv"
1346
+ },
1347
+ {
1348
+ "type": "i",
1349
+ "name": "viewportSize"
1350
+ },
1351
+ {
1352
+ "type": "i",
1353
+ "name": "tint"
1354
+ },
1355
+ {
1356
+ "type": "i",
1357
+ "name": "warmC"
1358
+ },
1359
+ {
1360
+ "type": "i",
1361
+ "name": "coolC"
1362
+ },
1363
+ {
1364
+ "type": "i",
1365
+ "name": "p0"
1366
+ },
1367
+ {
1368
+ "type": "i",
1369
+ "name": "p1"
1370
+ },
1371
+ {
1372
+ "type": "i",
1373
+ "name": "p2"
1374
+ },
1375
+ {
1376
+ "type": "i",
1377
+ "name": "p3"
1378
+ }
1379
+ ],
1380
+ "body": [0, [
1381
+ [
1382
+ 13,
1383
+ "scl",
1384
+ [
1385
+ 7,
1386
+ "p0",
1387
+ "x"
1388
+ ]
1389
+ ],
1390
+ [
1391
+ 13,
1392
+ "edgeSoftness",
1393
+ [
1394
+ 7,
1395
+ "p0",
1396
+ "y"
1397
+ ]
1398
+ ],
1399
+ [
1400
+ 13,
1401
+ "bevelWidth",
1402
+ [
1403
+ 7,
1404
+ "p0",
1405
+ "z"
1406
+ ]
1407
+ ],
1408
+ [
1409
+ 13,
1410
+ "bevelShape",
1411
+ [
1412
+ 7,
1413
+ "p0",
1414
+ "w"
1415
+ ]
1416
+ ],
1417
+ [
1418
+ 13,
1419
+ "curvature",
1420
+ [
1421
+ 7,
1422
+ "p1",
1423
+ "x"
1424
+ ]
1425
+ ],
1426
+ [
1427
+ 13,
1428
+ "environment",
1429
+ [
1430
+ 7,
1431
+ "p1",
1432
+ "y"
1433
+ ]
1434
+ ],
1435
+ [
1436
+ 13,
1437
+ "envRotation",
1438
+ [
1439
+ 7,
1440
+ "p1",
1441
+ "z"
1442
+ ]
1443
+ ],
1444
+ [
1445
+ 13,
1446
+ "soft",
1447
+ [
1448
+ 7,
1449
+ "p1",
1450
+ "w"
1451
+ ]
1452
+ ],
1453
+ [
1454
+ 13,
1455
+ "dispersion",
1456
+ [
1457
+ 7,
1458
+ "p2",
1459
+ "x"
1460
+ ]
1461
+ ],
1462
+ [
1463
+ 13,
1464
+ "spectral",
1465
+ [
1466
+ 7,
1467
+ "p2",
1468
+ "y"
1469
+ ]
1470
+ ],
1471
+ [
1472
+ 13,
1473
+ "animTime",
1474
+ [
1475
+ 7,
1476
+ "p2",
1477
+ "z"
1478
+ ]
1479
+ ],
1480
+ [
1481
+ 13,
1482
+ "volumetric",
1483
+ [
1484
+ 7,
1485
+ "p2",
1486
+ "w"
1487
+ ]
1488
+ ],
1489
+ [
1490
+ 13,
1491
+ "waviness",
1492
+ [
1493
+ 7,
1494
+ "p3",
1495
+ "x"
1496
+ ]
1497
+ ],
1498
+ [
1499
+ 13,
1500
+ "shadows",
1501
+ [
1502
+ 7,
1503
+ "p3",
1504
+ "y"
1505
+ ]
1506
+ ],
1507
+ [
1508
+ 13,
1509
+ "mobile",
1510
+ [
1511
+ 7,
1512
+ "p3",
1513
+ "z"
1514
+ ]
1515
+ ],
1516
+ [
1517
+ 13,
1518
+ "aspect",
1519
+ [
1520
+ 1,
1521
+ [
1522
+ 7,
1523
+ "viewportSize",
1524
+ "x"
1525
+ ],
1526
+ "/",
1527
+ [
1528
+ 7,
1529
+ "viewportSize",
1530
+ "y"
1531
+ ]
1532
+ ]
1533
+ ],
1534
+ [
1535
+ 13,
1536
+ "sharpEdge",
1537
+ [
1538
+ 6,
1539
+ [
1540
+ 7,
1541
+ "std",
1542
+ "max"
1543
+ ],
1544
+ [[
1545
+ 1,
1546
+ "edgeSoftness",
1547
+ "*",
1548
+ [5, "0.5"]
1549
+ ], [5, "0.001"]]
1550
+ ]
1551
+ ],
1552
+ [
1553
+ 13,
1554
+ "pxH",
1555
+ [
1556
+ 1,
1557
+ [5, "1"],
1558
+ "/",
1559
+ [
1560
+ 7,
1561
+ "viewportSize",
1562
+ "y"
1563
+ ]
1564
+ ]
1565
+ ],
1566
+ [
1567
+ 13,
1568
+ "sdfRaw",
1569
+ [
1570
+ 7,
1571
+ "surf0",
1572
+ "x"
1573
+ ]
1574
+ ],
1575
+ [
1576
+ 13,
1577
+ "sdf",
1578
+ [
1579
+ 1,
1580
+ "sdfRaw",
1581
+ "/",
1582
+ "scl"
1583
+ ]
1584
+ ],
1585
+ [
1586
+ 11,
1587
+ [
1588
+ 1,
1589
+ "sdf",
1590
+ ">",
1591
+ [
1592
+ 1,
1593
+ "pxH",
1594
+ "*",
1595
+ [5, "2"]
1596
+ ]
1597
+ ],
1598
+ [10, [
1599
+ 6,
1600
+ [
1601
+ 7,
1602
+ "d",
1603
+ "vec4f"
1604
+ ],
1605
+ [
1606
+ [5, "0"],
1607
+ [5, "0"],
1608
+ [5, "0"],
1609
+ [5, "0"]
1610
+ ]
1611
+ ]]
1612
+ ],
1613
+ [
1614
+ 13,
1615
+ "EPS",
1616
+ [5, "0.01"]
1617
+ ],
1618
+ [
1619
+ 13,
1620
+ "gradX",
1621
+ [
1622
+ 1,
1623
+ [
1624
+ 1,
1625
+ [
1626
+ 7,
1627
+ "surfX",
1628
+ "x"
1629
+ ],
1630
+ "-",
1631
+ "sdfRaw"
1632
+ ],
1633
+ "/",
1634
+ "EPS"
1635
+ ]
1636
+ ],
1637
+ [
1638
+ 13,
1639
+ "gradY",
1640
+ [
1641
+ 1,
1642
+ [
1643
+ 1,
1644
+ [
1645
+ 7,
1646
+ "surfY",
1647
+ "x"
1648
+ ],
1649
+ "-",
1650
+ "sdfRaw"
1651
+ ],
1652
+ "/",
1653
+ "EPS"
1654
+ ]
1655
+ ],
1656
+ [
1657
+ 13,
1658
+ "glen",
1659
+ [
1660
+ 6,
1661
+ [
1662
+ 7,
1663
+ "std",
1664
+ "max"
1665
+ ],
1666
+ [[
1667
+ 6,
1668
+ [
1669
+ 7,
1670
+ "std",
1671
+ "length"
1672
+ ],
1673
+ [[
1674
+ 6,
1675
+ [
1676
+ 7,
1677
+ "d",
1678
+ "vec2f"
1679
+ ],
1680
+ ["gradX", "gradY"]
1681
+ ]]
1682
+ ], [5, "0.0001"]]
1683
+ ]
1684
+ ],
1685
+ [
1686
+ 13,
1687
+ "gx",
1688
+ [
1689
+ 1,
1690
+ "gradX",
1691
+ "/",
1692
+ "glen"
1693
+ ]
1694
+ ],
1695
+ [
1696
+ 13,
1697
+ "gy",
1698
+ [
1699
+ 1,
1700
+ "gradY",
1701
+ "/",
1702
+ "glen"
1703
+ ]
1704
+ ],
1705
+ [
1706
+ 13,
1707
+ "fx",
1708
+ [
1709
+ 6,
1710
+ [
1711
+ 7,
1712
+ "std",
1713
+ "select"
1714
+ ],
1715
+ [
1716
+ [
1717
+ 1,
1718
+ [
1719
+ 7,
1720
+ "sdfUV",
1721
+ "x"
1722
+ ],
1723
+ "-",
1724
+ [5, "0.5"]
1725
+ ],
1726
+ [
1727
+ 7,
1728
+ "surf0",
1729
+ "y"
1730
+ ],
1731
+ [
1732
+ 1,
1733
+ "volumetric",
1734
+ ">",
1735
+ [5, "0.5"]
1736
+ ]
1737
+ ]
1738
+ ]
1739
+ ],
1740
+ [
1741
+ 13,
1742
+ "fy",
1743
+ [
1744
+ 6,
1745
+ [
1746
+ 7,
1747
+ "std",
1748
+ "select"
1749
+ ],
1750
+ [
1751
+ [
1752
+ 1,
1753
+ [
1754
+ 7,
1755
+ "sdfUV",
1756
+ "y"
1757
+ ],
1758
+ "-",
1759
+ [5, "0.5"]
1760
+ ],
1761
+ [
1762
+ 7,
1763
+ "surf0",
1764
+ "z"
1765
+ ],
1766
+ [
1767
+ 1,
1768
+ "volumetric",
1769
+ ">",
1770
+ [5, "0.5"]
1771
+ ]
1772
+ ]
1773
+ ]
1774
+ ],
1775
+ [
1776
+ 13,
1777
+ "bw",
1778
+ [
1779
+ 6,
1780
+ [
1781
+ 7,
1782
+ "std",
1783
+ "max"
1784
+ ],
1785
+ ["bevelWidth", [5, "0.003"]]
1786
+ ]
1787
+ ],
1788
+ [
1789
+ 13,
1790
+ "depth",
1791
+ [
1792
+ 1,
1793
+ "sdf",
1794
+ "*",
1795
+ [
1796
+ 4,
1797
+ "-",
1798
+ [5, "1"]
1799
+ ]
1800
+ ]
1801
+ ],
1802
+ [
1803
+ 13,
1804
+ "t0",
1805
+ [
1806
+ 6,
1807
+ [
1808
+ 7,
1809
+ "std",
1810
+ "clamp"
1811
+ ],
1812
+ [
1813
+ [
1814
+ 1,
1815
+ "depth",
1816
+ "/",
1817
+ "bw"
1818
+ ],
1819
+ [5, "0"],
1820
+ [5, "1"]
1821
+ ]
1822
+ ]
1823
+ ],
1824
+ [
1825
+ 13,
1826
+ "rimN",
1827
+ [
1828
+ 6,
1829
+ [
1830
+ 7,
1831
+ "noise",
1832
+ "perlin12d"
1833
+ ],
1834
+ [[
1835
+ 6,
1836
+ [
1837
+ 7,
1838
+ "d",
1839
+ "vec2f"
1840
+ ],
1841
+ [[
1842
+ 1,
1843
+ "fx",
1844
+ "*",
1845
+ [5, "21"]
1846
+ ], [
1847
+ 1,
1848
+ "fy",
1849
+ "*",
1850
+ [5, "21"]
1851
+ ]]
1852
+ ]]
1853
+ ]
1854
+ ],
1855
+ [
1856
+ 13,
1857
+ "tt",
1858
+ [
1859
+ 6,
1860
+ [
1861
+ 7,
1862
+ "std",
1863
+ "clamp"
1864
+ ],
1865
+ [
1866
+ [
1867
+ 1,
1868
+ "t0",
1869
+ "+",
1870
+ [
1871
+ 1,
1872
+ [
1873
+ 1,
1874
+ [
1875
+ 1,
1876
+ [
1877
+ 1,
1878
+ [
1879
+ 1,
1880
+ [
1881
+ 7,
1882
+ "rimN",
1883
+ "x"
1884
+ ],
1885
+ "*",
1886
+ "waviness"
1887
+ ],
1888
+ "*",
1889
+ [5, "0.22"]
1890
+ ],
1891
+ "*",
1892
+ "t0"
1893
+ ],
1894
+ "*",
1895
+ [
1896
+ 1,
1897
+ [5, "1"],
1898
+ "-",
1899
+ "t0"
1900
+ ]
1901
+ ],
1902
+ "*",
1903
+ [5, "4"]
1904
+ ]
1905
+ ],
1906
+ [5, "0"],
1907
+ [5, "1"]
1908
+ ]
1909
+ ]
1910
+ ],
1911
+ [
1912
+ 13,
1913
+ "sBev",
1914
+ [
1915
+ 6,
1916
+ "bevelSin",
1917
+ ["tt", "bevelShape"]
1918
+ ]
1919
+ ],
1920
+ [
1921
+ 13,
1922
+ "pr",
1923
+ [5, "0.0081"]
1924
+ ],
1925
+ [
1926
+ 13,
1927
+ "sPillow",
1928
+ [
1929
+ 1,
1930
+ [
1931
+ 1,
1932
+ "curvature",
1933
+ "*",
1934
+ [5, "0.14"]
1935
+ ],
1936
+ "*",
1937
+ [
1938
+ 1,
1939
+ "pr",
1940
+ "/",
1941
+ [
1942
+ 1,
1943
+ [
1944
+ 1,
1945
+ "depth",
1946
+ "*",
1947
+ "depth"
1948
+ ],
1949
+ "+",
1950
+ "pr"
1951
+ ]
1952
+ ]
1953
+ ]
1954
+ ],
1955
+ [
1956
+ 13,
1957
+ "flen",
1958
+ [
1959
+ 6,
1960
+ [
1961
+ 7,
1962
+ "std",
1963
+ "length"
1964
+ ],
1965
+ [[
1966
+ 6,
1967
+ [
1968
+ 7,
1969
+ "d",
1970
+ "vec2f"
1971
+ ],
1972
+ ["fx", "fy"]
1973
+ ]]
1974
+ ]
1975
+ ],
1976
+ [
1977
+ 13,
1978
+ "dgx",
1979
+ [
1980
+ 1,
1981
+ "fx",
1982
+ "/",
1983
+ [
1984
+ 6,
1985
+ [
1986
+ 7,
1987
+ "std",
1988
+ "max"
1989
+ ],
1990
+ ["flen", [5, "0.0001"]]
1991
+ ]
1992
+ ]
1993
+ ],
1994
+ [
1995
+ 13,
1996
+ "dgy",
1997
+ [
1998
+ 1,
1999
+ "fy",
2000
+ "/",
2001
+ [
2002
+ 6,
2003
+ [
2004
+ 7,
2005
+ "std",
2006
+ "max"
2007
+ ],
2008
+ ["flen", [5, "0.0001"]]
2009
+ ]
2010
+ ]
2011
+ ],
2012
+ [
2013
+ 13,
2014
+ "sSphere",
2015
+ [
2016
+ 1,
2017
+ [
2018
+ 1,
2019
+ "curvature",
2020
+ "*",
2021
+ [5, "0.75"]
2022
+ ],
2023
+ "*",
2024
+ [
2025
+ 6,
2026
+ [
2027
+ 7,
2028
+ "std",
2029
+ "smoothstep"
2030
+ ],
2031
+ [
2032
+ [5, "0"],
2033
+ [5, "0.5"],
2034
+ "flen"
2035
+ ]
2036
+ ]
2037
+ ]
2038
+ ],
2039
+ [
2040
+ 13,
2041
+ "sEdge",
2042
+ [
2043
+ 6,
2044
+ [
2045
+ 7,
2046
+ "std",
2047
+ "max"
2048
+ ],
2049
+ ["sBev", "sPillow"]
2050
+ ]
2051
+ ],
2052
+ [
2053
+ 13,
2054
+ "txy",
2055
+ [
2056
+ 6,
2057
+ [
2058
+ 7,
2059
+ "d",
2060
+ "vec2f"
2061
+ ],
2062
+ [[
2063
+ 1,
2064
+ [
2065
+ 1,
2066
+ "gx",
2067
+ "*",
2068
+ "sEdge"
2069
+ ],
2070
+ "+",
2071
+ [
2072
+ 1,
2073
+ "dgx",
2074
+ "*",
2075
+ "sSphere"
2076
+ ]
2077
+ ], [
2078
+ 1,
2079
+ [
2080
+ 1,
2081
+ "gy",
2082
+ "*",
2083
+ "sEdge"
2084
+ ],
2085
+ "+",
2086
+ [
2087
+ 1,
2088
+ "dgy",
2089
+ "*",
2090
+ "sSphere"
2091
+ ]
2092
+ ]]
2093
+ ]
2094
+ ],
2095
+ [
2096
+ 13,
2097
+ "tl",
2098
+ [
2099
+ 6,
2100
+ [
2101
+ 7,
2102
+ "std",
2103
+ "min"
2104
+ ],
2105
+ [[
2106
+ 6,
2107
+ [
2108
+ 7,
2109
+ "std",
2110
+ "length"
2111
+ ],
2112
+ ["txy"]
2113
+ ], [5, "0.9995"]]
2114
+ ]
2115
+ ],
2116
+ [
2117
+ 13,
2118
+ "tn",
2119
+ [
2120
+ 6,
2121
+ [
2122
+ 7,
2123
+ "txy",
2124
+ "mul"
2125
+ ],
2126
+ [[
2127
+ 1,
2128
+ "tl",
2129
+ "/",
2130
+ [
2131
+ 6,
2132
+ [
2133
+ 7,
2134
+ "std",
2135
+ "max"
2136
+ ],
2137
+ [[
2138
+ 6,
2139
+ [
2140
+ 7,
2141
+ "std",
2142
+ "length"
2143
+ ],
2144
+ ["txy"]
2145
+ ], [5, "0.0001"]]
2146
+ ]
2147
+ ]]
2148
+ ]
2149
+ ],
2150
+ [
2151
+ 13,
2152
+ "cz",
2153
+ [
2154
+ 6,
2155
+ [
2156
+ 7,
2157
+ "std",
2158
+ "sqrt"
2159
+ ],
2160
+ [[
2161
+ 1,
2162
+ [5, "1"],
2163
+ "-",
2164
+ [
2165
+ 1,
2166
+ "tl",
2167
+ "*",
2168
+ "tl"
2169
+ ]
2170
+ ]]
2171
+ ]
2172
+ ],
2173
+ [
2174
+ 13,
2175
+ "nBevel",
2176
+ [
2177
+ 6,
2178
+ [
2179
+ 7,
2180
+ "d",
2181
+ "vec3f"
2182
+ ],
2183
+ [
2184
+ [
2185
+ 7,
2186
+ "tn",
2187
+ "x"
2188
+ ],
2189
+ [
2190
+ 7,
2191
+ "tn",
2192
+ "y"
2193
+ ],
2194
+ [
2195
+ 1,
2196
+ "cz",
2197
+ "*",
2198
+ [
2199
+ 4,
2200
+ "-",
2201
+ [5, "1"]
2202
+ ]
2203
+ ]
2204
+ ]
2205
+ ]
2206
+ ],
2207
+ [
2208
+ 13,
2209
+ "ddx",
2210
+ [
2211
+ 6,
2212
+ [
2213
+ 7,
2214
+ "std",
2215
+ "clamp"
2216
+ ],
2217
+ [
2218
+ [
2219
+ 1,
2220
+ [
2221
+ 1,
2222
+ [
2223
+ 7,
2224
+ "surfX",
2225
+ "w"
2226
+ ],
2227
+ "-",
2228
+ [
2229
+ 7,
2230
+ "surf0",
2231
+ "w"
2232
+ ]
2233
+ ],
2234
+ "/",
2235
+ "EPS"
2236
+ ],
2237
+ [
2238
+ 4,
2239
+ "-",
2240
+ [5, "5"]
2241
+ ],
2242
+ [5, "5"]
2243
+ ]
2244
+ ]
2245
+ ],
2246
+ [
2247
+ 13,
2248
+ "ddy",
2249
+ [
2250
+ 6,
2251
+ [
2252
+ 7,
2253
+ "std",
2254
+ "clamp"
2255
+ ],
2256
+ [
2257
+ [
2258
+ 1,
2259
+ [
2260
+ 1,
2261
+ [
2262
+ 7,
2263
+ "surfY",
2264
+ "w"
2265
+ ],
2266
+ "-",
2267
+ [
2268
+ 7,
2269
+ "surf0",
2270
+ "w"
2271
+ ]
2272
+ ],
2273
+ "/",
2274
+ "EPS"
2275
+ ],
2276
+ [
2277
+ 4,
2278
+ "-",
2279
+ [5, "5"]
2280
+ ],
2281
+ [5, "5"]
2282
+ ]
2283
+ ]
2284
+ ],
2285
+ [
2286
+ 13,
2287
+ "nVol",
2288
+ [
2289
+ 6,
2290
+ [
2291
+ 7,
2292
+ "std",
2293
+ "normalize"
2294
+ ],
2295
+ [[
2296
+ 6,
2297
+ [
2298
+ 7,
2299
+ "d",
2300
+ "vec3f"
2301
+ ],
2302
+ [
2303
+ "ddx",
2304
+ "ddy",
2305
+ [
2306
+ 4,
2307
+ "-",
2308
+ [5, "1"]
2309
+ ]
2310
+ ]
2311
+ ]]
2312
+ ]
2313
+ ],
2314
+ [
2315
+ 13,
2316
+ "nGeo",
2317
+ [
2318
+ 6,
2319
+ [
2320
+ 7,
2321
+ "std",
2322
+ "select"
2323
+ ],
2324
+ [
2325
+ "nBevel",
2326
+ "nVol",
2327
+ [
2328
+ 1,
2329
+ "volumetric",
2330
+ ">",
2331
+ [5, "0.5"]
2332
+ ]
2333
+ ]
2334
+ ]
2335
+ ],
2336
+ [
2337
+ 13,
2338
+ "wq",
2339
+ [
2340
+ 6,
2341
+ [
2342
+ 7,
2343
+ "d",
2344
+ "vec2f"
2345
+ ],
2346
+ [[
2347
+ 1,
2348
+ [
2349
+ 1,
2350
+ "fx",
2351
+ "*",
2352
+ [5, "1.05"]
2353
+ ],
2354
+ "+",
2355
+ [
2356
+ 1,
2357
+ "animTime",
2358
+ "*",
2359
+ [5, "0.08"]
2360
+ ]
2361
+ ], [
2362
+ 1,
2363
+ "fy",
2364
+ "*",
2365
+ [5, "1.05"]
2366
+ ]]
2367
+ ]
2368
+ ],
2369
+ [
2370
+ 13,
2371
+ "wn",
2372
+ [
2373
+ 6,
2374
+ [
2375
+ 7,
2376
+ "noise",
2377
+ "perlin12d"
2378
+ ],
2379
+ ["wq"]
2380
+ ]
2381
+ ],
2382
+ [
2383
+ 13,
2384
+ "gMax",
2385
+ [
2386
+ 6,
2387
+ [
2388
+ 7,
2389
+ "d",
2390
+ "f32"
2391
+ ],
2392
+ [[5, "4"]]
2393
+ ]
2394
+ ],
2395
+ [
2396
+ 13,
2397
+ "wxg",
2398
+ [
2399
+ 6,
2400
+ [
2401
+ 7,
2402
+ "std",
2403
+ "clamp"
2404
+ ],
2405
+ [
2406
+ [
2407
+ 7,
2408
+ "wn",
2409
+ "y"
2410
+ ],
2411
+ [
2412
+ 1,
2413
+ "gMax",
2414
+ "*",
2415
+ [
2416
+ 4,
2417
+ "-",
2418
+ [5, "1"]
2419
+ ]
2420
+ ],
2421
+ "gMax"
2422
+ ]
2423
+ ]
2424
+ ],
2425
+ [
2426
+ 13,
2427
+ "wyg",
2428
+ [
2429
+ 6,
2430
+ [
2431
+ 7,
2432
+ "std",
2433
+ "clamp"
2434
+ ],
2435
+ [
2436
+ [
2437
+ 7,
2438
+ "wn",
2439
+ "z"
2440
+ ],
2441
+ [
2442
+ 1,
2443
+ "gMax",
2444
+ "*",
2445
+ [
2446
+ 4,
2447
+ "-",
2448
+ [5, "1"]
2449
+ ]
2450
+ ],
2451
+ "gMax"
2452
+ ]
2453
+ ]
2454
+ ],
2455
+ [
2456
+ 13,
2457
+ "wAmt",
2458
+ [
2459
+ 1,
2460
+ "waviness",
2461
+ "*",
2462
+ [5, "0.2"]
2463
+ ]
2464
+ ],
2465
+ [
2466
+ 13,
2467
+ "n",
2468
+ [
2469
+ 6,
2470
+ [
2471
+ 7,
2472
+ "std",
2473
+ "normalize"
2474
+ ],
2475
+ [[
2476
+ 6,
2477
+ [
2478
+ 7,
2479
+ "d",
2480
+ "vec3f"
2481
+ ],
2482
+ [
2483
+ [
2484
+ 1,
2485
+ [
2486
+ 7,
2487
+ "nGeo",
2488
+ "x"
2489
+ ],
2490
+ "+",
2491
+ [
2492
+ 1,
2493
+ "wxg",
2494
+ "*",
2495
+ "wAmt"
2496
+ ]
2497
+ ],
2498
+ [
2499
+ 1,
2500
+ [
2501
+ 7,
2502
+ "nGeo",
2503
+ "y"
2504
+ ],
2505
+ "+",
2506
+ [
2507
+ 1,
2508
+ "wyg",
2509
+ "*",
2510
+ "wAmt"
2511
+ ]
2512
+ ],
2513
+ [
2514
+ 7,
2515
+ "nGeo",
2516
+ "z"
2517
+ ]
2518
+ ]
2519
+ ]]
2520
+ ]
2521
+ ],
2522
+ [
2523
+ 13,
2524
+ "fov",
2525
+ [5, "0.55"]
2526
+ ],
2527
+ [
2528
+ 13,
2529
+ "viewI",
2530
+ [
2531
+ 6,
2532
+ [
2533
+ 7,
2534
+ "std",
2535
+ "normalize"
2536
+ ],
2537
+ [[
2538
+ 6,
2539
+ [
2540
+ 7,
2541
+ "d",
2542
+ "vec3f"
2543
+ ],
2544
+ [
2545
+ [
2546
+ 1,
2547
+ [
2548
+ 1,
2549
+ [
2550
+ 1,
2551
+ [
2552
+ 7,
2553
+ "uv",
2554
+ "x"
2555
+ ],
2556
+ "-",
2557
+ [5, "0.5"]
2558
+ ],
2559
+ "*",
2560
+ "aspect"
2561
+ ],
2562
+ "*",
2563
+ "fov"
2564
+ ],
2565
+ [
2566
+ 1,
2567
+ [
2568
+ 1,
2569
+ [
2570
+ 7,
2571
+ "uv",
2572
+ "y"
2573
+ ],
2574
+ "-",
2575
+ [5, "0.5"]
2576
+ ],
2577
+ "*",
2578
+ "fov"
2579
+ ],
2580
+ [5, "1"]
2581
+ ]
2582
+ ]]
2583
+ ]
2584
+ ],
2585
+ [
2586
+ 13,
2587
+ "R",
2588
+ [
2589
+ 6,
2590
+ [
2591
+ 7,
2592
+ "std",
2593
+ "reflect"
2594
+ ],
2595
+ ["viewI", "n"]
2596
+ ]
2597
+ ],
2598
+ [
2599
+ 13,
2600
+ "cosV",
2601
+ [
2602
+ 6,
2603
+ [
2604
+ 7,
2605
+ "std",
2606
+ "clamp"
2607
+ ],
2608
+ [
2609
+ [
2610
+ 1,
2611
+ [
2612
+ 6,
2613
+ [
2614
+ 7,
2615
+ "std",
2616
+ "dot"
2617
+ ],
2618
+ ["n", "viewI"]
2619
+ ],
2620
+ "*",
2621
+ [
2622
+ 4,
2623
+ "-",
2624
+ [5, "1"]
2625
+ ]
2626
+ ],
2627
+ [5, "0"],
2628
+ [5, "1"]
2629
+ ]
2630
+ ]
2631
+ ],
2632
+ [
2633
+ 13,
2634
+ "tiltV",
2635
+ [
2636
+ 1,
2637
+ [5, "1"],
2638
+ "-",
2639
+ "cosV"
2640
+ ]
2641
+ ],
2642
+ [
2643
+ 13,
2644
+ "rotA",
2645
+ [
2646
+ 1,
2647
+ [
2648
+ 1,
2649
+ "envRotation",
2650
+ "*",
2651
+ "DEG_TO_RAD"
2652
+ ],
2653
+ "+",
2654
+ [
2655
+ 1,
2656
+ [
2657
+ 6,
2658
+ [
2659
+ 7,
2660
+ "std",
2661
+ "sin"
2662
+ ],
2663
+ [[
2664
+ 1,
2665
+ "animTime",
2666
+ "*",
2667
+ [5, "0.23"]
2668
+ ]]
2669
+ ],
2670
+ "*",
2671
+ [5, "0.05"]
2672
+ ]
2673
+ ]
2674
+ ],
2675
+ [
2676
+ 13,
2677
+ "envC",
2678
+ [
2679
+ 6,
2680
+ [
2681
+ 7,
2682
+ "std",
2683
+ "cos"
2684
+ ],
2685
+ ["rotA"]
2686
+ ]
2687
+ ],
2688
+ [
2689
+ 13,
2690
+ "envS",
2691
+ [
2692
+ 6,
2693
+ [
2694
+ 7,
2695
+ "std",
2696
+ "sin"
2697
+ ],
2698
+ ["rotA"]
2699
+ ]
2700
+ ],
2701
+ [
2702
+ 13,
2703
+ "upY",
2704
+ [
2705
+ 1,
2706
+ [
2707
+ 7,
2708
+ "R",
2709
+ "y"
2710
+ ],
2711
+ "*",
2712
+ [
2713
+ 4,
2714
+ "-",
2715
+ [5, "1"]
2716
+ ]
2717
+ ]
2718
+ ],
2719
+ [
2720
+ 13,
2721
+ "rx0",
2722
+ [
2723
+ 1,
2724
+ [
2725
+ 1,
2726
+ [
2727
+ 7,
2728
+ "R",
2729
+ "x"
2730
+ ],
2731
+ "*",
2732
+ "envC"
2733
+ ],
2734
+ "-",
2735
+ [
2736
+ 1,
2737
+ "upY",
2738
+ "*",
2739
+ "envS"
2740
+ ]
2741
+ ]
2742
+ ],
2743
+ [
2744
+ 13,
2745
+ "ry0",
2746
+ [
2747
+ 1,
2748
+ [
2749
+ 1,
2750
+ [
2751
+ 7,
2752
+ "R",
2753
+ "x"
2754
+ ],
2755
+ "*",
2756
+ "envS"
2757
+ ],
2758
+ "+",
2759
+ [
2760
+ 1,
2761
+ "upY",
2762
+ "*",
2763
+ "envC"
2764
+ ]
2765
+ ]
2766
+ ],
2767
+ [
2768
+ 13,
2769
+ "orbit",
2770
+ [
2771
+ 1,
2772
+ [
2773
+ 1,
2774
+ [
2775
+ 6,
2776
+ [
2777
+ 7,
2778
+ "std",
2779
+ "sin"
2780
+ ],
2781
+ [[
2782
+ 1,
2783
+ "animTime",
2784
+ "*",
2785
+ [5, "0.5"]
2786
+ ]]
2787
+ ],
2788
+ "*",
2789
+ [5, "0.4"]
2790
+ ],
2791
+ "+",
2792
+ [
2793
+ 1,
2794
+ [
2795
+ 6,
2796
+ [
2797
+ 7,
2798
+ "std",
2799
+ "sin"
2800
+ ],
2801
+ [[
2802
+ 1,
2803
+ [
2804
+ 1,
2805
+ "animTime",
2806
+ "*",
2807
+ [5, "0.19"]
2808
+ ],
2809
+ "+",
2810
+ [5, "1.7"]
2811
+ ]]
2812
+ ],
2813
+ "*",
2814
+ [5, "0.2"]
2815
+ ]
2816
+ ]
2817
+ ],
2818
+ [
2819
+ 13,
2820
+ "oc",
2821
+ [
2822
+ 6,
2823
+ [
2824
+ 7,
2825
+ "std",
2826
+ "cos"
2827
+ ],
2828
+ ["orbit"]
2829
+ ]
2830
+ ],
2831
+ [
2832
+ 13,
2833
+ "os",
2834
+ [
2835
+ 6,
2836
+ [
2837
+ 7,
2838
+ "std",
2839
+ "sin"
2840
+ ],
2841
+ ["orbit"]
2842
+ ]
2843
+ ],
2844
+ [
2845
+ 13,
2846
+ "rx",
2847
+ [
2848
+ 1,
2849
+ [
2850
+ 1,
2851
+ "rx0",
2852
+ "*",
2853
+ "oc"
2854
+ ],
2855
+ "+",
2856
+ [
2857
+ 1,
2858
+ [
2859
+ 7,
2860
+ "R",
2861
+ "z"
2862
+ ],
2863
+ "*",
2864
+ "os"
2865
+ ]
2866
+ ]
2867
+ ],
2868
+ [
2869
+ 13,
2870
+ "rz0",
2871
+ [
2872
+ 1,
2873
+ [
2874
+ 1,
2875
+ [
2876
+ 7,
2877
+ "R",
2878
+ "z"
2879
+ ],
2880
+ "*",
2881
+ "oc"
2882
+ ],
2883
+ "-",
2884
+ [
2885
+ 1,
2886
+ "rx0",
2887
+ "*",
2888
+ "os"
2889
+ ]
2890
+ ]
2891
+ ],
2892
+ [
2893
+ 13,
2894
+ "nod",
2895
+ [
2896
+ 1,
2897
+ [
2898
+ 6,
2899
+ [
2900
+ 7,
2901
+ "std",
2902
+ "sin"
2903
+ ],
2904
+ [[
2905
+ 1,
2906
+ [
2907
+ 1,
2908
+ "animTime",
2909
+ "*",
2910
+ [5, "0.31"]
2911
+ ],
2912
+ "+",
2913
+ [5, "0.9"]
2914
+ ]]
2915
+ ],
2916
+ "*",
2917
+ [5, "0.12"]
2918
+ ]
2919
+ ],
2920
+ [
2921
+ 13,
2922
+ "nc",
2923
+ [
2924
+ 6,
2925
+ [
2926
+ 7,
2927
+ "std",
2928
+ "cos"
2929
+ ],
2930
+ ["nod"]
2931
+ ]
2932
+ ],
2933
+ [
2934
+ 13,
2935
+ "ns",
2936
+ [
2937
+ 6,
2938
+ [
2939
+ 7,
2940
+ "std",
2941
+ "sin"
2942
+ ],
2943
+ ["nod"]
2944
+ ]
2945
+ ],
2946
+ [
2947
+ 13,
2948
+ "ry",
2949
+ [
2950
+ 1,
2951
+ [
2952
+ 1,
2953
+ "ry0",
2954
+ "*",
2955
+ "nc"
2956
+ ],
2957
+ "-",
2958
+ [
2959
+ 1,
2960
+ "rz0",
2961
+ "*",
2962
+ "ns"
2963
+ ]
2964
+ ]
2965
+ ],
2966
+ [
2967
+ 13,
2968
+ "rz",
2969
+ [
2970
+ 1,
2971
+ [
2972
+ 1,
2973
+ "rz0",
2974
+ "*",
2975
+ "nc"
2976
+ ],
2977
+ "+",
2978
+ [
2979
+ 1,
2980
+ "ry0",
2981
+ "*",
2982
+ "ns"
2983
+ ]
2984
+ ]
2985
+ ],
2986
+ [
2987
+ 13,
2988
+ "dir",
2989
+ [
2990
+ 6,
2991
+ [
2992
+ 7,
2993
+ "d",
2994
+ "vec3f"
2995
+ ],
2996
+ [
2997
+ "rx",
2998
+ "ry",
2999
+ "rz"
3000
+ ]
3001
+ ]
3002
+ ],
3003
+ [
3004
+ 13,
3005
+ "faceness",
3006
+ [
3007
+ 6,
3008
+ [
3009
+ 7,
3010
+ "std",
3011
+ "smoothstep"
3012
+ ],
3013
+ [
3014
+ [5, "0.75"],
3015
+ [5, "1"],
3016
+ [
3017
+ 1,
3018
+ [
3019
+ 7,
3020
+ "n",
3021
+ "z"
3022
+ ],
3023
+ "*",
3024
+ [
3025
+ 4,
3026
+ "-",
3027
+ [5, "1"]
3028
+ ]
3029
+ ]
3030
+ ]
3031
+ ]
3032
+ ],
3033
+ [
3034
+ 13,
3035
+ "softEff",
3036
+ [
3037
+ 1,
3038
+ "soft",
3039
+ "+",
3040
+ [
3041
+ 1,
3042
+ "faceness",
3043
+ "*",
3044
+ [5, "0.2"]
3045
+ ]
3046
+ ]
3047
+ ],
3048
+ [
3049
+ 13,
3050
+ "envG",
3051
+ [
3052
+ 6,
3053
+ "chromeStudio",
3054
+ [
3055
+ "dir",
3056
+ "softEff",
3057
+ "soft",
3058
+ "spectral",
3059
+ "shadows",
3060
+ "warmC",
3061
+ "coolC"
3062
+ ]
3063
+ ]
3064
+ ],
3065
+ [
3066
+ 12,
3067
+ "envR",
3068
+ [
3069
+ 7,
3070
+ "envG",
3071
+ "x"
3072
+ ]
3073
+ ],
3074
+ [
3075
+ 12,
3076
+ "envB",
3077
+ [
3078
+ 7,
3079
+ "envG",
3080
+ "z"
3081
+ ]
3082
+ ],
3083
+ [
3084
+ 11,
3085
+ [
3086
+ 1,
3087
+ "mobile",
3088
+ "<",
3089
+ [5, "0.5"]
3090
+ ],
3091
+ [0, [
3092
+ [
3093
+ 13,
3094
+ "delta",
3095
+ [
3096
+ 1,
3097
+ "dispersion",
3098
+ "*",
3099
+ [
3100
+ 1,
3101
+ [5, "0.004"],
3102
+ "+",
3103
+ [
3104
+ 1,
3105
+ [
3106
+ 1,
3107
+ "tiltV",
3108
+ "*",
3109
+ "tiltV"
3110
+ ],
3111
+ "*",
3112
+ [5, "0.06"]
3113
+ ]
3114
+ ]
3115
+ ]
3116
+ ],
3117
+ [
3118
+ 13,
3119
+ "envRt",
3120
+ [
3121
+ 6,
3122
+ "chromeStudio",
3123
+ [
3124
+ [
3125
+ 6,
3126
+ [
3127
+ 7,
3128
+ "d",
3129
+ "vec3f"
3130
+ ],
3131
+ [
3132
+ "rx",
3133
+ [
3134
+ 1,
3135
+ "ry",
3136
+ "+",
3137
+ "delta"
3138
+ ],
3139
+ "rz"
3140
+ ]
3141
+ ],
3142
+ "softEff",
3143
+ "soft",
3144
+ "spectral",
3145
+ "shadows",
3146
+ "warmC",
3147
+ "coolC"
3148
+ ]
3149
+ ]
3150
+ ],
3151
+ [
3152
+ 13,
3153
+ "envBt",
3154
+ [
3155
+ 6,
3156
+ "chromeStudio",
3157
+ [
3158
+ [
3159
+ 6,
3160
+ [
3161
+ 7,
3162
+ "d",
3163
+ "vec3f"
3164
+ ],
3165
+ [
3166
+ "rx",
3167
+ [
3168
+ 1,
3169
+ "ry",
3170
+ "-",
3171
+ "delta"
3172
+ ],
3173
+ "rz"
3174
+ ]
3175
+ ],
3176
+ "softEff",
3177
+ "soft",
3178
+ "spectral",
3179
+ "shadows",
3180
+ "warmC",
3181
+ "coolC"
3182
+ ]
3183
+ ]
3184
+ ],
3185
+ [
3186
+ 2,
3187
+ "envR",
3188
+ "=",
3189
+ [
3190
+ 7,
3191
+ "envRt",
3192
+ "x"
3193
+ ]
3194
+ ],
3195
+ [
3196
+ 2,
3197
+ "envB",
3198
+ "=",
3199
+ [
3200
+ 7,
3201
+ "envBt",
3202
+ "z"
3203
+ ]
3204
+ ]
3205
+ ]]
3206
+ ],
3207
+ [
3208
+ 12,
3209
+ "env",
3210
+ [
3211
+ 6,
3212
+ [
3213
+ 7,
3214
+ "d",
3215
+ "vec3f"
3216
+ ],
3217
+ [
3218
+ "envR",
3219
+ [
3220
+ 7,
3221
+ "envG",
3222
+ "y"
3223
+ ],
3224
+ "envB"
3225
+ ]
3226
+ ]
3227
+ ],
3228
+ [
3229
+ 2,
3230
+ "env",
3231
+ "=",
3232
+ [
3233
+ 6,
3234
+ [
3235
+ 7,
3236
+ "env",
3237
+ "mul"
3238
+ ],
3239
+ ["environment"]
3240
+ ]
3241
+ ],
3242
+ [
3243
+ 13,
3244
+ "rgb",
3245
+ [
3246
+ 6,
3247
+ [
3248
+ 7,
3249
+ "tonemap",
3250
+ "neutral"
3251
+ ],
3252
+ [[
3253
+ 6,
3254
+ [
3255
+ 7,
3256
+ "env",
3257
+ "mul"
3258
+ ],
3259
+ ["tint"]
3260
+ ]]
3261
+ ]
3262
+ ],
3263
+ [
3264
+ 13,
3265
+ "transition",
3266
+ [
3267
+ 6,
3268
+ [
3269
+ 7,
3270
+ "std",
3271
+ "smoothstep"
3272
+ ],
3273
+ [
3274
+ [5, "0"],
3275
+ [5, "1"],
3276
+ [
3277
+ 6,
3278
+ [
3279
+ 7,
3280
+ "std",
3281
+ "clamp"
3282
+ ],
3283
+ [
3284
+ [
3285
+ 1,
3286
+ [
3287
+ 1,
3288
+ [
3289
+ 1,
3290
+ "sdf",
3291
+ "*",
3292
+ [
3293
+ 4,
3294
+ "-",
3295
+ [5, "1"]
3296
+ ]
3297
+ ],
3298
+ "/",
3299
+ "sharpEdge"
3300
+ ],
3301
+ "*",
3302
+ [5, "32"]
3303
+ ],
3304
+ [5, "0"],
3305
+ [5, "1"]
3306
+ ]
3307
+ ]
3308
+ ]
3309
+ ]
3310
+ ],
3311
+ [10, [
3312
+ 6,
3313
+ [
3314
+ 7,
3315
+ "d",
3316
+ "vec4f"
3317
+ ],
3318
+ [
3319
+ [
3320
+ 7,
3321
+ "rgb",
3322
+ "x"
3323
+ ],
3324
+ [
3325
+ 7,
3326
+ "rgb",
3327
+ "y"
3328
+ ],
3329
+ [
3330
+ 7,
3331
+ "rgb",
3332
+ "z"
3333
+ ],
3334
+ "transition"
3335
+ ]
3336
+ ]]
3337
+ ]],
3338
+ "externalNames": [
3339
+ "std",
3340
+ "d",
3341
+ "noise",
3342
+ "bevelSin",
3343
+ "DEG_TO_RAD",
3344
+ "chromeStudio",
3345
+ "tonemap"
3346
+ ]
3347
+ },
3348
+ externals: () => ({
3349
+ std: std_exports,
3350
+ d: data_exports,
3351
+ noise: noise_exports,
3352
+ bevelSin,
3353
+ DEG_TO_RAD,
3354
+ chromeStudio,
3355
+ tonemap: tonemap_exports
3356
+ })
3357
+ }) && $.f)({}));
3358
+ const componentDefinition = {
3359
+ name: "Chrome",
3360
+ boundingBoxDeclaration: shapeEffectBoundingBoxDeclaration,
3361
+ category: "Shape Effects",
3362
+ description: "Studio-lit mirror chrome — a precision-machined shape with a controllable polished bevel, softly convex faces and a photographic studio reflected in them: one huge frontal softbox, black flags, and thin warm/cool strip lights that fringe amber and ice-blue exactly where the reflections break",
3363
+ animatedTime: { speed: "speed" },
3364
+ extraFields: {
3365
+ ...VOLUMETRIC_FIELD_EXTRA_FIELDS,
3366
+ ...ANALYTIC_SDF_EXTRA_FIELDS
3367
+ },
3368
+ props: {
3369
+ origin: {
3370
+ default: "center",
3371
+ description: "Reference edge the center position is measured from (center default). Lets you pin the shape relative to a corner or the canvas centre.",
3372
+ ui: {
3373
+ type: "origin",
3374
+ label: "Origin",
3375
+ group: "Position"
3376
+ }
3377
+ },
3378
+ center: {
3379
+ default: {
3380
+ x: .5,
3381
+ y: .5
3382
+ },
3383
+ transform: transformPosition,
3384
+ description: "Center position of the chrome shape",
3385
+ ui: {
3386
+ type: "position",
3387
+ label: "Center",
3388
+ group: "Position",
3389
+ units: ["%", "px"]
3390
+ }
3391
+ },
3392
+ scale: {
3393
+ default: 1,
3394
+ description: "Scale of the chrome shape (1 = default size)",
3395
+ ui: {
3396
+ type: "range",
3397
+ min: .1,
3398
+ max: 3,
3399
+ step: .01,
3400
+ label: "Scale",
3401
+ group: "Position"
3402
+ }
3403
+ },
3404
+ rotation: {
3405
+ default: 0,
3406
+ description: "Rotation of the chrome shape in degrees",
3407
+ ui: {
3408
+ type: "range",
3409
+ min: 0,
3410
+ max: 360,
3411
+ step: 1,
3412
+ label: "Rotation",
3413
+ group: "Position"
3414
+ }
3415
+ },
3416
+ tint: {
3417
+ default: "#ffffff",
3418
+ transform: transformColor,
3419
+ description: "Metal tint multiplied into the reflection — white for silver chrome, warm ivory for gold, dusky rose for copper",
3420
+ ui: {
3421
+ type: "color",
3422
+ label: "Tint",
3423
+ group: "Metal"
3424
+ }
3425
+ },
3426
+ warmColor: {
3427
+ default: "#ffa94d",
3428
+ transform: transformColor,
3429
+ description: "Color of the warm strip light hugging the studio horizon — the amber band that fringes the reflections",
3430
+ ui: {
3431
+ type: "color",
3432
+ label: "Warm Light",
3433
+ group: "Metal"
3434
+ }
3435
+ },
3436
+ coolColor: {
3437
+ default: "#82a7e6",
3438
+ transform: transformColor,
3439
+ description: "Color of the cool wash below the horizon — the steel-blue zone the darker reflections fall into",
3440
+ ui: {
3441
+ type: "color",
3442
+ label: "Cool Light",
3443
+ group: "Metal"
3444
+ }
3445
+ },
3446
+ bevelWidth: {
3447
+ default: .028,
3448
+ description: "Width of the polished edge bevel, relative to the shape — thin for machined jewellery edges, wide for soft pillowed metal",
3449
+ ui: {
3450
+ type: ["range", "map"],
3451
+ min: .005,
3452
+ max: .2,
3453
+ step: .001,
3454
+ label: "Bevel Width",
3455
+ group: "Bevel"
3456
+ }
3457
+ },
3458
+ bevelShape: {
3459
+ default: .55,
3460
+ description: "Bevel profile — 0 = one smooth round fillet, 1 = machined: a steep outer fillet, a chamfer plateau and an inner knee, each catching its own line of light",
3461
+ ui: {
3462
+ type: ["range", "map"],
3463
+ min: 0,
3464
+ max: 1,
3465
+ step: .01,
3466
+ label: "Bevel Profile",
3467
+ group: "Bevel"
3468
+ }
3469
+ },
3470
+ curvature: {
3471
+ default: .5,
3472
+ description: "Convex doming of the faces — sweeps the big soft studio gradients across otherwise flat metal",
3473
+ ui: {
3474
+ type: ["range", "map"],
3475
+ min: 0,
3476
+ max: 1,
3477
+ step: .01,
3478
+ label: "Curvature",
3479
+ group: "Bevel"
3480
+ }
3481
+ },
3482
+ waviness: {
3483
+ default: .15,
3484
+ description: "Pressed-metal imperfection — gently bends the face reflections and wobbles the bevel light lines so the surface reads as real",
3485
+ ui: {
3486
+ type: ["range", "map"],
3487
+ min: 0,
3488
+ max: 1,
3489
+ step: .01,
3490
+ label: "Waviness",
3491
+ group: "Bevel"
3492
+ }
3493
+ },
3494
+ environment: {
3495
+ default: 1,
3496
+ description: "Exposure of the reflected studio — the overall brilliance of the chrome",
3497
+ ui: {
3498
+ type: ["range", "map"],
3499
+ min: 0,
3500
+ max: 2,
3501
+ step: .01,
3502
+ label: "Environment",
3503
+ group: "Studio"
3504
+ }
3505
+ },
3506
+ envRotation: {
3507
+ default: 0,
3508
+ description: "Rotates the whole reflected studio — spins where the softbox, flags and strips fall",
3509
+ ui: {
3510
+ type: ["range", "map"],
3511
+ min: 0,
3512
+ max: 360,
3513
+ step: 1,
3514
+ label: "Env Rotation",
3515
+ group: "Studio"
3516
+ }
3517
+ },
3518
+ softness: {
3519
+ default: .3,
3520
+ description: "Softness of the studio edges — 0 = razor polished reflections, 1 = satin diffusion",
3521
+ ui: {
3522
+ type: ["range", "map"],
3523
+ min: 0,
3524
+ max: 1,
3525
+ step: .01,
3526
+ label: "Softness",
3527
+ group: "Studio"
3528
+ }
3529
+ },
3530
+ spectral: {
3531
+ default: .9,
3532
+ description: "The coloured accent lights: an amber glow hugging the softbox edge and an ice-blue wash below it. 0 = a fully achromatic black-and-white studio.",
3533
+ ui: {
3534
+ type: ["range", "map"],
3535
+ min: 0,
3536
+ max: 2,
3537
+ step: .01,
3538
+ label: "Accent Lights",
3539
+ group: "Studio"
3540
+ }
3541
+ },
3542
+ dispersion: {
3543
+ default: .3,
3544
+ description: "Prismatic RGB splitting concentrated on the fast-curving bevel — thin rainbow micro-fringes along the edge highlights, distinct from the broad accent lights",
3545
+ ui: {
3546
+ type: ["range", "map"],
3547
+ min: 0,
3548
+ max: 1,
3549
+ step: .01,
3550
+ label: "Dispersion",
3551
+ group: "Studio"
3552
+ }
3553
+ },
3554
+ shadows: {
3555
+ default: .7,
3556
+ description: "Depth of the dark studio reflections — how hard the black side flags and floor crush toward graphite. 0 lifts them to a soft gray studio.",
3557
+ ui: {
3558
+ type: ["range", "map"],
3559
+ min: 0,
3560
+ max: 1,
3561
+ step: .01,
3562
+ label: "Shadows",
3563
+ group: "Studio"
3564
+ }
3565
+ },
3566
+ speed: {
3567
+ default: .5,
3568
+ description: "Speed of the studio orbit — the whole lighting environment slowly wanders around the piece, sliding the reflections across faces and edges. 0 freezes it.",
3569
+ ui: {
3570
+ type: "range",
3571
+ min: 0,
3572
+ max: 4,
3573
+ step: .01,
3574
+ label: "Speed",
3575
+ group: "Studio"
3576
+ }
3577
+ },
3578
+ edgeSoftness: {
3579
+ default: .05,
3580
+ description: "Softness of the shape boundary edge",
3581
+ ui: {
3582
+ type: "range",
3583
+ min: 0,
3584
+ max: 1,
3585
+ step: .01,
3586
+ label: "Edge Softness",
3587
+ group: "Surface"
3588
+ }
3589
+ },
3590
+ shape: {
3591
+ default: DEFAULT_SHAPE_CONFIG,
3592
+ description: "Serialized shape configuration (JSON)",
3593
+ ui: {
3594
+ type: "shape",
3595
+ label: "Shape",
3596
+ group: "Shape"
3597
+ }
3598
+ },
3599
+ shapeSdfUrl: {
3600
+ default: "",
3601
+ compileTime: true,
3602
+ description: "URL to a pre-generated SDF .bin file"
3603
+ },
3604
+ shapeType: {
3605
+ default: "",
3606
+ compileTime: true,
3607
+ description: "Active SDF shape type"
3608
+ }
3609
+ },
3610
+ compute: (params) => {
3611
+ const vf = createVolumetricFieldComputeNode(params, () => params.getCpuValue("shape"), "raw");
3612
+ return vf ? {
3613
+ outputs: vf.outputs,
3614
+ getComputeNodes: (fp) => vf.getComputeNodes(fp)
3615
+ } : null;
3616
+ },
3617
+ fragment: (params) => {
3618
+ const { computeOutputs, uniforms, propValues, ctx, getCpuValue } = params;
3619
+ let sampler;
3620
+ let gradSampler;
3621
+ let volumetric = false;
3622
+ const fieldTex = computeOutputs?.volumetricFieldTexture;
3623
+ if (fieldTex) {
3624
+ const s = buildVolumetricFieldSampler(fieldTex, {
3625
+ originX: uniforms._vfOriginX,
3626
+ originY: uniforms._vfOriginY,
3627
+ spanX: uniforms._vfSpanX,
3628
+ spanY: uniforms._vfSpanY,
3629
+ activeResF: uniforms._vfActiveRes,
3630
+ rBound: uniforms._vfRBound
3631
+ });
3632
+ sampler = s.volumetricFieldSampler;
3633
+ gradSampler = s.volumetricFieldSamplerFast;
3634
+ volumetric = true;
3635
+ } else {
3636
+ const shapeSdfUrl = propValues.shapeSdfUrl || "";
3637
+ const shapeType = propValues.shapeType || "";
3638
+ if (shapeSdfUrl) {
3639
+ sampler = createSvgSdfSampler(params, shapeSdfUrl);
3640
+ gradSampler = sampler;
3641
+ volumetric = isVolumetricShapeType(shapeType);
3642
+ } else {
3643
+ const st = resolveShapeType(shapeType, getCpuValue("shape"));
3644
+ sampler = createAnalyticSdfSampler(st, driveAnalyticSubProps(params, () => getCpuValue("shape")), "raw");
3645
+ gradSampler = sampler;
3646
+ volumetric = is3dShapeType(st);
3647
+ }
3648
+ }
3649
+ const sdfUV = call(sdfSpaceUV, "sdfSpaceUV", [
3650
+ uniforms.center,
3651
+ uniforms.scale,
3652
+ uniforms.rotation,
3653
+ ctx.uv,
3654
+ ctx.aspect
3655
+ ]);
3656
+ const surf0 = sampler(sdfUV);
3657
+ const surfX = gradSampler(call(offsetUV, "offsetUV", [
3658
+ sdfUV,
3659
+ floatE(.01),
3660
+ floatE(0)
3661
+ ]));
3662
+ const surfY = gradSampler(call(offsetUV, "offsetUV", [
3663
+ sdfUV,
3664
+ floatE(0),
3665
+ floatE(.01)
3666
+ ]));
3667
+ const t = animatedTime(params);
3668
+ const volFlag = floatE(volumetric ? 1 : 0);
3669
+ const mobileFlag = floatE(isMobileGpuViewport() ? 1 : 0);
3670
+ const p0 = vec4(uniforms.scale, uniforms.edgeSoftness, uniforms.bevelWidth, uniforms.bevelShape);
3671
+ const p1 = vec4(uniforms.curvature, uniforms.environment, uniforms.envRotation, uniforms.softness);
3672
+ const p2 = vec4(uniforms.dispersion, uniforms.spectral, t, volFlag);
3673
+ const p3 = vec4(uniforms.waviness, uniforms.shadows, mobileFlag, floatE(0));
3674
+ return call(chromeComposite, "chromeComposite", [
3675
+ surf0,
3676
+ surfX,
3677
+ surfY,
3678
+ sdfUV,
3679
+ ctx.uv,
3680
+ ctx.viewportSize,
3681
+ uniforms.tint.member("rgb"),
3682
+ uniforms.warmColor.member("rgb"),
3683
+ uniforms.coolColor.member("rgb"),
3684
+ p0,
3685
+ p1,
3686
+ p2,
3687
+ p3
3688
+ ]);
3689
+ }
3690
+ };
3691
+ var Chrome_default = componentDefinition;
3692
+ export { componentDefinition as i, chromeComposite as n, chromeStudio as r, Chrome_default as t };