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.
- package/dist/core/Aurora-BDnL1XdK.js +233 -0
- package/dist/core/registry.js +142 -140
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Aurora/index.d.ts +99 -0
- package/dist/core/shaders/Aurora/index.d.ts.map +1 -0
- package/dist/core/shaders/Aurora/index.js +5 -0
- package/dist/core/shaders/Beam/index.js +1 -1
- package/dist/core/shaders/Blob/index.js +1 -1
- package/dist/core/shaders/Blur/index.js +1 -1
- package/dist/core/shaders/BrightnessContrast/index.js +1 -1
- package/dist/core/shaders/Bulge/index.js +1 -1
- package/dist/core/shaders/CRTScreen/index.js +1 -1
- package/dist/core/shaders/ChannelBlur/index.js +1 -1
- package/dist/core/shaders/Checkerboard/index.js +1 -1
- package/dist/core/shaders/ChromaFlow/index.js +1 -1
- package/dist/core/shaders/ChromaticAberration/index.js +1 -1
- package/dist/core/shaders/Circle/index.js +1 -1
- package/dist/core/shaders/ConcentricSpin/index.js +1 -1
- package/dist/core/shaders/ContourLines/index.js +1 -1
- package/dist/core/shaders/CursorTrail/index.js +1 -1
- package/dist/core/shaders/DiffuseBlur/index.js +1 -1
- package/dist/core/shaders/Dither/index.js +1 -1
- package/dist/core/shaders/DotGrid/index.js +1 -1
- package/dist/core/shaders/Duotone/index.js +1 -1
- package/dist/core/shaders/FilmGrain/index.js +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +1 -1
- package/dist/core/shaders/FlowField/index.js +1 -1
- package/dist/core/shaders/GlassTiles/index.js +1 -1
- package/dist/core/shaders/Glitch/index.js +1 -1
- package/dist/core/shaders/Glow/index.js +1 -1
- package/dist/core/shaders/Godrays/index.js +1 -1
- package/dist/core/shaders/Grayscale/index.js +1 -1
- package/dist/core/shaders/Grid/index.js +1 -1
- package/dist/core/shaders/GridDistortion/index.js +1 -1
- package/dist/core/shaders/Group/index.js +1 -1
- package/dist/core/shaders/Halftone/index.js +1 -1
- package/dist/core/shaders/HueShift/index.js +1 -1
- package/dist/core/shaders/ImageTexture/index.js +1 -1
- package/dist/core/shaders/Invert/index.js +1 -1
- package/dist/core/shaders/Kaleidoscope/index.js +1 -1
- package/dist/core/shaders/LensFlare/index.js +1 -1
- package/dist/core/shaders/LinearBlur/index.js +1 -1
- package/dist/core/shaders/LinearGradient/index.js +1 -1
- package/dist/core/shaders/Liquify/index.js +1 -1
- package/dist/core/shaders/Mirror/index.js +1 -1
- package/dist/core/shaders/Perspective/index.js +1 -1
- package/dist/core/shaders/Pixelate/index.js +1 -1
- package/dist/core/shaders/Plasma/index.js +1 -1
- package/dist/core/shaders/PolarCoordinates/index.js +1 -1
- package/dist/core/shaders/Posterize/index.js +1 -1
- package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
- package/dist/core/shaders/RadialGradient/index.js +1 -1
- package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
- package/dist/core/shaders/Ripples/index.js +1 -1
- package/dist/core/shaders/Saturation/index.js +1 -1
- package/dist/core/shaders/Sharpness/index.js +1 -1
- package/dist/core/shaders/Shatter/index.js +1 -1
- package/dist/core/shaders/SimplexNoise/index.js +1 -1
- package/dist/core/shaders/SineWave/index.js +1 -1
- package/dist/core/shaders/SolidColor/index.js +1 -1
- package/dist/core/shaders/Spherize/index.js +1 -1
- package/dist/core/shaders/Spiral/index.js +1 -1
- package/dist/core/shaders/Strands/index.js +1 -1
- package/dist/core/shaders/Stretch/index.js +1 -1
- package/dist/core/shaders/Stripes/index.js +1 -1
- package/dist/core/shaders/StudioBackground/index.js +1 -1
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/TiltShift/index.js +1 -1
- package/dist/core/shaders/Tint/index.js +1 -1
- package/dist/core/shaders/Tritone/index.js +1 -1
- package/dist/core/shaders/Twirl/index.js +1 -1
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/VideoTexture/index.js +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/core/shaders/WebcamTexture/index.js +1 -1
- package/dist/core/shaders/ZoomBlur/index.js +1 -1
- package/dist/react/Aurora.js +164 -0
- package/dist/react/components/Aurora.d.ts +31 -0
- package/dist/react/components/Aurora.d.ts.map +1 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +21 -0
- package/dist/registry.js +331 -0
- package/dist/solid/components/Aurora.d.ts +28 -0
- package/dist/solid/components/Aurora.d.ts.map +1 -0
- package/dist/solid/components/Aurora.js +168 -0
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +144 -142
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +21 -0
- package/dist/svelte/components/Aurora.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-TDa1I3YR.js → generatePresetCode-DXODN9t6.js} +21 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +415 -285
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/Aurora.js +3 -0
- package/dist/vue/Aurora.vue_vue_type_script_setup_true_lang.js +156 -0
- package/dist/vue/components/Aurora.vue.d.ts +54 -0
- package/dist/vue/components/Aurora.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +2 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +21 -0
- package/package.json +9 -1
- /package/dist/core/{Beam-BBbjVQDP.js → Beam-CyRoRQEj.js} +0 -0
- /package/dist/core/{Blob-DeD9KRj-.js → Blob-BgN4aVOR.js} +0 -0
- /package/dist/core/{Blur-Brqgsz7y.js → Blur-NNElJwzj.js} +0 -0
- /package/dist/core/{BrightnessContrast-DSePKfxC.js → BrightnessContrast-FdkKMaQQ.js} +0 -0
- /package/dist/core/{Bulge-D2OwcL23.js → Bulge-Ca9hW7y4.js} +0 -0
- /package/dist/core/{CRTScreen-D6qh6DnD.js → CRTScreen-BHKDJ9_0.js} +0 -0
- /package/dist/core/{ChannelBlur-BKo9uGaB.js → ChannelBlur-A0r5Gx_y.js} +0 -0
- /package/dist/core/{Checkerboard-ChbG4nPC.js → Checkerboard-XJh_tV6B.js} +0 -0
- /package/dist/core/{ChromaFlow-DyqU1igx.js → ChromaFlow-Cc647Knw.js} +0 -0
- /package/dist/core/{ChromaticAberration-9nlFN2h0.js → ChromaticAberration-CYvju_kr.js} +0 -0
- /package/dist/core/{Circle-DSQ_9vPx.js → Circle-C9DYXDnD.js} +0 -0
- /package/dist/core/{ConcentricSpin-CLTGx_sN.js → ConcentricSpin-CnuAW_6I.js} +0 -0
- /package/dist/core/{ContourLines-Dc5J7iw5.js → ContourLines-DJ0R9q6Y.js} +0 -0
- /package/dist/core/{CursorTrail-COnyRZH9.js → CursorTrail-DpegyvgZ.js} +0 -0
- /package/dist/core/{DiffuseBlur-DcV8M7hN.js → DiffuseBlur-BXcJHOEK.js} +0 -0
- /package/dist/core/{Dither-C-w0ugGX.js → Dither-BKUz66yF.js} +0 -0
- /package/dist/core/{DotGrid-wXnfcjrM.js → DotGrid-CQ3Bqk7F.js} +0 -0
- /package/dist/core/{Duotone-B8dYgrFR.js → Duotone-BW1JYEPc.js} +0 -0
- /package/dist/core/{FilmGrain-D_6m7GJ4.js → FilmGrain-GEWzNIxN.js} +0 -0
- /package/dist/core/{FloatingParticles-YuuXeICf.js → FloatingParticles--9Vfk8l7.js} +0 -0
- /package/dist/core/{FlowField-Dx2eqOcU.js → FlowField-cpaUwFHC.js} +0 -0
- /package/dist/core/{GlassTiles-hnt2pUQN.js → GlassTiles-BdeSNj7g.js} +0 -0
- /package/dist/core/{Glitch-DfPXeSlL.js → Glitch-CROTuIoh.js} +0 -0
- /package/dist/core/{Glow-CQv_dRPj.js → Glow-DQDMXgcr.js} +0 -0
- /package/dist/core/{Godrays-B_-HliEA.js → Godrays-ByIS3bRa.js} +0 -0
- /package/dist/core/{Grayscale-DRFXhxr4.js → Grayscale-DpKuVrqO.js} +0 -0
- /package/dist/core/{Grid-DKSUwEIe.js → Grid-CkcYMWZi.js} +0 -0
- /package/dist/core/{GridDistortion-DahXljLX.js → GridDistortion-CATS8be1.js} +0 -0
- /package/dist/core/{Group-r9gMBd5y.js → Group-DqEcpVau.js} +0 -0
- /package/dist/core/{Halftone-ZVjwkjaQ.js → Halftone-DPnEJWAR.js} +0 -0
- /package/dist/core/{HueShift-gZlNBwNE.js → HueShift-BuAL_IUD.js} +0 -0
- /package/dist/core/{ImageTexture-DuXMku_O.js → ImageTexture-BxUmKJDM.js} +0 -0
- /package/dist/core/{Invert-gUjZNHF3.js → Invert-CnrYMYHq.js} +0 -0
- /package/dist/core/{Kaleidoscope-COKZ0BDb.js → Kaleidoscope-w7bcRTGG.js} +0 -0
- /package/dist/core/{LensFlare-D6jy4M7G.js → LensFlare-D42C5m1g.js} +0 -0
- /package/dist/core/{LinearBlur-CArDQIhs.js → LinearBlur-PB7AuAdN.js} +0 -0
- /package/dist/core/{LinearGradient-BkB_3gVV.js → LinearGradient-xd6zdc9k.js} +0 -0
- /package/dist/core/{Liquify-BrIB9ajS.js → Liquify-BfUbY9Aa.js} +0 -0
- /package/dist/core/{Mirror-BRPYfVAr.js → Mirror-CBuDbabq.js} +0 -0
- /package/dist/core/{Perspective-CglPLWTZ.js → Perspective-BWEoTtAq.js} +0 -0
- /package/dist/core/{Pixelate-CwnuDc5L.js → Pixelate-C1kcXBSy.js} +0 -0
- /package/dist/core/{Plasma-CuW-GOI_.js → Plasma-BaKvTyBi.js} +0 -0
- /package/dist/core/{PolarCoordinates-9AFXKnSC.js → PolarCoordinates-tXYdB1hR.js} +0 -0
- /package/dist/core/{Posterize-DU2yrydV.js → Posterize-D4f1xM4m.js} +0 -0
- /package/dist/core/{ProgressiveBlur-BXv2mob_.js → ProgressiveBlur-CmBI0c7e.js} +0 -0
- /package/dist/core/{RadialGradient-Dd21Be-_.js → RadialGradient-BOWu2cE6.js} +0 -0
- /package/dist/core/{RectangularCoordinates-DAOGnX2p.js → RectangularCoordinates-C2KYwree.js} +0 -0
- /package/dist/core/{Ripples-Nk5is8WX.js → Ripples-C3rm4Nv6.js} +0 -0
- /package/dist/core/{Saturation-KoiVB92Y.js → Saturation-Bw3ToVIJ.js} +0 -0
- /package/dist/core/{Sharpness-CK-zaDVc.js → Sharpness-Dm4dZVlk.js} +0 -0
- /package/dist/core/{Shatter-EEzkIXGb.js → Shatter-C5oF85Mn.js} +0 -0
- /package/dist/core/{SimplexNoise-DKov4Yho.js → SimplexNoise-CzJ9JuBO.js} +0 -0
- /package/dist/core/{SineWave-Cy0wWKUU.js → SineWave-DMogWzg5.js} +0 -0
- /package/dist/core/{SolidColor-P4OKglCC.js → SolidColor-CmqDLEvX.js} +0 -0
- /package/dist/core/{Spherize-BLEvqakM.js → Spherize-BmA6-b8n.js} +0 -0
- /package/dist/core/{Spiral-DXuKs26n.js → Spiral-DmYzx8BO.js} +0 -0
- /package/dist/core/{Strands-DsdASoV4.js → Strands-CmEblLfF.js} +0 -0
- /package/dist/core/{Stretch-By8f2wmJ.js → Stretch-szy_xiYc.js} +0 -0
- /package/dist/core/{Stripes-D8HSlP1H.js → Stripes-Bze5bkdm.js} +0 -0
- /package/dist/core/{StudioBackground-CFjfBnWp.js → StudioBackground-Ci26l_Xb.js} +0 -0
- /package/dist/core/{Swirl-BIFGxHL0.js → Swirl-BUKxPesY.js} +0 -0
- /package/dist/core/{TiltShift-CLMFkzBs.js → TiltShift-YxZeQ5Et.js} +0 -0
- /package/dist/core/{Tint-NQjiXLGu.js → Tint-Bss3hfZG.js} +0 -0
- /package/dist/core/{Tritone-67eoddBF.js → Tritone-CVr6_qy3.js} +0 -0
- /package/dist/core/{Twirl-ZaYAMqmq.js → Twirl-CKwGdb3_.js} +0 -0
- /package/dist/core/{Vibrance-DbSUuK_4.js → Vibrance-BiW7HP94.js} +0 -0
- /package/dist/core/{VideoTexture-lHzoN3G9.js → VideoTexture-CH9n_1hI.js} +0 -0
- /package/dist/core/{WaveDistortion-CB6xTndT.js → WaveDistortion-BYmLNaT1.js} +0 -0
- /package/dist/core/{WebcamTexture-BJUvpMmV.js → WebcamTexture-wlrwZXeq.js} +0 -0
- /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 };
|
package/dist/core/registry.js
CHANGED
|
@@ -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 "./
|
|
8
|
-
import { n as componentDefinition$3 } from "./
|
|
9
|
-
import { n as componentDefinition$4 } from "./
|
|
10
|
-
import { n as componentDefinition$5 } from "./
|
|
11
|
-
import { n as componentDefinition$6 } from "./
|
|
12
|
-
import { n as componentDefinition$7 } from "./
|
|
13
|
-
import { n as componentDefinition$8 } from "./
|
|
14
|
-
import { n as componentDefinition$9 } from "./
|
|
15
|
-
import { n as componentDefinition$10 } from "./
|
|
16
|
-
import { n as componentDefinition$11 } from "./
|
|
17
|
-
import { n as componentDefinition$12 } from "./
|
|
18
|
-
import { n as componentDefinition$13 } from "./
|
|
19
|
-
import { n as componentDefinition$14 } from "./
|
|
20
|
-
import { n as componentDefinition$15 } from "./
|
|
21
|
-
import { n as componentDefinition$16 } from "./
|
|
22
|
-
import { n as componentDefinition$17 } from "./
|
|
23
|
-
import { n as componentDefinition$18 } from "./
|
|
24
|
-
import { n as componentDefinition$19 } from "./
|
|
25
|
-
import { n as componentDefinition$20 } from "./
|
|
26
|
-
import { n as componentDefinition$21 } from "./
|
|
27
|
-
import { n as componentDefinition$22 } from "./
|
|
28
|
-
import { n as componentDefinition$23 } from "./
|
|
29
|
-
import { n as componentDefinition$24 } from "./
|
|
30
|
-
import { n as componentDefinition$25 } from "./
|
|
31
|
-
import { n as componentDefinition$26 } from "./
|
|
32
|
-
import { n as componentDefinition$27 } from "./
|
|
33
|
-
import { n as componentDefinition$28 } from "./
|
|
34
|
-
import { n as componentDefinition$29 } from "./
|
|
35
|
-
import { n as componentDefinition$30 } from "./
|
|
36
|
-
import { n as componentDefinition$31 } from "./
|
|
37
|
-
import { n as componentDefinition$32 } from "./
|
|
38
|
-
import { n as componentDefinition$33 } from "./
|
|
39
|
-
import { n as componentDefinition$34 } from "./
|
|
40
|
-
import { n as componentDefinition$35 } from "./
|
|
41
|
-
import { n as componentDefinition$36 } from "./
|
|
42
|
-
import { n as componentDefinition$37 } from "./
|
|
43
|
-
import { n as componentDefinition$38 } from "./
|
|
44
|
-
import { n as componentDefinition$39 } from "./
|
|
45
|
-
import { n as componentDefinition$40 } from "./
|
|
46
|
-
import { n as componentDefinition$41 } from "./
|
|
47
|
-
import { n as componentDefinition$42 } from "./
|
|
48
|
-
import { n as componentDefinition$43 } from "./
|
|
49
|
-
import { n as componentDefinition$44 } from "./
|
|
50
|
-
import { n as componentDefinition$45 } from "./
|
|
51
|
-
import { n as componentDefinition$46 } from "./
|
|
52
|
-
import { n as componentDefinition$47 } from "./
|
|
53
|
-
import { n as componentDefinition$48 } from "./
|
|
54
|
-
import { n as componentDefinition$49 } from "./
|
|
55
|
-
import { n as componentDefinition$50 } from "./
|
|
56
|
-
import { n as componentDefinition$51 } from "./
|
|
57
|
-
import { n as componentDefinition$52 } from "./
|
|
58
|
-
import { n as componentDefinition$53 } from "./
|
|
59
|
-
import { n as componentDefinition$54 } from "./
|
|
60
|
-
import { n as componentDefinition$55 } from "./
|
|
61
|
-
import { n as componentDefinition$56 } from "./
|
|
62
|
-
import { n as componentDefinition$57 } from "./
|
|
63
|
-
import { n as componentDefinition$58 } from "./
|
|
64
|
-
import { n as componentDefinition$59 } from "./
|
|
65
|
-
import { n as componentDefinition$60 } from "./
|
|
66
|
-
import { n as componentDefinition$61 } from "./
|
|
67
|
-
import { n as componentDefinition$62 } from "./
|
|
68
|
-
import { n as componentDefinition$63 } from "./
|
|
69
|
-
import { n as componentDefinition$64 } from "./
|
|
70
|
-
import { n as componentDefinition$65 } from "./
|
|
71
|
-
import { n as componentDefinition$66 } from "./
|
|
72
|
-
import { n as componentDefinition$67 } from "./
|
|
73
|
-
import { n as componentDefinition$68 } from "./
|
|
74
|
-
import { n as componentDefinition$69 } from "./
|
|
75
|
-
import { n as componentDefinition$70 } from "./
|
|
76
|
-
import { n as componentDefinition$71 } from "./
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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":"
|
|
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-
|
|
3
|
+
import { n as componentDefinition, t as Beam_default } from "../../Beam-CyRoRQEj.js";
|
|
4
4
|
export { componentDefinition, Beam_default as default };
|