shaders 2.5.110 → 2.5.111

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 (207) hide show
  1. package/dist/core/{Bulge-Chpbxxzj.js → Bulge-6gRUYqZS.js} +1 -1
  2. package/dist/core/{ConcentricSpin-Crfxti93.js → ConcentricSpin-Fegtvhl6.js} +1 -1
  3. package/dist/core/{CursorRipples-D-cfjHY5.js → CursorRipples-BqtHgpEq.js} +1 -1
  4. package/dist/core/{DiffuseBlur-eyM1v3ad.js → DiffuseBlur-B-Vki4ab.js} +1 -1
  5. package/dist/core/{FlowField-RyqiRxyI.js → FlowField-CTWyjeXm.js} +1 -1
  6. package/dist/core/FlutedGlass-B4FlyBOn.js +320 -0
  7. package/dist/core/{GridDistortion-SRyevgsp.js → GridDistortion-CVpebl48.js} +1 -1
  8. package/dist/core/{Kaleidoscope-CFWtKisp.js → Kaleidoscope-B0_OCrob.js} +1 -1
  9. package/dist/core/{Liquify-p-_qcb1f.js → Liquify-ZMAyGUIb.js} +1 -1
  10. package/dist/core/{Mirror-B7XmfGdw.js → Mirror-Gb0fugtF.js} +1 -1
  11. package/dist/core/{Perspective-BN_OpTZq.js → Perspective-SBZzprC5.js} +1 -1
  12. package/dist/core/{PolarCoordinates-CMYCFT4S.js → PolarCoordinates-Ckvb1eG0.js} +1 -1
  13. package/dist/core/{RectangularCoordinates-8Sa2GaDy.js → RectangularCoordinates-r0fTwVuL.js} +1 -1
  14. package/dist/core/{Shatter-ByKkCYTR.js → Shatter-CC3EFcP9.js} +1 -1
  15. package/dist/core/{Stretch--GV6hbru.js → Stretch-CJUUU-I1.js} +1 -1
  16. package/dist/core/{Twirl-v8pLqUTN.js → Twirl-CgRyZdT1.js} +1 -1
  17. package/dist/core/{VideoTexture-BMSdfLf_.js → VideoTexture-Cr1f0IOE.js} +1 -1
  18. package/dist/core/{WaveDistortion-BGdgj3Iz.js → WaveDistortion-iyTUI1lj.js} +1 -1
  19. package/dist/core/{WebcamTexture-Ds9IrtRn.js → WebcamTexture-BQJpZvC5.js} +1 -1
  20. package/dist/core/{edges-CfGcQniB.js → edges-CX_lJB9R.js} +13 -1
  21. package/dist/core/index.js +79 -78
  22. package/dist/core/registry.js +79 -78
  23. package/dist/core/shaderRegistry-SmtG2mTo.js +254 -0
  24. package/dist/core/shaderRegistry.d.ts.map +1 -1
  25. package/dist/core/shaders/Bulge/index.js +2 -2
  26. package/dist/core/shaders/ConcentricSpin/index.js +2 -2
  27. package/dist/core/shaders/CursorRipples/index.js +2 -2
  28. package/dist/core/shaders/DiffuseBlur/index.js +2 -2
  29. package/dist/core/shaders/FlowField/index.js +2 -2
  30. package/dist/core/shaders/FlutedGlass/index.d.ts +97 -0
  31. package/dist/core/shaders/FlutedGlass/index.d.ts.map +1 -0
  32. package/dist/core/shaders/FlutedGlass/index.js +6 -0
  33. package/dist/core/shaders/Fog/index.js +1 -1
  34. package/dist/core/shaders/Form3D/index.js +1 -1
  35. package/dist/core/shaders/Glass/index.js +1 -1
  36. package/dist/core/shaders/GlassTiles/index.js +1 -1
  37. package/dist/core/shaders/Glitch/index.js +1 -1
  38. package/dist/core/shaders/Glow/index.js +1 -1
  39. package/dist/core/shaders/Godrays/index.js +1 -1
  40. package/dist/core/shaders/Grayscale/index.js +1 -1
  41. package/dist/core/shaders/Grid/index.js +1 -1
  42. package/dist/core/shaders/GridDistortion/index.js +2 -2
  43. package/dist/core/shaders/Group/index.js +1 -1
  44. package/dist/core/shaders/Halftone/index.js +1 -1
  45. package/dist/core/shaders/HexGrid/index.js +1 -1
  46. package/dist/core/shaders/HueShift/index.js +1 -1
  47. package/dist/core/shaders/ImageTexture/index.js +1 -1
  48. package/dist/core/shaders/Invert/index.js +1 -1
  49. package/dist/core/shaders/Kaleidoscope/index.js +2 -2
  50. package/dist/core/shaders/LensFlare/index.js +1 -1
  51. package/dist/core/shaders/LinearBlur/index.js +1 -1
  52. package/dist/core/shaders/LinearGradient/index.js +1 -1
  53. package/dist/core/shaders/Liquify/index.js +2 -2
  54. package/dist/core/shaders/Mirror/index.js +2 -2
  55. package/dist/core/shaders/MultiPointGradient/index.js +1 -1
  56. package/dist/core/shaders/Neon/index.js +1 -1
  57. package/dist/core/shaders/Paper/index.js +1 -1
  58. package/dist/core/shaders/Perspective/index.js +2 -2
  59. package/dist/core/shaders/Pixelate/index.js +1 -1
  60. package/dist/core/shaders/Plasma/index.js +1 -1
  61. package/dist/core/shaders/PolarCoordinates/index.js +2 -2
  62. package/dist/core/shaders/Polygon/index.js +1 -1
  63. package/dist/core/shaders/Posterize/index.js +1 -1
  64. package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
  65. package/dist/core/shaders/RadialGradient/index.js +1 -1
  66. package/dist/core/shaders/RectangularCoordinates/index.js +2 -2
  67. package/dist/core/shaders/Ring/index.js +1 -1
  68. package/dist/core/shaders/Ripples/index.js +1 -1
  69. package/dist/core/shaders/RoundedRect/index.js +1 -1
  70. package/dist/core/shaders/Saturation/index.js +1 -1
  71. package/dist/core/shaders/Sharpness/index.js +1 -1
  72. package/dist/core/shaders/Shatter/index.js +2 -2
  73. package/dist/core/shaders/SimplexNoise/index.js +1 -1
  74. package/dist/core/shaders/SineWave/index.js +1 -1
  75. package/dist/core/shaders/Smoke/index.js +1 -1
  76. package/dist/core/shaders/SmokeFill/index.js +1 -1
  77. package/dist/core/shaders/Solarize/index.js +1 -1
  78. package/dist/core/shaders/SolidColor/index.js +1 -1
  79. package/dist/core/shaders/Spherize/index.js +1 -1
  80. package/dist/core/shaders/Spiral/index.js +1 -1
  81. package/dist/core/shaders/Star/index.js +1 -1
  82. package/dist/core/shaders/Strands/index.js +1 -1
  83. package/dist/core/shaders/Stretch/index.js +2 -2
  84. package/dist/core/shaders/Stripes/index.js +1 -1
  85. package/dist/core/shaders/StudioBackground/index.js +1 -1
  86. package/dist/core/shaders/Swirl/index.js +1 -1
  87. package/dist/core/shaders/TiltShift/index.js +1 -1
  88. package/dist/core/shaders/Tint/index.js +1 -1
  89. package/dist/core/shaders/Trapezoid/index.js +1 -1
  90. package/dist/core/shaders/Tritone/index.js +1 -1
  91. package/dist/core/shaders/Truchet/index.js +1 -1
  92. package/dist/core/shaders/Twirl/index.js +2 -2
  93. package/dist/core/shaders/VHS/index.js +1 -1
  94. package/dist/core/shaders/Vesica/index.js +1 -1
  95. package/dist/core/shaders/Vibrance/index.js +1 -1
  96. package/dist/core/shaders/VideoTexture/index.js +2 -2
  97. package/dist/core/shaders/Vignette/index.js +1 -1
  98. package/dist/core/shaders/Voronoi/index.js +1 -1
  99. package/dist/core/shaders/WaveDistortion/index.js +2 -2
  100. package/dist/core/shaders/Weave/index.js +1 -1
  101. package/dist/core/shaders/WebcamTexture/index.js +2 -2
  102. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  103. package/dist/js/createShader.js +1 -1
  104. package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
  105. package/dist/js/utils/generatePresetCode.js +19 -0
  106. package/dist/react/FlutedGlass.js +223 -0
  107. package/dist/react/Preview.js +1 -0
  108. package/dist/react/Shader.js +1 -1
  109. package/dist/react/components/FlutedGlass.d.ts +41 -0
  110. package/dist/react/components/FlutedGlass.d.ts.map +1 -0
  111. package/dist/react/engine/Preview.d.ts.map +1 -1
  112. package/dist/react/index.d.ts +1 -0
  113. package/dist/react/index.d.ts.map +1 -1
  114. package/dist/react/index.js +2 -1
  115. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  116. package/dist/react/utils/generatePresetCode.js +19 -0
  117. package/dist/registry.js +468 -0
  118. package/dist/solid/components/FlutedGlass.d.ts +38 -0
  119. package/dist/solid/components/FlutedGlass.d.ts.map +1 -0
  120. package/dist/solid/components/FlutedGlass.js +228 -0
  121. package/dist/solid/engine/Preview.d.ts.map +1 -1
  122. package/dist/solid/engine/Preview.js +76 -74
  123. package/dist/solid/engine/Shader.js +1 -1
  124. package/dist/solid/index.d.ts +1 -0
  125. package/dist/solid/index.d.ts.map +1 -1
  126. package/dist/solid/index.js +146 -144
  127. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  128. package/dist/solid/utils/generatePresetCode.js +19 -0
  129. package/dist/svelte/components/FlutedGlass.svelte.d.ts +28 -0
  130. package/dist/svelte/{generatePresetCode-jdOx6mhw.js → generatePresetCode-DAEzZxbM.js} +19 -0
  131. package/dist/svelte/index.d.ts +1 -0
  132. package/dist/svelte/index.js +769 -569
  133. package/dist/svelte/source/components/FlutedGlass.svelte +334 -0
  134. package/dist/svelte/source/engine/Preview.svelte +2 -0
  135. package/dist/svelte/source/index.js +1 -0
  136. package/dist/svelte/utils/generatePresetCode.js +1 -1
  137. package/dist/vue/FlutedGlass.js +3 -0
  138. package/dist/vue/FlutedGlass.vue_vue_type_script_setup_true_lang.js +226 -0
  139. package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
  140. package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
  141. package/dist/vue/components/FlutedGlass.vue.d.ts +63 -0
  142. package/dist/vue/components/FlutedGlass.vue.d.ts.map +1 -0
  143. package/dist/vue/index.d.ts +1 -0
  144. package/dist/vue/index.d.ts.map +1 -1
  145. package/dist/vue/index.js +2 -1
  146. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  147. package/dist/vue/utils/generatePresetCode.js +19 -0
  148. package/package.json +9 -1
  149. package/dist/core/shaderRegistry-DFzzFEKX.js +0 -252
  150. /package/dist/core/{Fog-BeKcPcTq.js → Fog-CIdU2Wn-.js} +0 -0
  151. /package/dist/core/{Form3D-Bufw6tZb.js → Form3D-CqmOXXGj.js} +0 -0
  152. /package/dist/core/{Glass-Bz9IKI2q.js → Glass-BCOkQbvW.js} +0 -0
  153. /package/dist/core/{GlassTiles-Dgh6nOaE.js → GlassTiles-CMx4NyO-.js} +0 -0
  154. /package/dist/core/{Glitch-BsbzLahF.js → Glitch-BdygvJKe.js} +0 -0
  155. /package/dist/core/{Glow-CUv1yHLZ.js → Glow-CsTZA75y.js} +0 -0
  156. /package/dist/core/{Godrays-D1LINbut.js → Godrays-w3ruw4NO.js} +0 -0
  157. /package/dist/core/{Grayscale-Ri-695Uh.js → Grayscale-ChaVI3AW.js} +0 -0
  158. /package/dist/core/{Grid-BYSsAIEv.js → Grid-CKbLS5tU.js} +0 -0
  159. /package/dist/core/{Group-CkhjTW59.js → Group-BqVJ4S7i.js} +0 -0
  160. /package/dist/core/{Halftone-BUCDTTAU.js → Halftone-BGQeBAgG.js} +0 -0
  161. /package/dist/core/{HexGrid-BUiDrehv.js → HexGrid-BFrnZEZT.js} +0 -0
  162. /package/dist/core/{HueShift-ctEX5vfo.js → HueShift-C1RxETwN.js} +0 -0
  163. /package/dist/core/{ImageTexture-uxj4LpF7.js → ImageTexture-DXhgMEOT.js} +0 -0
  164. /package/dist/core/{Invert-azYrcDMi.js → Invert-D3tc2UGp.js} +0 -0
  165. /package/dist/core/{LensFlare-ttrXgfea.js → LensFlare-B8x1fOKu.js} +0 -0
  166. /package/dist/core/{LinearBlur-By2aD8OO.js → LinearBlur-CshzmjfO.js} +0 -0
  167. /package/dist/core/{LinearGradient-CM02z32l.js → LinearGradient-Bzwquw_Q.js} +0 -0
  168. /package/dist/core/{MultiPointGradient-8zGSIM4U.js → MultiPointGradient-D0QQwizn.js} +0 -0
  169. /package/dist/core/{Neon-CMmGJzPy.js → Neon-eN4HlILk.js} +0 -0
  170. /package/dist/core/{Paper-B08rxNys.js → Paper-BmeUPAFe.js} +0 -0
  171. /package/dist/core/{Pixelate-dxPAFCRu.js → Pixelate-DqZcUKFK.js} +0 -0
  172. /package/dist/core/{Plasma-DGCw0cd7.js → Plasma-COq8mAw2.js} +0 -0
  173. /package/dist/core/{Polygon-CsCOt5YE.js → Polygon-BP5eKEiz.js} +0 -0
  174. /package/dist/core/{Posterize-Blv9pzPT.js → Posterize-CxYemXTn.js} +0 -0
  175. /package/dist/core/{ProgressiveBlur-NbvxFfRa.js → ProgressiveBlur-CNacb2Qx.js} +0 -0
  176. /package/dist/core/{RadialGradient-De0gtdh3.js → RadialGradient-SASVv2vb.js} +0 -0
  177. /package/dist/core/{Ring-kHH-DIDQ.js → Ring-CdJlzjRV.js} +0 -0
  178. /package/dist/core/{Ripples-Bf6Zwg6X.js → Ripples-BRZPZszq.js} +0 -0
  179. /package/dist/core/{RoundedRect-B0sWh2BN.js → RoundedRect-lzzi_1J7.js} +0 -0
  180. /package/dist/core/{Saturation-DCFAIUvZ.js → Saturation-n-aXJS81.js} +0 -0
  181. /package/dist/core/{Sharpness-DSpEoCSL.js → Sharpness-7tm7b-Bu.js} +0 -0
  182. /package/dist/core/{SimplexNoise-CMuU8n27.js → SimplexNoise-0-rfeziU.js} +0 -0
  183. /package/dist/core/{SineWave-VTNDSK_g.js → SineWave--i6bSrad.js} +0 -0
  184. /package/dist/core/{Smoke-9MJIAKq7.js → Smoke-BgPHDWDR.js} +0 -0
  185. /package/dist/core/{SmokeFill-qV2iRIts.js → SmokeFill-Dtctgt2S.js} +0 -0
  186. /package/dist/core/{Solarize-CWDgSBiv.js → Solarize-gNMmd47z.js} +0 -0
  187. /package/dist/core/{SolidColor-DhMdM3bE.js → SolidColor-D9ikFFu3.js} +0 -0
  188. /package/dist/core/{Spherize-BZxwopX8.js → Spherize-ZBorEEOU.js} +0 -0
  189. /package/dist/core/{Spiral-gpkw37l1.js → Spiral-sg-i02xw.js} +0 -0
  190. /package/dist/core/{Star-WJAOZ5P5.js → Star-BcqCHzHG.js} +0 -0
  191. /package/dist/core/{Strands-DOthZNHt.js → Strands-XLpth60o.js} +0 -0
  192. /package/dist/core/{Stripes-CFCXw1_N.js → Stripes-DEOXYnmy.js} +0 -0
  193. /package/dist/core/{StudioBackground-DJr-cxOL.js → StudioBackground-B5dpTR_X.js} +0 -0
  194. /package/dist/core/{Swirl-B_KxdaX2.js → Swirl-WqPvBF7u.js} +0 -0
  195. /package/dist/core/{TiltShift-BSAyR0Me.js → TiltShift-CYb6OQoU.js} +0 -0
  196. /package/dist/core/{Tint-DdvnpzEJ.js → Tint-C-bJpwd0.js} +0 -0
  197. /package/dist/core/{Trapezoid-Co0sIA73.js → Trapezoid-BvTEGdW_.js} +0 -0
  198. /package/dist/core/{Tritone-Ckb6hTkI.js → Tritone-LX-qUAGy.js} +0 -0
  199. /package/dist/core/{Truchet-CkFSkniR.js → Truchet-DE4lgYRb.js} +0 -0
  200. /package/dist/core/{VHS-mKd1QBBj.js → VHS-DbNjgUEX.js} +0 -0
  201. /package/dist/core/{Vesica-CxP7UD0a.js → Vesica-DqJMyqmy.js} +0 -0
  202. /package/dist/core/{Vibrance-WR5yQv_9.js → Vibrance-IDvmP1Xw.js} +0 -0
  203. /package/dist/core/{Vignette-hAIKTi35.js → Vignette-CA12P9VO.js} +0 -0
  204. /package/dist/core/{Voronoi-DOGmwUSK.js → Voronoi-DXeJ3xOf.js} +0 -0
  205. /package/dist/core/{Weave-CIP_EUPa.js → Weave-Bn2CfeE4.js} +0 -0
  206. /package/dist/core/{ZoomBlur-BuIVpHGG.js → ZoomBlur-DOzP_sOK.js} +0 -0
  207. /package/dist/core/{browser-D8zonASQ.js → browser-CsOpQ0L_.js} +0 -0
package/dist/registry.js CHANGED
@@ -8330,6 +8330,474 @@ export const shaderRegistry = [
8330
8330
  }
8331
8331
  }
8332
8332
  },
8333
+ {
8334
+ "name": "FlutedGlass",
8335
+ "category": "Distortions",
8336
+ "description": "Full-screen fluted glass effect — refracts content through repeating cylindrical bars",
8337
+ "fileName": "FlutedGlass",
8338
+ "requiresChild": true,
8339
+ "definition": {
8340
+ "name": "FlutedGlass",
8341
+ "category": "Distortions",
8342
+ "description": "Full-screen fluted glass effect — refracts content through repeating cylindrical bars",
8343
+ "requiresRTT": true,
8344
+ "requiresChild": true,
8345
+ "props": {
8346
+ "shape": {
8347
+ "default": "bars",
8348
+ "description": "Cross-section shape of each flute",
8349
+ "compileTime": true,
8350
+ "ui": {
8351
+ "type": "select",
8352
+ "options": [
8353
+ {
8354
+ "label": "Bars",
8355
+ "value": "bars"
8356
+ },
8357
+ {
8358
+ "label": "Rounded",
8359
+ "value": "rounded"
8360
+ },
8361
+ {
8362
+ "label": "Waves",
8363
+ "value": "waves"
8364
+ }
8365
+ ],
8366
+ "label": "Shape",
8367
+ "group": "Effect"
8368
+ }
8369
+ },
8370
+ "angle": {
8371
+ "default": 0,
8372
+ "description": "Direction of the flutes in degrees (0 = vertical bars)",
8373
+ "ui": {
8374
+ "type": [
8375
+ "range",
8376
+ "map"
8377
+ ],
8378
+ "min": 0,
8379
+ "max": 360,
8380
+ "step": 1,
8381
+ "label": "Angle",
8382
+ "group": "Effect"
8383
+ }
8384
+ },
8385
+ "frequency": {
8386
+ "default": 10,
8387
+ "description": "Number of flutes across the longest viewport axis",
8388
+ "ui": {
8389
+ "type": [
8390
+ "range",
8391
+ "map"
8392
+ ],
8393
+ "min": 1,
8394
+ "max": 20,
8395
+ "step": 1,
8396
+ "label": "Frequency",
8397
+ "group": "Effect"
8398
+ }
8399
+ },
8400
+ "softness": {
8401
+ "default": 0.5,
8402
+ "description": "How smoothly distortion fades from each flute centre to its edge (0 = flat middle / sharp seams, 1 = gentle curve)",
8403
+ "ui": {
8404
+ "type": [
8405
+ "range",
8406
+ "map"
8407
+ ],
8408
+ "min": 0,
8409
+ "max": 1,
8410
+ "step": 0.01,
8411
+ "label": "Softness",
8412
+ "group": "Effect"
8413
+ }
8414
+ },
8415
+ "waveAmplitude": {
8416
+ "default": 0.06,
8417
+ "description": "How far each flute sways horizontally as it travels (Waves shape only)",
8418
+ "ui": {
8419
+ "type": [
8420
+ "range",
8421
+ "map"
8422
+ ],
8423
+ "min": 0,
8424
+ "max": 0.5,
8425
+ "step": 0.01,
8426
+ "label": "Wave Amplitude",
8427
+ "group": "Effect",
8428
+ "condition": {
8429
+ "shape": "waves"
8430
+ }
8431
+ }
8432
+ },
8433
+ "waveFrequency": {
8434
+ "default": 1.5,
8435
+ "description": "How many sways fit along each flute (Waves shape only)",
8436
+ "ui": {
8437
+ "type": [
8438
+ "range",
8439
+ "map"
8440
+ ],
8441
+ "min": 0.1,
8442
+ "max": 10,
8443
+ "step": 0.1,
8444
+ "label": "Wave Frequency",
8445
+ "group": "Effect",
8446
+ "condition": {
8447
+ "shape": "waves"
8448
+ }
8449
+ }
8450
+ },
8451
+ "speed": {
8452
+ "default": 0,
8453
+ "description": "Animation speed — drifts the flute pattern over time and flows wave perturbations",
8454
+ "ui": {
8455
+ "type": "range",
8456
+ "min": -1,
8457
+ "max": 1,
8458
+ "step": 0.05,
8459
+ "label": "Speed",
8460
+ "group": "Animation"
8461
+ }
8462
+ },
8463
+ "refraction": {
8464
+ "default": 1.5,
8465
+ "description": "How aggressively each flute bends content beneath it",
8466
+ "ui": {
8467
+ "type": [
8468
+ "range",
8469
+ "map"
8470
+ ],
8471
+ "min": 0,
8472
+ "max": 4,
8473
+ "step": 0.01,
8474
+ "label": "Refraction",
8475
+ "group": "Effect"
8476
+ }
8477
+ },
8478
+ "aberration": {
8479
+ "default": 0.2,
8480
+ "description": "Chromatic aberration — splits RGB along the refraction direction at flute seams",
8481
+ "ui": {
8482
+ "type": [
8483
+ "range",
8484
+ "map"
8485
+ ],
8486
+ "min": 0,
8487
+ "max": 1,
8488
+ "step": 0.01,
8489
+ "label": "Aberration",
8490
+ "group": "Effect"
8491
+ }
8492
+ },
8493
+ "lightAngle": {
8494
+ "default": 30,
8495
+ "description": "Direction the light source is coming from (0 = head-on, 90 = grazing)",
8496
+ "ui": {
8497
+ "type": "range",
8498
+ "min": -90,
8499
+ "max": 90,
8500
+ "step": 1,
8501
+ "label": "Light Angle",
8502
+ "group": "Highlight"
8503
+ }
8504
+ },
8505
+ "highlight": {
8506
+ "default": 0.2,
8507
+ "description": "Strength of the specular reflection on each flute",
8508
+ "ui": {
8509
+ "type": [
8510
+ "range",
8511
+ "map"
8512
+ ],
8513
+ "min": 0,
8514
+ "max": 2,
8515
+ "step": 0.01,
8516
+ "label": "Highlight",
8517
+ "group": "Highlight"
8518
+ }
8519
+ },
8520
+ "highlightSoftness": {
8521
+ "default": 0.3,
8522
+ "description": "Spread of the specular peak (0 = pin-tight, 1 = broad sheen)",
8523
+ "ui": {
8524
+ "type": [
8525
+ "range",
8526
+ "map"
8527
+ ],
8528
+ "min": 0,
8529
+ "max": 1,
8530
+ "step": 0.01,
8531
+ "label": "Highlight Softness",
8532
+ "group": "Highlight"
8533
+ }
8534
+ },
8535
+ "highlightColor": {
8536
+ "default": "#ffffff",
8537
+ "description": "Color of the specular highlight",
8538
+ "ui": {
8539
+ "type": "color",
8540
+ "label": "Highlight Color",
8541
+ "group": "Highlight"
8542
+ }
8543
+ },
8544
+ "edges": {
8545
+ "default": "mirror",
8546
+ "description": "How to handle edges when distortion samples beyond the canvas",
8547
+ "compileTime": true,
8548
+ "ui": {
8549
+ "type": "select",
8550
+ "options": [
8551
+ {
8552
+ "label": "Stretch",
8553
+ "value": "stretch"
8554
+ },
8555
+ {
8556
+ "label": "Transparent",
8557
+ "value": "transparent"
8558
+ },
8559
+ {
8560
+ "label": "Mirror",
8561
+ "value": "mirror"
8562
+ },
8563
+ {
8564
+ "label": "Wrap",
8565
+ "value": "wrap"
8566
+ }
8567
+ ],
8568
+ "label": "Edges",
8569
+ "group": "Effect"
8570
+ }
8571
+ }
8572
+ }
8573
+ },
8574
+ "propsMetadata": {
8575
+ "shape": {
8576
+ "ui": {
8577
+ "type": "select",
8578
+ "options": [
8579
+ {
8580
+ "label": "Bars",
8581
+ "value": "bars"
8582
+ },
8583
+ {
8584
+ "label": "Rounded",
8585
+ "value": "rounded"
8586
+ },
8587
+ {
8588
+ "label": "Waves",
8589
+ "value": "waves"
8590
+ }
8591
+ ],
8592
+ "label": "Shape",
8593
+ "group": "Effect"
8594
+ },
8595
+ "default": "bars",
8596
+ "description": "Cross-section shape of each flute"
8597
+ },
8598
+ "angle": {
8599
+ "ui": {
8600
+ "type": [
8601
+ "range",
8602
+ "map"
8603
+ ],
8604
+ "min": 0,
8605
+ "max": 360,
8606
+ "step": 1,
8607
+ "label": "Angle",
8608
+ "group": "Effect"
8609
+ },
8610
+ "default": 0,
8611
+ "description": "Direction of the flutes in degrees (0 = vertical bars)"
8612
+ },
8613
+ "frequency": {
8614
+ "ui": {
8615
+ "type": [
8616
+ "range",
8617
+ "map"
8618
+ ],
8619
+ "min": 1,
8620
+ "max": 20,
8621
+ "step": 1,
8622
+ "label": "Frequency",
8623
+ "group": "Effect"
8624
+ },
8625
+ "default": 10,
8626
+ "description": "Number of flutes across the longest viewport axis"
8627
+ },
8628
+ "softness": {
8629
+ "ui": {
8630
+ "type": [
8631
+ "range",
8632
+ "map"
8633
+ ],
8634
+ "min": 0,
8635
+ "max": 1,
8636
+ "step": 0.01,
8637
+ "label": "Softness",
8638
+ "group": "Effect"
8639
+ },
8640
+ "default": 0.5,
8641
+ "description": "How smoothly distortion fades from each flute centre to its edge (0 = flat middle / sharp seams, 1 = gentle curve)"
8642
+ },
8643
+ "waveAmplitude": {
8644
+ "ui": {
8645
+ "type": [
8646
+ "range",
8647
+ "map"
8648
+ ],
8649
+ "min": 0,
8650
+ "max": 0.5,
8651
+ "step": 0.01,
8652
+ "label": "Wave Amplitude",
8653
+ "group": "Effect",
8654
+ "condition": {
8655
+ "shape": "waves"
8656
+ }
8657
+ },
8658
+ "default": 0.06,
8659
+ "description": "How far each flute sways horizontally as it travels (Waves shape only)"
8660
+ },
8661
+ "waveFrequency": {
8662
+ "ui": {
8663
+ "type": [
8664
+ "range",
8665
+ "map"
8666
+ ],
8667
+ "min": 0.1,
8668
+ "max": 10,
8669
+ "step": 0.1,
8670
+ "label": "Wave Frequency",
8671
+ "group": "Effect",
8672
+ "condition": {
8673
+ "shape": "waves"
8674
+ }
8675
+ },
8676
+ "default": 1.5,
8677
+ "description": "How many sways fit along each flute (Waves shape only)"
8678
+ },
8679
+ "speed": {
8680
+ "ui": {
8681
+ "type": "range",
8682
+ "min": -1,
8683
+ "max": 1,
8684
+ "step": 0.05,
8685
+ "label": "Speed",
8686
+ "group": "Animation"
8687
+ },
8688
+ "default": 0,
8689
+ "description": "Animation speed — drifts the flute pattern over time and flows wave perturbations"
8690
+ },
8691
+ "refraction": {
8692
+ "ui": {
8693
+ "type": [
8694
+ "range",
8695
+ "map"
8696
+ ],
8697
+ "min": 0,
8698
+ "max": 4,
8699
+ "step": 0.01,
8700
+ "label": "Refraction",
8701
+ "group": "Effect"
8702
+ },
8703
+ "default": 1.5,
8704
+ "description": "How aggressively each flute bends content beneath it"
8705
+ },
8706
+ "aberration": {
8707
+ "ui": {
8708
+ "type": [
8709
+ "range",
8710
+ "map"
8711
+ ],
8712
+ "min": 0,
8713
+ "max": 1,
8714
+ "step": 0.01,
8715
+ "label": "Aberration",
8716
+ "group": "Effect"
8717
+ },
8718
+ "default": 0.2,
8719
+ "description": "Chromatic aberration — splits RGB along the refraction direction at flute seams"
8720
+ },
8721
+ "lightAngle": {
8722
+ "ui": {
8723
+ "type": "range",
8724
+ "min": -90,
8725
+ "max": 90,
8726
+ "step": 1,
8727
+ "label": "Light Angle",
8728
+ "group": "Highlight"
8729
+ },
8730
+ "default": 30,
8731
+ "description": "Direction the light source is coming from (0 = head-on, 90 = grazing)"
8732
+ },
8733
+ "highlight": {
8734
+ "ui": {
8735
+ "type": [
8736
+ "range",
8737
+ "map"
8738
+ ],
8739
+ "min": 0,
8740
+ "max": 2,
8741
+ "step": 0.01,
8742
+ "label": "Highlight",
8743
+ "group": "Highlight"
8744
+ },
8745
+ "default": 0.2,
8746
+ "description": "Strength of the specular reflection on each flute"
8747
+ },
8748
+ "highlightSoftness": {
8749
+ "ui": {
8750
+ "type": [
8751
+ "range",
8752
+ "map"
8753
+ ],
8754
+ "min": 0,
8755
+ "max": 1,
8756
+ "step": 0.01,
8757
+ "label": "Highlight Softness",
8758
+ "group": "Highlight"
8759
+ },
8760
+ "default": 0.3,
8761
+ "description": "Spread of the specular peak (0 = pin-tight, 1 = broad sheen)"
8762
+ },
8763
+ "highlightColor": {
8764
+ "ui": {
8765
+ "type": "color",
8766
+ "label": "Highlight Color",
8767
+ "group": "Highlight"
8768
+ },
8769
+ "default": "#ffffff",
8770
+ "description": "Color of the specular highlight"
8771
+ },
8772
+ "edges": {
8773
+ "ui": {
8774
+ "type": "select",
8775
+ "options": [
8776
+ {
8777
+ "label": "Stretch",
8778
+ "value": "stretch"
8779
+ },
8780
+ {
8781
+ "label": "Transparent",
8782
+ "value": "transparent"
8783
+ },
8784
+ {
8785
+ "label": "Mirror",
8786
+ "value": "mirror"
8787
+ },
8788
+ {
8789
+ "label": "Wrap",
8790
+ "value": "wrap"
8791
+ }
8792
+ ],
8793
+ "label": "Edges",
8794
+ "group": "Effect"
8795
+ },
8796
+ "default": "mirror",
8797
+ "description": "How to handle edges when distortion samples beyond the canvas"
8798
+ }
8799
+ }
8800
+ },
8333
8801
  {
8334
8802
  "name": "Fog",
8335
8803
  "category": "Interactive",
@@ -0,0 +1,38 @@
1
+ import { JSX } from 'solid-js';
2
+ import { BlendMode, PropDriver, TransformConfig } from '../../core';
3
+ import { ComponentProps } from '../../core/shaders/FlutedGlass';
4
+ export type { ComponentProps };
5
+ /**
6
+ * Base props that all shader components have
7
+ */
8
+ interface BaseShaderProps {
9
+ children?: JSX.Element;
10
+ blendMode?: BlendMode;
11
+ opacity?: number;
12
+ visible?: boolean;
13
+ id?: string;
14
+ maskSource?: string;
15
+ maskType?: string;
16
+ renderOrder?: number;
17
+ transform?: Partial<TransformConfig>;
18
+ }
19
+ /**
20
+ * Component-specific props that merge base props with shader-specific props
21
+ * Note: ComponentProps are made optional since they have defaults from the shader definition
22
+ */
23
+ type ShaderComponentProps = BaseShaderProps & Partial<Omit<ComponentProps, 'angle' | 'frequency' | 'softness' | 'waveAmplitude' | 'waveFrequency' | 'refraction' | 'aberration' | 'highlight' | 'highlightSoftness'>> & {
24
+ angle?: ComponentProps['angle'] | PropDriver;
25
+ frequency?: ComponentProps['frequency'] | PropDriver;
26
+ softness?: ComponentProps['softness'] | PropDriver;
27
+ waveAmplitude?: ComponentProps['waveAmplitude'] | PropDriver;
28
+ waveFrequency?: ComponentProps['waveFrequency'] | PropDriver;
29
+ refraction?: ComponentProps['refraction'] | PropDriver;
30
+ aberration?: ComponentProps['aberration'] | PropDriver;
31
+ highlight?: ComponentProps['highlight'] | PropDriver;
32
+ highlightSoftness?: ComponentProps['highlightSoftness'] | PropDriver;
33
+ };
34
+ /**
35
+ * The main Solid wrapper component for Shader shader nodes
36
+ */
37
+ export default function ShaderComponent(props: ShaderComponentProps): JSX.Element;
38
+ //# sourceMappingURL=FlutedGlass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlutedGlass.d.ts","sourceRoot":"","sources":["../../src/components/FlutedGlass.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0F,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAE5H,OAAO,EAGH,KAAK,SAAS,EAId,KAAK,UAAU,EACf,KAAK,eAAe,EACvB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGpF,YAAY,EAAE,cAAc,EAAE,CAAC;AAY/B;;GAEG;AACH,UAAU,eAAe;IACrB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CACxC;AAOD;;;GAGG;AACH,KAAK,oBAAoB,GAAG,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,eAAe,GAAG,eAAe,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,GAAG,mBAAmB,CAAC,CAAC,GAAG;IACtN,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC;IAC7C,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,GAAG,UAAU,CAAC;IACrD,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;IACnD,aAAa,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC;IAC7D,aAAa,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC;IAC7D,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;IACvD,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;IACvD,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,GAAG,UAAU,CAAC;IACrD,iBAAiB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,GAAG,UAAU,CAAC;CACtE,CAAC;AAmCF;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,oBAAoB,eA8NlE"}