shaders 2.3.51 → 2.3.52

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 (178) hide show
  1. package/dist/core/Aurora-BDnL1XdK.js +233 -0
  2. package/dist/core/registry.js +142 -140
  3. package/dist/core/shaderRegistry.d.ts.map +1 -1
  4. package/dist/core/shaders/Aurora/index.d.ts +99 -0
  5. package/dist/core/shaders/Aurora/index.d.ts.map +1 -0
  6. package/dist/core/shaders/Aurora/index.js +5 -0
  7. package/dist/core/shaders/Beam/index.js +1 -1
  8. package/dist/core/shaders/Blob/index.js +1 -1
  9. package/dist/core/shaders/Blur/index.js +1 -1
  10. package/dist/core/shaders/BrightnessContrast/index.js +1 -1
  11. package/dist/core/shaders/Bulge/index.js +1 -1
  12. package/dist/core/shaders/CRTScreen/index.js +1 -1
  13. package/dist/core/shaders/ChannelBlur/index.js +1 -1
  14. package/dist/core/shaders/Checkerboard/index.js +1 -1
  15. package/dist/core/shaders/ChromaFlow/index.js +1 -1
  16. package/dist/core/shaders/ChromaticAberration/index.js +1 -1
  17. package/dist/core/shaders/Circle/index.js +1 -1
  18. package/dist/core/shaders/ConcentricSpin/index.js +1 -1
  19. package/dist/core/shaders/ContourLines/index.js +1 -1
  20. package/dist/core/shaders/CursorTrail/index.js +1 -1
  21. package/dist/core/shaders/DiffuseBlur/index.js +1 -1
  22. package/dist/core/shaders/Dither/index.js +1 -1
  23. package/dist/core/shaders/DotGrid/index.js +1 -1
  24. package/dist/core/shaders/Duotone/index.js +1 -1
  25. package/dist/core/shaders/FilmGrain/index.js +1 -1
  26. package/dist/core/shaders/FloatingParticles/index.js +1 -1
  27. package/dist/core/shaders/FlowField/index.js +1 -1
  28. package/dist/core/shaders/GlassTiles/index.js +1 -1
  29. package/dist/core/shaders/Glitch/index.js +1 -1
  30. package/dist/core/shaders/Glow/index.js +1 -1
  31. package/dist/core/shaders/Godrays/index.js +1 -1
  32. package/dist/core/shaders/Grayscale/index.js +1 -1
  33. package/dist/core/shaders/Grid/index.js +1 -1
  34. package/dist/core/shaders/GridDistortion/index.js +1 -1
  35. package/dist/core/shaders/Group/index.js +1 -1
  36. package/dist/core/shaders/Halftone/index.js +1 -1
  37. package/dist/core/shaders/HueShift/index.js +1 -1
  38. package/dist/core/shaders/ImageTexture/index.js +1 -1
  39. package/dist/core/shaders/Invert/index.js +1 -1
  40. package/dist/core/shaders/Kaleidoscope/index.js +1 -1
  41. package/dist/core/shaders/LensFlare/index.js +1 -1
  42. package/dist/core/shaders/LinearBlur/index.js +1 -1
  43. package/dist/core/shaders/LinearGradient/index.js +1 -1
  44. package/dist/core/shaders/Liquify/index.js +1 -1
  45. package/dist/core/shaders/Mirror/index.js +1 -1
  46. package/dist/core/shaders/Perspective/index.js +1 -1
  47. package/dist/core/shaders/Pixelate/index.js +1 -1
  48. package/dist/core/shaders/Plasma/index.js +1 -1
  49. package/dist/core/shaders/PolarCoordinates/index.js +1 -1
  50. package/dist/core/shaders/Posterize/index.js +1 -1
  51. package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
  52. package/dist/core/shaders/RadialGradient/index.js +1 -1
  53. package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
  54. package/dist/core/shaders/Ripples/index.js +1 -1
  55. package/dist/core/shaders/Saturation/index.js +1 -1
  56. package/dist/core/shaders/Sharpness/index.js +1 -1
  57. package/dist/core/shaders/Shatter/index.js +1 -1
  58. package/dist/core/shaders/SimplexNoise/index.js +1 -1
  59. package/dist/core/shaders/SineWave/index.js +1 -1
  60. package/dist/core/shaders/SolidColor/index.js +1 -1
  61. package/dist/core/shaders/Spherize/index.js +1 -1
  62. package/dist/core/shaders/Spiral/index.js +1 -1
  63. package/dist/core/shaders/Strands/index.js +1 -1
  64. package/dist/core/shaders/Stretch/index.js +1 -1
  65. package/dist/core/shaders/Stripes/index.js +1 -1
  66. package/dist/core/shaders/StudioBackground/index.js +1 -1
  67. package/dist/core/shaders/Swirl/index.js +1 -1
  68. package/dist/core/shaders/TiltShift/index.js +1 -1
  69. package/dist/core/shaders/Tint/index.js +1 -1
  70. package/dist/core/shaders/Tritone/index.js +1 -1
  71. package/dist/core/shaders/Twirl/index.js +1 -1
  72. package/dist/core/shaders/Vibrance/index.js +1 -1
  73. package/dist/core/shaders/VideoTexture/index.js +1 -1
  74. package/dist/core/shaders/WaveDistortion/index.js +1 -1
  75. package/dist/core/shaders/WebcamTexture/index.js +1 -1
  76. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  77. package/dist/react/Aurora.js +164 -0
  78. package/dist/react/components/Aurora.d.ts +31 -0
  79. package/dist/react/components/Aurora.d.ts.map +1 -0
  80. package/dist/react/index.d.ts +1 -0
  81. package/dist/react/index.d.ts.map +1 -1
  82. package/dist/react/index.js +2 -1
  83. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  84. package/dist/react/utils/generatePresetCode.js +21 -0
  85. package/dist/registry.js +331 -0
  86. package/dist/solid/components/Aurora.d.ts +28 -0
  87. package/dist/solid/components/Aurora.d.ts.map +1 -0
  88. package/dist/solid/components/Aurora.js +168 -0
  89. package/dist/solid/index.d.ts +1 -0
  90. package/dist/solid/index.d.ts.map +1 -1
  91. package/dist/solid/index.js +144 -142
  92. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  93. package/dist/solid/utils/generatePresetCode.js +21 -0
  94. package/dist/svelte/components/Aurora.svelte.d.ts +19 -0
  95. package/dist/svelte/{generatePresetCode-TDa1I3YR.js → generatePresetCode-DXODN9t6.js} +21 -0
  96. package/dist/svelte/index.d.ts +1 -0
  97. package/dist/svelte/index.js +415 -285
  98. package/dist/svelte/utils/generatePresetCode.js +1 -1
  99. package/dist/vue/Aurora.js +3 -0
  100. package/dist/vue/Aurora.vue_vue_type_script_setup_true_lang.js +156 -0
  101. package/dist/vue/components/Aurora.vue.d.ts +54 -0
  102. package/dist/vue/components/Aurora.vue.d.ts.map +1 -0
  103. package/dist/vue/index.d.ts +1 -0
  104. package/dist/vue/index.d.ts.map +1 -1
  105. package/dist/vue/index.js +2 -1
  106. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  107. package/dist/vue/utils/generatePresetCode.js +21 -0
  108. package/package.json +9 -1
  109. /package/dist/core/{Beam-BBbjVQDP.js → Beam-CyRoRQEj.js} +0 -0
  110. /package/dist/core/{Blob-DeD9KRj-.js → Blob-BgN4aVOR.js} +0 -0
  111. /package/dist/core/{Blur-Brqgsz7y.js → Blur-NNElJwzj.js} +0 -0
  112. /package/dist/core/{BrightnessContrast-DSePKfxC.js → BrightnessContrast-FdkKMaQQ.js} +0 -0
  113. /package/dist/core/{Bulge-D2OwcL23.js → Bulge-Ca9hW7y4.js} +0 -0
  114. /package/dist/core/{CRTScreen-D6qh6DnD.js → CRTScreen-BHKDJ9_0.js} +0 -0
  115. /package/dist/core/{ChannelBlur-BKo9uGaB.js → ChannelBlur-A0r5Gx_y.js} +0 -0
  116. /package/dist/core/{Checkerboard-ChbG4nPC.js → Checkerboard-XJh_tV6B.js} +0 -0
  117. /package/dist/core/{ChromaFlow-DyqU1igx.js → ChromaFlow-Cc647Knw.js} +0 -0
  118. /package/dist/core/{ChromaticAberration-9nlFN2h0.js → ChromaticAberration-CYvju_kr.js} +0 -0
  119. /package/dist/core/{Circle-DSQ_9vPx.js → Circle-C9DYXDnD.js} +0 -0
  120. /package/dist/core/{ConcentricSpin-CLTGx_sN.js → ConcentricSpin-CnuAW_6I.js} +0 -0
  121. /package/dist/core/{ContourLines-Dc5J7iw5.js → ContourLines-DJ0R9q6Y.js} +0 -0
  122. /package/dist/core/{CursorTrail-COnyRZH9.js → CursorTrail-DpegyvgZ.js} +0 -0
  123. /package/dist/core/{DiffuseBlur-DcV8M7hN.js → DiffuseBlur-BXcJHOEK.js} +0 -0
  124. /package/dist/core/{Dither-C-w0ugGX.js → Dither-BKUz66yF.js} +0 -0
  125. /package/dist/core/{DotGrid-wXnfcjrM.js → DotGrid-CQ3Bqk7F.js} +0 -0
  126. /package/dist/core/{Duotone-B8dYgrFR.js → Duotone-BW1JYEPc.js} +0 -0
  127. /package/dist/core/{FilmGrain-D_6m7GJ4.js → FilmGrain-GEWzNIxN.js} +0 -0
  128. /package/dist/core/{FloatingParticles-YuuXeICf.js → FloatingParticles--9Vfk8l7.js} +0 -0
  129. /package/dist/core/{FlowField-Dx2eqOcU.js → FlowField-cpaUwFHC.js} +0 -0
  130. /package/dist/core/{GlassTiles-hnt2pUQN.js → GlassTiles-BdeSNj7g.js} +0 -0
  131. /package/dist/core/{Glitch-DfPXeSlL.js → Glitch-CROTuIoh.js} +0 -0
  132. /package/dist/core/{Glow-CQv_dRPj.js → Glow-DQDMXgcr.js} +0 -0
  133. /package/dist/core/{Godrays-B_-HliEA.js → Godrays-ByIS3bRa.js} +0 -0
  134. /package/dist/core/{Grayscale-DRFXhxr4.js → Grayscale-DpKuVrqO.js} +0 -0
  135. /package/dist/core/{Grid-DKSUwEIe.js → Grid-CkcYMWZi.js} +0 -0
  136. /package/dist/core/{GridDistortion-DahXljLX.js → GridDistortion-CATS8be1.js} +0 -0
  137. /package/dist/core/{Group-r9gMBd5y.js → Group-DqEcpVau.js} +0 -0
  138. /package/dist/core/{Halftone-ZVjwkjaQ.js → Halftone-DPnEJWAR.js} +0 -0
  139. /package/dist/core/{HueShift-gZlNBwNE.js → HueShift-BuAL_IUD.js} +0 -0
  140. /package/dist/core/{ImageTexture-DuXMku_O.js → ImageTexture-BxUmKJDM.js} +0 -0
  141. /package/dist/core/{Invert-gUjZNHF3.js → Invert-CnrYMYHq.js} +0 -0
  142. /package/dist/core/{Kaleidoscope-COKZ0BDb.js → Kaleidoscope-w7bcRTGG.js} +0 -0
  143. /package/dist/core/{LensFlare-D6jy4M7G.js → LensFlare-D42C5m1g.js} +0 -0
  144. /package/dist/core/{LinearBlur-CArDQIhs.js → LinearBlur-PB7AuAdN.js} +0 -0
  145. /package/dist/core/{LinearGradient-BkB_3gVV.js → LinearGradient-xd6zdc9k.js} +0 -0
  146. /package/dist/core/{Liquify-BrIB9ajS.js → Liquify-BfUbY9Aa.js} +0 -0
  147. /package/dist/core/{Mirror-BRPYfVAr.js → Mirror-CBuDbabq.js} +0 -0
  148. /package/dist/core/{Perspective-CglPLWTZ.js → Perspective-BWEoTtAq.js} +0 -0
  149. /package/dist/core/{Pixelate-CwnuDc5L.js → Pixelate-C1kcXBSy.js} +0 -0
  150. /package/dist/core/{Plasma-CuW-GOI_.js → Plasma-BaKvTyBi.js} +0 -0
  151. /package/dist/core/{PolarCoordinates-9AFXKnSC.js → PolarCoordinates-tXYdB1hR.js} +0 -0
  152. /package/dist/core/{Posterize-DU2yrydV.js → Posterize-D4f1xM4m.js} +0 -0
  153. /package/dist/core/{ProgressiveBlur-BXv2mob_.js → ProgressiveBlur-CmBI0c7e.js} +0 -0
  154. /package/dist/core/{RadialGradient-Dd21Be-_.js → RadialGradient-BOWu2cE6.js} +0 -0
  155. /package/dist/core/{RectangularCoordinates-DAOGnX2p.js → RectangularCoordinates-C2KYwree.js} +0 -0
  156. /package/dist/core/{Ripples-Nk5is8WX.js → Ripples-C3rm4Nv6.js} +0 -0
  157. /package/dist/core/{Saturation-KoiVB92Y.js → Saturation-Bw3ToVIJ.js} +0 -0
  158. /package/dist/core/{Sharpness-CK-zaDVc.js → Sharpness-Dm4dZVlk.js} +0 -0
  159. /package/dist/core/{Shatter-EEzkIXGb.js → Shatter-C5oF85Mn.js} +0 -0
  160. /package/dist/core/{SimplexNoise-DKov4Yho.js → SimplexNoise-CzJ9JuBO.js} +0 -0
  161. /package/dist/core/{SineWave-Cy0wWKUU.js → SineWave-DMogWzg5.js} +0 -0
  162. /package/dist/core/{SolidColor-P4OKglCC.js → SolidColor-CmqDLEvX.js} +0 -0
  163. /package/dist/core/{Spherize-BLEvqakM.js → Spherize-BmA6-b8n.js} +0 -0
  164. /package/dist/core/{Spiral-DXuKs26n.js → Spiral-DmYzx8BO.js} +0 -0
  165. /package/dist/core/{Strands-DsdASoV4.js → Strands-CmEblLfF.js} +0 -0
  166. /package/dist/core/{Stretch-By8f2wmJ.js → Stretch-szy_xiYc.js} +0 -0
  167. /package/dist/core/{Stripes-D8HSlP1H.js → Stripes-Bze5bkdm.js} +0 -0
  168. /package/dist/core/{StudioBackground-CFjfBnWp.js → StudioBackground-Ci26l_Xb.js} +0 -0
  169. /package/dist/core/{Swirl-BIFGxHL0.js → Swirl-BUKxPesY.js} +0 -0
  170. /package/dist/core/{TiltShift-CLMFkzBs.js → TiltShift-YxZeQ5Et.js} +0 -0
  171. /package/dist/core/{Tint-NQjiXLGu.js → Tint-Bss3hfZG.js} +0 -0
  172. /package/dist/core/{Tritone-67eoddBF.js → Tritone-CVr6_qy3.js} +0 -0
  173. /package/dist/core/{Twirl-ZaYAMqmq.js → Twirl-CKwGdb3_.js} +0 -0
  174. /package/dist/core/{Vibrance-DbSUuK_4.js → Vibrance-BiW7HP94.js} +0 -0
  175. /package/dist/core/{VideoTexture-lHzoN3G9.js → VideoTexture-CH9n_1hI.js} +0 -0
  176. /package/dist/core/{WaveDistortion-CB6xTndT.js → WaveDistortion-BYmLNaT1.js} +0 -0
  177. /package/dist/core/{WebcamTexture-BJUvpMmV.js → WebcamTexture-wlrwZXeq.js} +0 -0
  178. /package/dist/core/{ZoomBlur-BCClC8fw.js → ZoomBlur-BtGAMd_0.js} +0 -0
@@ -0,0 +1,233 @@
1
+ import { i as transformColorSpace, r as transformColor, s as transformPosition, t as colorSpaceOptions } from "./transformations-CC_c-QAT.js";
2
+ import { t as createAnimatedTime } from "./time-BZqyVJXt.js";
3
+ import { t as mixColors } from "./colorMixing-Ehw-Hfs_.js";
4
+ import { Fn, clamp, exp, float, fract, mix, mx_noise_float, pow, screenUV, sin, smoothstep, step, vec2, vec3, vec4, viewportSize } from "three/tsl";
5
+ const componentDefinition = {
6
+ name: "Aurora",
7
+ category: "Textures",
8
+ description: "Mesmerizing aurora borealis with layered curtains, vertical rays, and flowing light.",
9
+ props: {
10
+ colorA: {
11
+ default: "#a533f8",
12
+ transform: transformColor,
13
+ description: "Edge color at the curtain base",
14
+ ui: {
15
+ type: "color",
16
+ label: "Color A",
17
+ group: "Colors"
18
+ }
19
+ },
20
+ colorB: {
21
+ default: "#22ee88",
22
+ transform: transformColor,
23
+ description: "Core color in the bright center",
24
+ ui: {
25
+ type: "color",
26
+ label: "Color B",
27
+ group: "Colors"
28
+ }
29
+ },
30
+ colorC: {
31
+ default: "#1694e8",
32
+ transform: transformColor,
33
+ description: "Tip color at the ray ends",
34
+ ui: {
35
+ type: "color",
36
+ label: "Color C",
37
+ group: "Colors"
38
+ }
39
+ },
40
+ colorSpace: {
41
+ default: "linear",
42
+ transform: transformColorSpace,
43
+ description: "Color space for color interpolation",
44
+ ui: {
45
+ type: "select",
46
+ options: colorSpaceOptions,
47
+ label: "Color Space",
48
+ group: "Colors"
49
+ }
50
+ },
51
+ balance: {
52
+ default: 50,
53
+ description: "Shifts color distribution across the curtain height",
54
+ ui: {
55
+ type: "range",
56
+ min: 0,
57
+ max: 100,
58
+ step: 1,
59
+ label: "Balance",
60
+ group: "Colors"
61
+ }
62
+ },
63
+ intensity: {
64
+ default: 80,
65
+ description: "Overall aurora brightness",
66
+ ui: {
67
+ type: "range",
68
+ min: 0,
69
+ max: 100,
70
+ step: 1,
71
+ label: "Intensity",
72
+ group: "Aurora"
73
+ }
74
+ },
75
+ curtainCount: {
76
+ default: 4,
77
+ description: "Number of aurora curtain layers",
78
+ ui: {
79
+ type: "range",
80
+ min: 1,
81
+ max: 4,
82
+ step: 1,
83
+ label: "Curtains",
84
+ group: "Aurora"
85
+ }
86
+ },
87
+ speed: {
88
+ default: 5,
89
+ description: "Animation speed",
90
+ ui: {
91
+ type: "range",
92
+ min: -10,
93
+ max: 10,
94
+ step: .1,
95
+ label: "Speed",
96
+ group: "Aurora"
97
+ }
98
+ },
99
+ waviness: {
100
+ default: 50,
101
+ description: "How much the curtains undulate",
102
+ ui: {
103
+ type: "range",
104
+ min: 0,
105
+ max: 200,
106
+ step: 1,
107
+ label: "Waviness",
108
+ group: "Aurora"
109
+ }
110
+ },
111
+ rayDensity: {
112
+ default: 20,
113
+ description: "Density of vertical ray structures",
114
+ ui: {
115
+ type: "range",
116
+ min: 0,
117
+ max: 100,
118
+ step: 1,
119
+ label: "Ray Detail",
120
+ group: "Aurora"
121
+ }
122
+ },
123
+ height: {
124
+ default: 120,
125
+ description: "How tall the aurora extends",
126
+ ui: {
127
+ type: "range",
128
+ min: 10,
129
+ max: 200,
130
+ step: 1,
131
+ label: "Height",
132
+ group: "Scene"
133
+ }
134
+ },
135
+ center: {
136
+ default: {
137
+ x: .5,
138
+ y: .5
139
+ },
140
+ transform: transformPosition,
141
+ description: "Center position of the aurora",
142
+ ui: {
143
+ type: "position",
144
+ label: "Center",
145
+ group: "Scene"
146
+ }
147
+ },
148
+ seed: {
149
+ default: 0,
150
+ description: "Random seed for variation",
151
+ ui: {
152
+ type: "range",
153
+ min: 0,
154
+ max: 100,
155
+ step: 1,
156
+ label: "Seed",
157
+ group: "Aurora"
158
+ }
159
+ }
160
+ },
161
+ fragmentNode: (params) => {
162
+ const { uniforms } = params;
163
+ const colorA = uniforms.colorA.uniform;
164
+ const colorB = uniforms.colorB.uniform;
165
+ const colorC = uniforms.colorC.uniform;
166
+ const csMode = uniforms.colorSpace.uniform;
167
+ const balanceExp = mix(float(2.5), float(.4), uniforms.balance.uniform.mul(.01));
168
+ const intensity = uniforms.intensity.uniform.mul(.018);
169
+ const curtainCount = uniforms.curtainCount.uniform;
170
+ const waviness = uniforms.waviness.uniform.mul(.01);
171
+ const rayAmount = uniforms.rayDensity.uniform.mul(.01);
172
+ const auroraHeight = uniforms.height.uniform.mul(.01);
173
+ const centerX = uniforms.center.uniform.x;
174
+ const centerY = uniforms.center.uniform.y.oneMinus();
175
+ const seed = uniforms.seed.uniform;
176
+ const aspect = viewportSize.x.div(viewportSize.y);
177
+ const t = createAnimatedTime(params, uniforms.speed);
178
+ const auroraCurtain = Fn(([uv$1, layerIdx, layerTime]) => {
179
+ const tSlow = t.mul(.06).add(layerTime);
180
+ const lSeed = seed.add(layerIdx.mul(31.7));
181
+ const wx = uv$1.x.sub(centerX).mul(aspect).mul(2);
182
+ const ph1 = fract(sin(lSeed.mul(12.9)).mul(4758.5)).mul(Math.PI * 2);
183
+ const ph2 = fract(sin(lSeed.mul(78.2)).mul(2847.1)).mul(Math.PI * 2);
184
+ const ph3 = fract(sin(lSeed.mul(41.6)).mul(1593.7)).mul(Math.PI * 2);
185
+ const arc = sin(wx.mul(.7).add(tSlow.mul(.4)).add(ph1)).mul(.15).add(sin(wx.mul(1.6).add(tSlow.mul(.65)).add(ph2)).mul(.08)).add(sin(wx.mul(2.9).add(tSlow.mul(.3)).add(ph3)).mul(.04));
186
+ const noiseWarp = mx_noise_float(vec3(wx.mul(.5), tSlow.mul(.25), lSeed.mul(.1)));
187
+ const pathY = centerY.add(arc.mul(waviness)).add(noiseWarp.mul(.14).mul(waviness));
188
+ const warpedX = wx.add(noiseWarp.mul(2.5));
189
+ const rayFreq = mix(float(6), float(20), rayAmount);
190
+ const rayPhase = fract(sin(lSeed.mul(53.7)).mul(3847.2)).mul(Math.PI * 2);
191
+ const rays = pow(sin(warpedX.mul(rayFreq.mul(.15)).add(tSlow.mul(.1)).add(rayPhase)).mul(.5).add(.5), float(1.5));
192
+ const localHeight = auroraHeight.mul(mix(float(.4), float(1), rays));
193
+ const distFromPath = uv$1.y.sub(pathY);
194
+ const bottomFade = smoothstep(float(-.04), float(.015), distFromPath);
195
+ const topExtent = localHeight.mul(rays.mul(.4).add(.6));
196
+ const topFade = smoothstep(topExtent, float(0), distFromPath);
197
+ const envelope = bottomFade.mul(topFade);
198
+ const sectionBright = mix(float(.4), float(1), noiseWarp.mul(.5).add(.5));
199
+ const colorT = clamp(distFromPath.div(topExtent.add(.001)), 0, 1);
200
+ const coreD = colorT.sub(.2);
201
+ const coreBright = exp(coreD.mul(coreD).mul(-6)).mul(.3).add(1);
202
+ return vec2(colorT, envelope.mul(rays).mul(sectionBright).mul(coreBright));
203
+ });
204
+ return Fn(() => {
205
+ const uv$1 = screenUV;
206
+ const weightedT = float(0).toVar();
207
+ const totalAlpha = float(0).toVar();
208
+ const a1 = auroraCurtain(uv$1, float(0), float(0));
209
+ weightedT.assign(weightedT.add(a1.x.mul(a1.y)));
210
+ totalAlpha.assign(totalAlpha.add(a1.y));
211
+ const a2 = auroraCurtain(uv$1, float(1), float(3.1));
212
+ const w2 = a2.y.mul(step(float(2), curtainCount)).mul(.65);
213
+ weightedT.assign(weightedT.add(a2.x.mul(w2)));
214
+ totalAlpha.assign(totalAlpha.add(w2));
215
+ const a3 = auroraCurtain(uv$1, float(2), float(6.7));
216
+ const w3 = a3.y.mul(step(float(3), curtainCount)).mul(.45);
217
+ weightedT.assign(weightedT.add(a3.x.mul(w3)));
218
+ totalAlpha.assign(totalAlpha.add(w3));
219
+ const a4 = auroraCurtain(uv$1, float(3), float(9.4));
220
+ const w4 = a4.y.mul(step(float(4), curtainCount)).mul(.3);
221
+ weightedT.assign(weightedT.add(a4.x.mul(w4)));
222
+ totalAlpha.assign(totalAlpha.add(w4));
223
+ const avgT = pow(weightedT.div(totalAlpha.add(.001)), balanceExp);
224
+ const lowToMid = smoothstep(float(0), float(.2), avgT);
225
+ const midToHigh = smoothstep(float(.4), float(.85), avgT);
226
+ const col = mixColors(mixColors(colorA, colorB, lowToMid, csMode), colorC, midToHigh, csMode).rgb.mul(totalAlpha).mul(intensity);
227
+ const alpha = clamp(totalAlpha.mul(intensity).mul(.5), 0, 1);
228
+ return vec4(clamp(col, 0, 1), alpha);
229
+ })();
230
+ }
231
+ };
232
+ var Aurora_default = componentDefinition;
233
+ export { componentDefinition as n, Aurora_default as t };
@@ -4,151 +4,153 @@ import "./time-BZqyVJXt.js";
4
4
  import { n as componentDefinition } from "./AngularBlur-HQuGCKow.js";
5
5
  import { n as componentDefinition$1 } from "./Ascii-BmSlALjq.js";
6
6
  import "./colorMixing-Ehw-Hfs_.js";
7
- import { n as componentDefinition$2 } from "./Beam-BBbjVQDP.js";
8
- import { n as componentDefinition$3 } from "./Blob-DeD9KRj-.js";
9
- import { n as componentDefinition$4 } from "./Blur-Brqgsz7y.js";
10
- import { n as componentDefinition$5 } from "./BrightnessContrast-DSePKfxC.js";
11
- import { n as componentDefinition$6 } from "./Bulge-D2OwcL23.js";
12
- import { n as componentDefinition$7 } from "./ChannelBlur-BKo9uGaB.js";
13
- import { n as componentDefinition$8 } from "./Checkerboard-ChbG4nPC.js";
14
- import { n as componentDefinition$9 } from "./ChromaFlow-DyqU1igx.js";
15
- import { n as componentDefinition$10 } from "./ChromaticAberration-9nlFN2h0.js";
16
- import { n as componentDefinition$11 } from "./Circle-DSQ_9vPx.js";
17
- import { n as componentDefinition$12 } from "./ConcentricSpin-CLTGx_sN.js";
18
- import { n as componentDefinition$13 } from "./ContourLines-Dc5J7iw5.js";
19
- import { n as componentDefinition$14 } from "./CRTScreen-D6qh6DnD.js";
20
- import { n as componentDefinition$15 } from "./CursorTrail-COnyRZH9.js";
21
- import { n as componentDefinition$16 } from "./DiffuseBlur-DcV8M7hN.js";
22
- import { n as componentDefinition$17 } from "./Dither-C-w0ugGX.js";
23
- import { n as componentDefinition$18 } from "./DotGrid-wXnfcjrM.js";
24
- import { n as componentDefinition$19 } from "./Duotone-B8dYgrFR.js";
25
- import { n as componentDefinition$20 } from "./FilmGrain-D_6m7GJ4.js";
26
- import { n as componentDefinition$21 } from "./FloatingParticles-YuuXeICf.js";
27
- import { n as componentDefinition$22 } from "./FlowField-Dx2eqOcU.js";
28
- import { n as componentDefinition$23 } from "./GlassTiles-hnt2pUQN.js";
29
- import { n as componentDefinition$24 } from "./Glitch-DfPXeSlL.js";
30
- import { n as componentDefinition$25 } from "./Glow-CQv_dRPj.js";
31
- import { n as componentDefinition$26 } from "./Godrays-B_-HliEA.js";
32
- import { n as componentDefinition$27 } from "./Grayscale-DRFXhxr4.js";
33
- import { n as componentDefinition$28 } from "./Grid-DKSUwEIe.js";
34
- import { n as componentDefinition$29 } from "./GridDistortion-DahXljLX.js";
35
- import { n as componentDefinition$30 } from "./Group-r9gMBd5y.js";
36
- import { n as componentDefinition$31 } from "./Halftone-ZVjwkjaQ.js";
37
- import { n as componentDefinition$32 } from "./HueShift-gZlNBwNE.js";
38
- import { n as componentDefinition$33 } from "./ImageTexture-DuXMku_O.js";
39
- import { n as componentDefinition$34 } from "./Invert-gUjZNHF3.js";
40
- import { n as componentDefinition$35 } from "./Kaleidoscope-COKZ0BDb.js";
41
- import { n as componentDefinition$36 } from "./LensFlare-D6jy4M7G.js";
42
- import { n as componentDefinition$37 } from "./LinearBlur-CArDQIhs.js";
43
- import { n as componentDefinition$38 } from "./LinearGradient-BkB_3gVV.js";
44
- import { n as componentDefinition$39 } from "./Liquify-BrIB9ajS.js";
45
- import { n as componentDefinition$40 } from "./Mirror-BRPYfVAr.js";
46
- import { n as componentDefinition$41 } from "./Perspective-CglPLWTZ.js";
47
- import { n as componentDefinition$42 } from "./Pixelate-CwnuDc5L.js";
48
- import { n as componentDefinition$43 } from "./Plasma-CuW-GOI_.js";
49
- import { n as componentDefinition$44 } from "./PolarCoordinates-9AFXKnSC.js";
50
- import { n as componentDefinition$45 } from "./Posterize-DU2yrydV.js";
51
- import { n as componentDefinition$46 } from "./ProgressiveBlur-BXv2mob_.js";
52
- import { n as componentDefinition$47 } from "./RadialGradient-Dd21Be-_.js";
53
- import { n as componentDefinition$48 } from "./RectangularCoordinates-DAOGnX2p.js";
54
- import { n as componentDefinition$49 } from "./Ripples-Nk5is8WX.js";
55
- import { n as componentDefinition$50 } from "./Saturation-KoiVB92Y.js";
56
- import { n as componentDefinition$51 } from "./Sharpness-CK-zaDVc.js";
57
- import { n as componentDefinition$52 } from "./Shatter-EEzkIXGb.js";
58
- import { n as componentDefinition$53 } from "./SimplexNoise-DKov4Yho.js";
59
- import { n as componentDefinition$54 } from "./SineWave-Cy0wWKUU.js";
60
- import { n as componentDefinition$55 } from "./SolidColor-P4OKglCC.js";
61
- import { n as componentDefinition$56 } from "./Spherize-BLEvqakM.js";
62
- import { n as componentDefinition$57 } from "./Spiral-DXuKs26n.js";
63
- import { n as componentDefinition$58 } from "./Strands-DsdASoV4.js";
64
- import { n as componentDefinition$59 } from "./Stretch-By8f2wmJ.js";
65
- import { n as componentDefinition$60 } from "./Stripes-D8HSlP1H.js";
66
- import { n as componentDefinition$61 } from "./StudioBackground-CFjfBnWp.js";
67
- import { n as componentDefinition$62 } from "./Swirl-BIFGxHL0.js";
68
- import { n as componentDefinition$63 } from "./TiltShift-CLMFkzBs.js";
69
- import { n as componentDefinition$64 } from "./Tint-NQjiXLGu.js";
70
- import { n as componentDefinition$65 } from "./Tritone-67eoddBF.js";
71
- import { n as componentDefinition$66 } from "./Twirl-ZaYAMqmq.js";
72
- import { n as componentDefinition$67 } from "./Vibrance-DbSUuK_4.js";
73
- import { n as componentDefinition$68 } from "./VideoTexture-lHzoN3G9.js";
74
- import { n as componentDefinition$69 } from "./WaveDistortion-CB6xTndT.js";
75
- import { n as componentDefinition$70 } from "./WebcamTexture-BJUvpMmV.js";
76
- import { n as componentDefinition$71 } from "./ZoomBlur-BCClC8fw.js";
7
+ import { n as componentDefinition$2 } from "./Aurora-BDnL1XdK.js";
8
+ import { n as componentDefinition$3 } from "./Beam-CyRoRQEj.js";
9
+ import { n as componentDefinition$4 } from "./Blob-BgN4aVOR.js";
10
+ import { n as componentDefinition$5 } from "./Blur-NNElJwzj.js";
11
+ import { n as componentDefinition$6 } from "./BrightnessContrast-FdkKMaQQ.js";
12
+ import { n as componentDefinition$7 } from "./Bulge-Ca9hW7y4.js";
13
+ import { n as componentDefinition$8 } from "./ChannelBlur-A0r5Gx_y.js";
14
+ import { n as componentDefinition$9 } from "./Checkerboard-XJh_tV6B.js";
15
+ import { n as componentDefinition$10 } from "./ChromaFlow-Cc647Knw.js";
16
+ import { n as componentDefinition$11 } from "./ChromaticAberration-CYvju_kr.js";
17
+ import { n as componentDefinition$12 } from "./Circle-C9DYXDnD.js";
18
+ import { n as componentDefinition$13 } from "./ConcentricSpin-CnuAW_6I.js";
19
+ import { n as componentDefinition$14 } from "./ContourLines-DJ0R9q6Y.js";
20
+ import { n as componentDefinition$15 } from "./CRTScreen-BHKDJ9_0.js";
21
+ import { n as componentDefinition$16 } from "./CursorTrail-DpegyvgZ.js";
22
+ import { n as componentDefinition$17 } from "./DiffuseBlur-BXcJHOEK.js";
23
+ import { n as componentDefinition$18 } from "./Dither-BKUz66yF.js";
24
+ import { n as componentDefinition$19 } from "./DotGrid-CQ3Bqk7F.js";
25
+ import { n as componentDefinition$20 } from "./Duotone-BW1JYEPc.js";
26
+ import { n as componentDefinition$21 } from "./FilmGrain-GEWzNIxN.js";
27
+ import { n as componentDefinition$22 } from "./FloatingParticles--9Vfk8l7.js";
28
+ import { n as componentDefinition$23 } from "./FlowField-cpaUwFHC.js";
29
+ import { n as componentDefinition$24 } from "./GlassTiles-BdeSNj7g.js";
30
+ import { n as componentDefinition$25 } from "./Glitch-CROTuIoh.js";
31
+ import { n as componentDefinition$26 } from "./Glow-DQDMXgcr.js";
32
+ import { n as componentDefinition$27 } from "./Godrays-ByIS3bRa.js";
33
+ import { n as componentDefinition$28 } from "./Grayscale-DpKuVrqO.js";
34
+ import { n as componentDefinition$29 } from "./Grid-CkcYMWZi.js";
35
+ import { n as componentDefinition$30 } from "./GridDistortion-CATS8be1.js";
36
+ import { n as componentDefinition$31 } from "./Group-DqEcpVau.js";
37
+ import { n as componentDefinition$32 } from "./Halftone-DPnEJWAR.js";
38
+ import { n as componentDefinition$33 } from "./HueShift-BuAL_IUD.js";
39
+ import { n as componentDefinition$34 } from "./ImageTexture-BxUmKJDM.js";
40
+ import { n as componentDefinition$35 } from "./Invert-CnrYMYHq.js";
41
+ import { n as componentDefinition$36 } from "./Kaleidoscope-w7bcRTGG.js";
42
+ import { n as componentDefinition$37 } from "./LensFlare-D42C5m1g.js";
43
+ import { n as componentDefinition$38 } from "./LinearBlur-PB7AuAdN.js";
44
+ import { n as componentDefinition$39 } from "./LinearGradient-xd6zdc9k.js";
45
+ import { n as componentDefinition$40 } from "./Liquify-BfUbY9Aa.js";
46
+ import { n as componentDefinition$41 } from "./Mirror-CBuDbabq.js";
47
+ import { n as componentDefinition$42 } from "./Perspective-BWEoTtAq.js";
48
+ import { n as componentDefinition$43 } from "./Pixelate-C1kcXBSy.js";
49
+ import { n as componentDefinition$44 } from "./Plasma-BaKvTyBi.js";
50
+ import { n as componentDefinition$45 } from "./PolarCoordinates-tXYdB1hR.js";
51
+ import { n as componentDefinition$46 } from "./Posterize-D4f1xM4m.js";
52
+ import { n as componentDefinition$47 } from "./ProgressiveBlur-CmBI0c7e.js";
53
+ import { n as componentDefinition$48 } from "./RadialGradient-BOWu2cE6.js";
54
+ import { n as componentDefinition$49 } from "./RectangularCoordinates-C2KYwree.js";
55
+ import { n as componentDefinition$50 } from "./Ripples-C3rm4Nv6.js";
56
+ import { n as componentDefinition$51 } from "./Saturation-Bw3ToVIJ.js";
57
+ import { n as componentDefinition$52 } from "./Sharpness-Dm4dZVlk.js";
58
+ import { n as componentDefinition$53 } from "./Shatter-C5oF85Mn.js";
59
+ import { n as componentDefinition$54 } from "./SimplexNoise-CzJ9JuBO.js";
60
+ import { n as componentDefinition$55 } from "./SineWave-DMogWzg5.js";
61
+ import { n as componentDefinition$56 } from "./SolidColor-CmqDLEvX.js";
62
+ import { n as componentDefinition$57 } from "./Spherize-BmA6-b8n.js";
63
+ import { n as componentDefinition$58 } from "./Spiral-DmYzx8BO.js";
64
+ import { n as componentDefinition$59 } from "./Strands-CmEblLfF.js";
65
+ import { n as componentDefinition$60 } from "./Stretch-szy_xiYc.js";
66
+ import { n as componentDefinition$61 } from "./Stripes-Bze5bkdm.js";
67
+ import { n as componentDefinition$62 } from "./StudioBackground-Ci26l_Xb.js";
68
+ import { n as componentDefinition$63 } from "./Swirl-BUKxPesY.js";
69
+ import { n as componentDefinition$64 } from "./TiltShift-YxZeQ5Et.js";
70
+ import { n as componentDefinition$65 } from "./Tint-Bss3hfZG.js";
71
+ import { n as componentDefinition$66 } from "./Tritone-CVr6_qy3.js";
72
+ import { n as componentDefinition$67 } from "./Twirl-CKwGdb3_.js";
73
+ import { n as componentDefinition$68 } from "./Vibrance-BiW7HP94.js";
74
+ import { n as componentDefinition$69 } from "./VideoTexture-CH9n_1hI.js";
75
+ import { n as componentDefinition$70 } from "./WaveDistortion-BYmLNaT1.js";
76
+ import { n as componentDefinition$71 } from "./WebcamTexture-wlrwZXeq.js";
77
+ import { n as componentDefinition$72 } from "./ZoomBlur-BtGAMd_0.js";
77
78
  var createShaderRegistry = () => {
78
79
  const registry = {};
79
80
  const shaderDefinitions = {
80
81
  AngularBlur: componentDefinition,
81
82
  Ascii: componentDefinition$1,
82
- Beam: componentDefinition$2,
83
- Blob: componentDefinition$3,
84
- Blur: componentDefinition$4,
85
- BrightnessContrast: componentDefinition$5,
86
- Bulge: componentDefinition$6,
87
- ChannelBlur: componentDefinition$7,
88
- Checkerboard: componentDefinition$8,
89
- ChromaFlow: componentDefinition$9,
90
- ChromaticAberration: componentDefinition$10,
91
- Circle: componentDefinition$11,
92
- ConcentricSpin: componentDefinition$12,
93
- ContourLines: componentDefinition$13,
94
- CRTScreen: componentDefinition$14,
95
- CursorTrail: componentDefinition$15,
96
- DiffuseBlur: componentDefinition$16,
97
- Dither: componentDefinition$17,
98
- DotGrid: componentDefinition$18,
99
- Duotone: componentDefinition$19,
100
- FilmGrain: componentDefinition$20,
101
- FloatingParticles: componentDefinition$21,
102
- FlowField: componentDefinition$22,
103
- GlassTiles: componentDefinition$23,
104
- Glitch: componentDefinition$24,
105
- Glow: componentDefinition$25,
106
- Godrays: componentDefinition$26,
107
- Grayscale: componentDefinition$27,
108
- Grid: componentDefinition$28,
109
- GridDistortion: componentDefinition$29,
110
- Group: componentDefinition$30,
111
- Halftone: componentDefinition$31,
112
- HueShift: componentDefinition$32,
113
- ImageTexture: componentDefinition$33,
114
- Invert: componentDefinition$34,
115
- Kaleidoscope: componentDefinition$35,
116
- LensFlare: componentDefinition$36,
117
- LinearBlur: componentDefinition$37,
118
- LinearGradient: componentDefinition$38,
119
- Liquify: componentDefinition$39,
120
- Mirror: componentDefinition$40,
121
- Perspective: componentDefinition$41,
122
- Pixelate: componentDefinition$42,
123
- Plasma: componentDefinition$43,
124
- PolarCoordinates: componentDefinition$44,
125
- Posterize: componentDefinition$45,
126
- ProgressiveBlur: componentDefinition$46,
127
- RadialGradient: componentDefinition$47,
128
- RectangularCoordinates: componentDefinition$48,
129
- Ripples: componentDefinition$49,
130
- Saturation: componentDefinition$50,
131
- Sharpness: componentDefinition$51,
132
- Shatter: componentDefinition$52,
133
- SimplexNoise: componentDefinition$53,
134
- SineWave: componentDefinition$54,
135
- SolidColor: componentDefinition$55,
136
- Spherize: componentDefinition$56,
137
- Spiral: componentDefinition$57,
138
- Strands: componentDefinition$58,
139
- Stretch: componentDefinition$59,
140
- Stripes: componentDefinition$60,
141
- StudioBackground: componentDefinition$61,
142
- Swirl: componentDefinition$62,
143
- TiltShift: componentDefinition$63,
144
- Tint: componentDefinition$64,
145
- Tritone: componentDefinition$65,
146
- Twirl: componentDefinition$66,
147
- Vibrance: componentDefinition$67,
148
- VideoTexture: componentDefinition$68,
149
- WaveDistortion: componentDefinition$69,
150
- WebcamTexture: componentDefinition$70,
151
- ZoomBlur: componentDefinition$71
83
+ Aurora: componentDefinition$2,
84
+ Beam: componentDefinition$3,
85
+ Blob: componentDefinition$4,
86
+ Blur: componentDefinition$5,
87
+ BrightnessContrast: componentDefinition$6,
88
+ Bulge: componentDefinition$7,
89
+ ChannelBlur: componentDefinition$8,
90
+ Checkerboard: componentDefinition$9,
91
+ ChromaFlow: componentDefinition$10,
92
+ ChromaticAberration: componentDefinition$11,
93
+ Circle: componentDefinition$12,
94
+ ConcentricSpin: componentDefinition$13,
95
+ ContourLines: componentDefinition$14,
96
+ CRTScreen: componentDefinition$15,
97
+ CursorTrail: componentDefinition$16,
98
+ DiffuseBlur: componentDefinition$17,
99
+ Dither: componentDefinition$18,
100
+ DotGrid: componentDefinition$19,
101
+ Duotone: componentDefinition$20,
102
+ FilmGrain: componentDefinition$21,
103
+ FloatingParticles: componentDefinition$22,
104
+ FlowField: componentDefinition$23,
105
+ GlassTiles: componentDefinition$24,
106
+ Glitch: componentDefinition$25,
107
+ Glow: componentDefinition$26,
108
+ Godrays: componentDefinition$27,
109
+ Grayscale: componentDefinition$28,
110
+ Grid: componentDefinition$29,
111
+ GridDistortion: componentDefinition$30,
112
+ Group: componentDefinition$31,
113
+ Halftone: componentDefinition$32,
114
+ HueShift: componentDefinition$33,
115
+ ImageTexture: componentDefinition$34,
116
+ Invert: componentDefinition$35,
117
+ Kaleidoscope: componentDefinition$36,
118
+ LensFlare: componentDefinition$37,
119
+ LinearBlur: componentDefinition$38,
120
+ LinearGradient: componentDefinition$39,
121
+ Liquify: componentDefinition$40,
122
+ Mirror: componentDefinition$41,
123
+ Perspective: componentDefinition$42,
124
+ Pixelate: componentDefinition$43,
125
+ Plasma: componentDefinition$44,
126
+ PolarCoordinates: componentDefinition$45,
127
+ Posterize: componentDefinition$46,
128
+ ProgressiveBlur: componentDefinition$47,
129
+ RadialGradient: componentDefinition$48,
130
+ RectangularCoordinates: componentDefinition$49,
131
+ Ripples: componentDefinition$50,
132
+ Saturation: componentDefinition$51,
133
+ Sharpness: componentDefinition$52,
134
+ Shatter: componentDefinition$53,
135
+ SimplexNoise: componentDefinition$54,
136
+ SineWave: componentDefinition$55,
137
+ SolidColor: componentDefinition$56,
138
+ Spherize: componentDefinition$57,
139
+ Spiral: componentDefinition$58,
140
+ Strands: componentDefinition$59,
141
+ Stretch: componentDefinition$60,
142
+ Stripes: componentDefinition$61,
143
+ StudioBackground: componentDefinition$62,
144
+ Swirl: componentDefinition$63,
145
+ TiltShift: componentDefinition$64,
146
+ Tint: componentDefinition$65,
147
+ Tritone: componentDefinition$66,
148
+ Twirl: componentDefinition$67,
149
+ Vibrance: componentDefinition$68,
150
+ VideoTexture: componentDefinition$69,
151
+ WaveDistortion: componentDefinition$70,
152
+ WebcamTexture: componentDefinition$71,
153
+ ZoomBlur: componentDefinition$72
152
154
  };
153
155
  Object.entries(shaderDefinitions).forEach(([fileName, def]) => {
154
156
  const propsMetadata = {};
@@ -1 +1 @@
1
- {"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"AA2EA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACpC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE;QAC5B,EAAE,CAAC,EAAE,GAAG,CAAA;QACR,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC,CAAA;CACH;AA4GD,eAAO,MAAM,cAAc,qCAAyB,CAAA;AAGpD,wBAAgB,aAAa,IAAI,mBAAmB,EAAE,CAErD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAE7E;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAE5E;AAED,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAG9C"}
1
+ {"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"AA4EA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACpC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE;QAC5B,EAAE,CAAC,EAAE,GAAG,CAAA;QACR,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC,CAAA;CACH;AA6GD,eAAO,MAAM,cAAc,qCAAyB,CAAA;AAGpD,wBAAgB,aAAa,IAAI,mBAAmB,EAAE,CAErD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAE7E;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAE5E;AAED,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAG9C"}
@@ -0,0 +1,99 @@
1
+ import { ComponentDefinition } from '../../types';
2
+ import { transformColor, transformPosition } from '../../utilities/transformations';
3
+
4
+ export interface ComponentProps {
5
+ /**
6
+ * Edge color at the curtain base
7
+ *
8
+ * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
9
+ * @default "#a533f8"
10
+ */
11
+ colorA: Parameters<typeof transformColor>[0];
12
+ /**
13
+ * Core color in the bright center
14
+ *
15
+ * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
16
+ * @default "#22ee88"
17
+ */
18
+ colorB: Parameters<typeof transformColor>[0];
19
+ /**
20
+ * Tip color at the ray ends
21
+ *
22
+ * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
23
+ * @default "#1694e8"
24
+ */
25
+ colorC: Parameters<typeof transformColor>[0];
26
+ /**
27
+ * Color space for color interpolation
28
+ *
29
+ * Accepts one of the predefined option values.
30
+ * @default "linear"
31
+ */
32
+ colorSpace: string;
33
+ /**
34
+ * Shifts color distribution across the curtain height
35
+ *
36
+ * Accepts a number between 0 and 100.
37
+ * @default 50
38
+ */
39
+ balance: number;
40
+ /**
41
+ * Overall aurora brightness
42
+ *
43
+ * Accepts a number between 0 and 100.
44
+ * @default 80
45
+ */
46
+ intensity: number;
47
+ /**
48
+ * Number of aurora curtain layers
49
+ *
50
+ * Accepts a number between 1 and 4.
51
+ * @default 4
52
+ */
53
+ curtainCount: number;
54
+ /**
55
+ * Animation speed
56
+ *
57
+ * Accepts a number between -10 and 10.
58
+ * @default 5
59
+ */
60
+ speed: number;
61
+ /**
62
+ * How much the curtains undulate
63
+ *
64
+ * Accepts a number between 0 and 200.
65
+ * @default 50
66
+ */
67
+ waviness: number;
68
+ /**
69
+ * Density of vertical ray structures
70
+ *
71
+ * Accepts a number between 0 and 100.
72
+ * @default 20
73
+ */
74
+ rayDensity: number;
75
+ /**
76
+ * How tall the aurora extends
77
+ *
78
+ * Accepts a number between 10 and 200.
79
+ * @default 120
80
+ */
81
+ height: number;
82
+ /**
83
+ * Center position of the aurora
84
+ *
85
+ * Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
86
+ * @default {"x":0.5,"y":0.5}
87
+ */
88
+ center: Parameters<typeof transformPosition>[0];
89
+ /**
90
+ * Random seed for variation
91
+ *
92
+ * Accepts a number between 0 and 100.
93
+ * @default 0
94
+ */
95
+ seed: number;
96
+ }
97
+ export declare const componentDefinition: ComponentDefinition<ComponentProps>;
98
+ export default componentDefinition;
99
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Aurora/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AASvE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAyC,MAAM,qCAAqC,CAAA;AAI7H,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5C,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5C,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5C,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,IAAI,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAuMnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import "../../transformations-CC_c-QAT.js";
2
+ import "../../time-BZqyVJXt.js";
3
+ import "../../colorMixing-Ehw-Hfs_.js";
4
+ import { n as componentDefinition, t as Aurora_default } from "../../Aurora-BDnL1XdK.js";
5
+ export { componentDefinition, Aurora_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../colorMixing-Ehw-Hfs_.js";
3
- import { n as componentDefinition, t as Beam_default } from "../../Beam-BBbjVQDP.js";
3
+ import { n as componentDefinition, t as Beam_default } from "../../Beam-CyRoRQEj.js";
4
4
  export { componentDefinition, Beam_default as default };