shaders 2.5.126 → 2.5.128
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/{Blob-B7IFHhVB.js → Blob-BT50tDXE.js} +49 -46
- package/dist/core/{ChromaticAberration-vygkvgz-.js → ChromaticAberration-DZOcs-bZ.js} +6 -6
- package/dist/core/{FilmGrain-Dbw02Jz9.js → FilmGrain-DdV7_b8g.js} +1 -1
- package/dist/core/{Sharpness-C-IEswPL.js → Sharpness-PIWR4gYc.js} +1 -1
- package/dist/core/{Swirl-KA9cEnLI.js → Swirl-fkUEZ2TQ.js} +1 -1
- package/dist/core/{WaveDistortion-CDIc5Uyk.js → WaveDistortion-MbB-Kgjz.js} +11 -5
- package/dist/core/index.js +97 -68
- package/dist/core/registry.js +7 -7
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/{shaderRegistry-DZDkRCt8.js → shaderRegistry-Brvv9sO8.js} +6 -6
- package/dist/core/shaders/Blob/index.d.ts.map +1 -1
- package/dist/core/shaders/Blob/index.js +1 -1
- package/dist/core/shaders/ChromaticAberration/index.d.ts.map +1 -1
- package/dist/core/shaders/ChromaticAberration/index.js +1 -1
- package/dist/core/shaders/FilmGrain/index.d.ts.map +1 -1
- package/dist/core/shaders/FilmGrain/index.js +1 -1
- package/dist/core/shaders/Sharpness/index.d.ts.map +1 -1
- package/dist/core/shaders/Sharpness/index.js +1 -1
- package/dist/core/shaders/Swirl/index.d.ts.map +1 -1
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/WaveDistortion/index.d.ts.map +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/js/bundle.js +74 -74
- package/dist/js/createShader.js +1 -1
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +70 -70
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
3
|
import { t as createAnimatedTime } from "./time-DUqSFWvT.js";
|
|
4
|
-
import { dot, float, length, max, normalize, pow, reflect, screenUV, sin, smoothstep, uniform, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
4
|
+
import { Fn, dot, float, length, max, normalize, pow, reflect, screenUV, sin, smoothstep, uniform, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
const componentDefinition = {
|
|
6
6
|
name: "Blob",
|
|
7
7
|
category: "Textures",
|
|
@@ -173,36 +173,7 @@ const componentDefinition = {
|
|
|
173
173
|
},
|
|
174
174
|
fragmentNode: (params) => {
|
|
175
175
|
const { uniforms, onBeforeRender } = params;
|
|
176
|
-
const baseUV = screenUV;
|
|
177
176
|
const animTime = createAnimatedTime(params, uniforms.speed, uniforms.seed);
|
|
178
|
-
const colorA = uniforms.colorA.uniform;
|
|
179
|
-
const colorB = uniforms.colorB.uniform;
|
|
180
|
-
const size = uniforms.size.uniform;
|
|
181
|
-
const deformation = uniforms.deformation.uniform;
|
|
182
|
-
const softness = uniforms.softness.uniform;
|
|
183
|
-
const highlightIntensity = uniforms.highlightIntensity.uniform;
|
|
184
|
-
const highlightColor = uniforms.highlightColor.uniform;
|
|
185
|
-
const edgeWidth = softness.mul(float(.3));
|
|
186
|
-
const edgeCurve = softness.mul(float(2)).add(float(.5));
|
|
187
|
-
const aspect = viewportSize.x.div(viewportSize.y);
|
|
188
|
-
const aspectCorrectedUV = vec2(baseUV.x.mul(aspect), baseUV.y);
|
|
189
|
-
const centerPos = vec2(uniforms.center.uniform.x.mul(aspect), uniforms.center.uniform.y.oneMinus());
|
|
190
|
-
const uv$1 = aspectCorrectedUV.sub(centerPos);
|
|
191
|
-
const dist = length(uv$1);
|
|
192
|
-
const baseRadius = size;
|
|
193
|
-
const noiseScale = float(4);
|
|
194
|
-
const noise1 = sin(uv$1.x.mul(noiseScale.mul(float(.8))).add(animTime.mul(float(.8)))).mul(sin(uv$1.y.mul(noiseScale.mul(float(.7))).add(animTime.mul(float(.6))))).add(sin(uv$1.x.mul(noiseScale.mul(float(1.2))).sub(uv$1.y.mul(noiseScale.mul(float(.9))).add(animTime.mul(float(.4)))))).mul(float(.15)).mul(deformation);
|
|
195
|
-
const noise2 = sin(uv$1.x.mul(noiseScale.mul(float(1.4))).sub(animTime.mul(float(.5)))).mul(sin(uv$1.y.mul(noiseScale.mul(float(1.1))).add(animTime.mul(float(.7))))).mul(float(.12)).mul(deformation);
|
|
196
|
-
const noise3 = sin(uv$1.x.mul(noiseScale.mul(float(1.8))).add(uv$1.y.mul(noiseScale.mul(float(1.6))).add(animTime.mul(float(.3))))).add(sin(uv$1.x.mul(noiseScale.mul(float(.6))).sub(animTime.mul(float(.9))))).mul(float(.1)).mul(deformation);
|
|
197
|
-
const noise4 = sin(uv$1.x.mul(noiseScale.mul(float(2.2))).add(animTime.mul(float(.2)))).mul(sin(uv$1.y.mul(noiseScale.mul(float(1.9))).sub(animTime.mul(float(.8))))).mul(float(.04)).mul(deformation);
|
|
198
|
-
const noiseAmount = noise1.add(noise2).add(noise3).add(noise4);
|
|
199
|
-
const organicRadius = baseRadius.add(noiseAmount);
|
|
200
|
-
const blobMask = pow(smoothstep(organicRadius.sub(edgeWidth), organicRadius.add(edgeWidth), dist).oneMinus(), edgeCurve);
|
|
201
|
-
const distFromCenter = dist;
|
|
202
|
-
const sphereRadius = organicRadius;
|
|
203
|
-
const normalTilt = smoothstep(float(0), sphereRadius, distFromCenter);
|
|
204
|
-
const fakeZ = float(1).sub(normalTilt.mul(float(.1)));
|
|
205
|
-
const surfaceNormal = normalize(vec3(uv$1.x.mul(normalTilt.add(float(.2))), uv$1.y.mul(normalTilt.add(float(.2))), fakeZ));
|
|
206
177
|
const normLx = uniform(0);
|
|
207
178
|
const normLy = uniform(0);
|
|
208
179
|
const normLz = uniform(1);
|
|
@@ -221,22 +192,54 @@ const componentDefinition = {
|
|
|
221
192
|
normLz.value = 0;
|
|
222
193
|
}
|
|
223
194
|
});
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
195
|
+
return Fn(() => {
|
|
196
|
+
const baseUV = screenUV;
|
|
197
|
+
const colorA = uniforms.colorA.uniform;
|
|
198
|
+
const colorB = uniforms.colorB.uniform;
|
|
199
|
+
const size = uniforms.size.uniform;
|
|
200
|
+
const deformation = uniforms.deformation.uniform;
|
|
201
|
+
const softness = uniforms.softness.uniform;
|
|
202
|
+
const highlightIntensity = uniforms.highlightIntensity.uniform;
|
|
203
|
+
const highlightColor = uniforms.highlightColor.uniform;
|
|
204
|
+
const edgeWidth = softness.mul(float(.3));
|
|
205
|
+
const edgeCurve = softness.mul(float(2)).add(float(.5));
|
|
206
|
+
const aspect = viewportSize.x.div(viewportSize.y);
|
|
207
|
+
const aspectCorrectedUV = vec2(baseUV.x.mul(aspect), baseUV.y);
|
|
208
|
+
const centerPos = vec2(uniforms.center.uniform.x.mul(aspect), uniforms.center.uniform.y.oneMinus());
|
|
209
|
+
const uv$1 = aspectCorrectedUV.sub(centerPos).toVar();
|
|
210
|
+
const dist = length(uv$1);
|
|
211
|
+
const baseRadius = size;
|
|
212
|
+
const noiseScale = float(4);
|
|
213
|
+
const noise1 = sin(uv$1.x.mul(noiseScale.mul(float(.8))).add(animTime.mul(float(.8)))).mul(sin(uv$1.y.mul(noiseScale.mul(float(.7))).add(animTime.mul(float(.6))))).add(sin(uv$1.x.mul(noiseScale.mul(float(1.2))).sub(uv$1.y.mul(noiseScale.mul(float(.9))).add(animTime.mul(float(.4)))))).mul(float(.15)).mul(deformation);
|
|
214
|
+
const noise2 = sin(uv$1.x.mul(noiseScale.mul(float(1.4))).sub(animTime.mul(float(.5)))).mul(sin(uv$1.y.mul(noiseScale.mul(float(1.1))).add(animTime.mul(float(.7))))).mul(float(.12)).mul(deformation);
|
|
215
|
+
const noise3 = sin(uv$1.x.mul(noiseScale.mul(float(1.8))).add(uv$1.y.mul(noiseScale.mul(float(1.6))).add(animTime.mul(float(.3))))).add(sin(uv$1.x.mul(noiseScale.mul(float(.6))).sub(animTime.mul(float(.9))))).mul(float(.1)).mul(deformation);
|
|
216
|
+
const noise4 = sin(uv$1.x.mul(noiseScale.mul(float(2.2))).add(animTime.mul(float(.2)))).mul(sin(uv$1.y.mul(noiseScale.mul(float(1.9))).sub(animTime.mul(float(.8))))).mul(float(.04)).mul(deformation);
|
|
217
|
+
const noiseAmount = noise1.add(noise2).add(noise3).add(noise4);
|
|
218
|
+
const organicRadius = baseRadius.add(noiseAmount);
|
|
219
|
+
const blobMask = pow(smoothstep(organicRadius.sub(edgeWidth), organicRadius.add(edgeWidth), dist).oneMinus(), edgeCurve).toVar();
|
|
220
|
+
const distFromCenter = dist;
|
|
221
|
+
const sphereRadius = organicRadius;
|
|
222
|
+
const normalTilt = smoothstep(float(0), sphereRadius, distFromCenter).toVar();
|
|
223
|
+
const fakeZ = float(1).sub(normalTilt.mul(float(.1)));
|
|
224
|
+
const tilted = normalTilt.add(float(.2)).toVar();
|
|
225
|
+
const surfaceNormal = normalize(vec3(uv$1.x.mul(tilted), uv$1.y.mul(tilted), fakeZ));
|
|
226
|
+
const lightDir = vec3(normLx, normLy, normLz);
|
|
227
|
+
const viewDir = vec3(float(0), float(0), float(1));
|
|
228
|
+
const reflectDir = reflect(lightDir.negate(), surfaceNormal);
|
|
229
|
+
const specularPower = float(32);
|
|
230
|
+
const specular = pow(max(float(0), dot(reflectDir, viewDir)), specularPower);
|
|
231
|
+
const curvatureBoost = normalTilt.mul(float(.5)).add(float(.5));
|
|
232
|
+
const finalHighlight = specular.mul(curvatureBoost).mul(highlightIntensity).mul(blobMask);
|
|
233
|
+
const posX = uv$1.x.mul(float(3));
|
|
234
|
+
const posY = uv$1.y.mul(float(3));
|
|
235
|
+
const colorNoise1 = sin(posX.add(animTime.mul(float(.4)))).mul(sin(posY.add(animTime.mul(float(.3))))).add(sin(posX.mul(float(.7)).add(posY.mul(float(.8))).add(animTime.mul(float(.2))))).mul(float(.5)).add(float(.5));
|
|
236
|
+
const colorNoise2 = sin(posX.mul(float(1.3)).sub(animTime.mul(float(.5)))).mul(sin(posY.mul(float(1.1)).add(animTime.mul(float(.6))))).add(sin(posX.mul(float(.5)).sub(posY.mul(float(.6)).sub(animTime.mul(float(.3)))))).mul(float(.5)).add(float(.5));
|
|
237
|
+
const combinedNoise = colorNoise1.mul(float(.6)).add(colorNoise2.mul(float(.4)));
|
|
238
|
+
const finalColorRGB = mixColors(colorA, colorB, smoothstep(float(.1), float(.9), combinedNoise), uniforms.colorSpace.uniform.value).rgb;
|
|
239
|
+
const avgAlpha = colorA.a.add(colorB.a).div(float(2));
|
|
240
|
+
const highlightContribution = highlightColor.rgb.mul(finalHighlight);
|
|
241
|
+
return vec4(finalColorRGB.add(highlightContribution), avgAlpha.mul(blobMask));
|
|
242
|
+
})();
|
|
240
243
|
}
|
|
241
244
|
};
|
|
242
245
|
var Blob_default = componentDefinition;
|
|
@@ -80,14 +80,14 @@ const componentDefinition = {
|
|
|
80
80
|
const aspect = viewportSize.x.div(viewportSize.y);
|
|
81
81
|
const direction = vec2(cos(angleRad).div(aspect), sin(angleRad));
|
|
82
82
|
const scaledStrength = uniforms.strength.uniform.mul(.1);
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
83
|
+
const offsetBase = direction.mul(scaledStrength).toVar();
|
|
84
|
+
const redUV = screenUV.add(offsetBase.mul(uniforms.redOffset.uniform));
|
|
85
|
+
const greenUV = screenUV.add(offsetBase.mul(uniforms.greenOffset.uniform));
|
|
86
|
+
const blueUV = screenUV.add(offsetBase.mul(uniforms.blueOffset.uniform));
|
|
86
87
|
const redChannel = childTexture.sample(redUV).r;
|
|
87
|
-
const
|
|
88
|
+
const greenSample = childTexture.sample(greenUV);
|
|
88
89
|
const blueChannel = childTexture.sample(blueUV).b;
|
|
89
|
-
|
|
90
|
-
return unpremultiplyAlpha(vec4(redChannel, greenChannel, blueChannel, alpha));
|
|
90
|
+
return unpremultiplyAlpha(vec4(redChannel, greenSample.g, blueChannel, greenSample.a));
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
var ChromaticAberration_default = componentDefinition;
|
|
@@ -44,7 +44,7 @@ const componentDefinition = {
|
|
|
44
44
|
const strength = uniforms.strength.uniform;
|
|
45
45
|
const bias = uniforms.bias.uniform;
|
|
46
46
|
const animated = uniforms.animated.uniform;
|
|
47
|
-
const sourceColor = childNode || vec4(0, 0, 0, 0);
|
|
47
|
+
const sourceColor = (childNode || vec4(0, 0, 0, 0)).toVar();
|
|
48
48
|
const animTime = uniform(0);
|
|
49
49
|
onBeforeRender(({ deltaTime }) => {
|
|
50
50
|
animTime.value += deltaTime * animated.value * 10;
|
|
@@ -37,7 +37,7 @@ const componentDefinition = {
|
|
|
37
37
|
const right = childTexture.sample(uv$1.add(vec2(pixelSize.x, 0)));
|
|
38
38
|
const centerWeight = float(1).add(amount.mul(4));
|
|
39
39
|
const neighborWeight = amount.negate();
|
|
40
|
-
return unpremultiplyAlpha(vec4(clamp(center.mul(centerWeight).add(top.mul(neighborWeight)).add(bottom.mul(neighborWeight)).add(left.mul(neighborWeight)).add(right.mul(neighborWeight))
|
|
40
|
+
return unpremultiplyAlpha(vec4(clamp(center.rgb.mul(centerWeight).add(top.rgb.mul(neighborWeight)).add(bottom.rgb.mul(neighborWeight)).add(left.rgb.mul(neighborWeight)).add(right.rgb.mul(neighborWeight)), 0, 1), center.a));
|
|
41
41
|
})();
|
|
42
42
|
}
|
|
43
43
|
};
|
|
@@ -91,7 +91,7 @@ const componentDefinition = {
|
|
|
91
91
|
const freq3 = detail.mul(3.7);
|
|
92
92
|
const d3 = vec2(d2.x.add(sin(d2.y.mul(freq3.mul(1.8)).add(t.mul(.85))).mul(.04).add(cos(d2.x.mul(freq3.mul(1.3)).sub(t.mul(.55))).mul(.025)).add(sin(d2.x.add(d2.y).mul(freq3.mul(.7)).add(t.mul(.9))).mul(.02))), d2.y.add(cos(d2.x.mul(freq3.mul(1.6)).sub(t.mul(.75))).mul(.04).add(sin(d2.y.mul(freq3.mul(1.1)).add(t.mul(.5))).mul(.025)).add(cos(d2.x.add(d2.y).mul(freq3.mul(.8)).sub(t.mul(.95))).mul(.02)))).toVar();
|
|
93
93
|
const pattern3 = sin(d3.x.mul(freq3.mul(1.1)).add(d3.y.mul(freq3.mul(1.5))).sub(t.mul(.55)));
|
|
94
|
-
const combinedPattern = pattern1.mul(.45).add(pattern2.mul(.35)).add(pattern3.mul(.2));
|
|
94
|
+
const combinedPattern = pattern1.mul(.45).add(pattern2.mul(.35)).add(pattern3.mul(.2)).toVar();
|
|
95
95
|
const blendBias = uniforms.blend.uniform.sub(50).mul(.006);
|
|
96
96
|
const blendFactor = smoothstep(.3, .7, combinedPattern.mul(.5).add(.5).add(blendBias));
|
|
97
97
|
const colorMix = mixColors(uniforms.colorA.uniform, uniforms.colorB.uniform, blendFactor, csMode);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as applyEdgeHandling } from "./edges-CX_lJB9R.js";
|
|
1
|
+
import { n as applyEdgeToUV, t as applyEdgeHandling } from "./edges-CX_lJB9R.js";
|
|
2
2
|
import { c as transformEdges } from "./transformations-CJcUeZIC.js";
|
|
3
3
|
import { t as unpremultiplyAlpha } from "./alpha-C4ptedXe.js";
|
|
4
4
|
import { t as createAnimatedTime } from "./time-DUqSFWvT.js";
|
|
@@ -148,12 +148,12 @@ const componentDefinition = {
|
|
|
148
148
|
sinAngle = precomputedSin;
|
|
149
149
|
} else {
|
|
150
150
|
const angleRad = uniforms.angle.uniform.mul(PI).div(180);
|
|
151
|
-
cosAngle = cos(angleRad);
|
|
152
|
-
sinAngle = sin(angleRad);
|
|
151
|
+
cosAngle = cos(angleRad).toVar();
|
|
152
|
+
sinAngle = sin(angleRad).toVar();
|
|
153
153
|
}
|
|
154
154
|
const centeredUV = uvCoord.sub(vec2(.5, .5));
|
|
155
155
|
const aspectCorrectedUV = vec2(centeredUV.x.mul(aspect), centeredUV.y);
|
|
156
|
-
const phase =
|
|
156
|
+
const phase = aspectCorrectedUV.x.mul(sinAngle).add(aspectCorrectedUV.y.mul(cosAngle)).add(.5).mul(uniforms.frequency.uniform).mul(PI.mul(2)).add(t);
|
|
157
157
|
let finalWave;
|
|
158
158
|
switch (uniforms.waveType.uniform.value) {
|
|
159
159
|
case 1:
|
|
@@ -180,7 +180,13 @@ const componentDefinition = {
|
|
|
180
180
|
onCleanup(() => {
|
|
181
181
|
if (childTexture?.renderTarget?.dispose) childTexture.renderTarget.dispose();
|
|
182
182
|
});
|
|
183
|
-
|
|
183
|
+
const edgeMode = uniforms.edges.uniform.value;
|
|
184
|
+
let finalColor;
|
|
185
|
+
if (edgeMode === 2 || edgeMode === 3) {
|
|
186
|
+
const finalUV = applyEdgeToUV(distortedUV, edgeMode);
|
|
187
|
+
finalColor = childTexture.sample(finalUV);
|
|
188
|
+
} else finalColor = applyEdgeHandling(distortedUV, childTexture.sample(distortedUV), childTexture, edgeMode);
|
|
189
|
+
return unpremultiplyAlpha(finalColor);
|
|
184
190
|
}
|
|
185
191
|
};
|
|
186
192
|
var WaveDistortion_default = componentDefinition;
|
package/dist/core/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { t as createAnimatedTime } from "./time-DUqSFWvT.js";
|
|
|
8
8
|
import "./Aurora-D5Pjk4ve.js";
|
|
9
9
|
import "./BarShift-2XBhva1A.js";
|
|
10
10
|
import "./Beam-B3BX08lR.js";
|
|
11
|
-
import "./Blob-
|
|
11
|
+
import "./Blob-BT50tDXE.js";
|
|
12
12
|
import "./computeBlur-CprKe0xa.js";
|
|
13
13
|
import "./Blur-5_t3tR_g.js";
|
|
14
14
|
import "./BrickPattern-BfTsjp4I.js";
|
|
@@ -18,7 +18,7 @@ import "./ChannelBlur-DWgS3nhn.js";
|
|
|
18
18
|
import "./Checkerboard-BVBGTvd-.js";
|
|
19
19
|
import "./Chevron-BKZjAXR_.js";
|
|
20
20
|
import "./ChromaFlow-C0guw_LP.js";
|
|
21
|
-
import "./ChromaticAberration-
|
|
21
|
+
import "./ChromaticAberration-DZOcs-bZ.js";
|
|
22
22
|
import "./Circle-BycqVCMt.js";
|
|
23
23
|
import "./ColorWheel-BQUKQPM-.js";
|
|
24
24
|
import "./ConcentricSpin-CO3Kx1I1.js";
|
|
@@ -41,7 +41,7 @@ import "./Duotone-PwTfBBtM.js";
|
|
|
41
41
|
import "./Ellipse-sWhNvW9-.js";
|
|
42
42
|
import "./Emboss-DGaubb9x.js";
|
|
43
43
|
import "./FallingLines-DqIZ8wTH.js";
|
|
44
|
-
import "./FilmGrain-
|
|
44
|
+
import "./FilmGrain-DdV7_b8g.js";
|
|
45
45
|
import "./FloatingParticles-LMsFTJKp.js";
|
|
46
46
|
import "./Flower-BbRNrXIa.js";
|
|
47
47
|
import "./FlowField-D3CAHBBG.js";
|
|
@@ -88,7 +88,7 @@ import "./Ring-UT__kmzY.js";
|
|
|
88
88
|
import "./Ripples-CWVLSUP0.js";
|
|
89
89
|
import "./RoundedRect-BPWHTT1j.js";
|
|
90
90
|
import "./Saturation-DFOp2yD9.js";
|
|
91
|
-
import "./Sharpness-
|
|
91
|
+
import "./Sharpness-PIWR4gYc.js";
|
|
92
92
|
import "./Shatter-CUYQp-qy.js";
|
|
93
93
|
import "./SimplexNoise-LAxWw8fJ.js";
|
|
94
94
|
import "./SineWave-CEQWxC9Q.js";
|
|
@@ -104,7 +104,7 @@ import "./Stretch-3S2atBkJ.js";
|
|
|
104
104
|
import "./Stripes-BGFVSZIt.js";
|
|
105
105
|
import "./StudioBackground-BtJ6b1Ki.js";
|
|
106
106
|
import "./SunBurst-BJRFFYhs.js";
|
|
107
|
-
import "./Swirl-
|
|
107
|
+
import "./Swirl-fkUEZ2TQ.js";
|
|
108
108
|
import "./TiltShift-DtQ3dRL-.js";
|
|
109
109
|
import "./Tint-W_EvzN1-.js";
|
|
110
110
|
import "./Trapezoid-cQzS6-bh.js";
|
|
@@ -118,12 +118,12 @@ import "./browser-NUM-x2tw.js";
|
|
|
118
118
|
import "./VideoTexture-ClutlOqj.js";
|
|
119
119
|
import "./Vignette-F9yxi-UM.js";
|
|
120
120
|
import "./Voronoi-D8HHP_WR.js";
|
|
121
|
-
import "./WaveDistortion-
|
|
121
|
+
import "./WaveDistortion-MbB-Kgjz.js";
|
|
122
122
|
import "./Weave-ou5shgl3.js";
|
|
123
123
|
import "./WebcamTexture-D4e06ajM.js";
|
|
124
124
|
import "./WorleyNoise-Uf6IPm7A.js";
|
|
125
125
|
import "./ZoomBlur-DJ-RNKHM.js";
|
|
126
|
-
import { t as getAllShaders } from "./shaderRegistry-
|
|
126
|
+
import { t as getAllShaders } from "./shaderRegistry-Brvv9sO8.js";
|
|
127
127
|
import { ACESFilmicToneMapping, AgXToneMapping, CineonToneMapping, Material, Mesh, MeshBasicNodeMaterial, NeutralToneMapping, NoToneMapping, OrthographicCamera, PlaneGeometry, ReinhardToneMapping, SRGBColorSpace, Scene, Vector2, WebGPURenderer } from "three/webgpu";
|
|
128
128
|
import { WebGLRenderer } from "three";
|
|
129
129
|
import { PI, abs, add, atan, clamp, convertToTexture, cos, div, dot, float, fract, max, min, mix, mul, pow, screenUV, sign, sin, smoothstep, sqrt, step, sub, time, uniform, uv, vec2, vec3, vec4 } from "three/tsl";
|
|
@@ -805,6 +805,22 @@ function shaderRenderer() {
|
|
|
805
805
|
let actualRTTOperations = 0;
|
|
806
806
|
let currentTextures = /* @__PURE__ */ new Set();
|
|
807
807
|
let previousTextures = /* @__PURE__ */ new Set();
|
|
808
|
+
const activeBeforeRender = /* @__PURE__ */ new Set();
|
|
809
|
+
const activeAfterRender = /* @__PURE__ */ new Set();
|
|
810
|
+
const activeCompute = /* @__PURE__ */ new Set();
|
|
811
|
+
const activeDrivers = /* @__PURE__ */ new Set();
|
|
812
|
+
const frameParams = {
|
|
813
|
+
deltaTime: 0,
|
|
814
|
+
pointer: {
|
|
815
|
+
x: .5,
|
|
816
|
+
y: .5
|
|
817
|
+
},
|
|
818
|
+
pointerActive: false,
|
|
819
|
+
dimensions: {
|
|
820
|
+
width: 0,
|
|
821
|
+
height: 0
|
|
822
|
+
}
|
|
823
|
+
};
|
|
808
824
|
let pendingResize = null;
|
|
809
825
|
let isResizeScheduled = false;
|
|
810
826
|
const clampToTextureCap = (w, h) => {
|
|
@@ -906,6 +922,22 @@ function shaderRenderer() {
|
|
|
906
922
|
for (const item of set1) if (!set2.has(item)) return false;
|
|
907
923
|
return true;
|
|
908
924
|
};
|
|
925
|
+
const rebuildActiveSets = () => {
|
|
926
|
+
activeBeforeRender.clear();
|
|
927
|
+
activeAfterRender.clear();
|
|
928
|
+
activeCompute.clear();
|
|
929
|
+
activeDrivers.clear();
|
|
930
|
+
for (const [id, info] of nodeRegistry.nodes) {
|
|
931
|
+
if (info.beforeRenderCallbacks.length > 0) activeBeforeRender.add(id);
|
|
932
|
+
if (info.afterRenderCallbacks.length > 0) activeAfterRender.add(id);
|
|
933
|
+
if (info.computeGetNodes) activeCompute.add(id);
|
|
934
|
+
const ms = info.mouseDriverState;
|
|
935
|
+
const as = info.autoAnimateState;
|
|
936
|
+
const hasMouse = !!ms && Object.keys(ms).length > 0;
|
|
937
|
+
const hasAnim = !!as && Object.keys(as).length > 0;
|
|
938
|
+
if (hasMouse || hasAnim) activeDrivers.add(id);
|
|
939
|
+
}
|
|
940
|
+
};
|
|
909
941
|
const trackConvertToTexture = (node) => {
|
|
910
942
|
actualRTTOperations++;
|
|
911
943
|
const texture$1 = convertToTexture(node);
|
|
@@ -1000,6 +1032,7 @@ function shaderRenderer() {
|
|
|
1000
1032
|
isUpdatingMaterial = false;
|
|
1001
1033
|
pendingNodeRemoval = false;
|
|
1002
1034
|
}
|
|
1035
|
+
rebuildActiveSets();
|
|
1003
1036
|
if (!animationFrameId) renderFrame();
|
|
1004
1037
|
};
|
|
1005
1038
|
const findChildNodes = (parentId) => {
|
|
@@ -1763,6 +1796,10 @@ function shaderRenderer() {
|
|
|
1763
1796
|
}
|
|
1764
1797
|
}
|
|
1765
1798
|
nodeRegistry.nodes.delete(id);
|
|
1799
|
+
activeBeforeRender.delete(id);
|
|
1800
|
+
activeAfterRender.delete(id);
|
|
1801
|
+
activeCompute.delete(id);
|
|
1802
|
+
activeDrivers.delete(id);
|
|
1766
1803
|
updateMouseListenerRegistration();
|
|
1767
1804
|
pendingNodeRemoval = true;
|
|
1768
1805
|
if (material && isInitialized) {
|
|
@@ -1799,13 +1836,17 @@ function shaderRenderer() {
|
|
|
1799
1836
|
default: return (1 - Math.cos(Math.PI * t)) / 2;
|
|
1800
1837
|
}
|
|
1801
1838
|
};
|
|
1802
|
-
const updateMouseDrivers = (
|
|
1839
|
+
const updateMouseDrivers = () => {
|
|
1840
|
+
const deltaTime = frameParams.deltaTime;
|
|
1803
1841
|
globalElapsedTime += deltaTime;
|
|
1804
|
-
for (const
|
|
1805
|
-
|
|
1842
|
+
for (const id of activeDrivers) {
|
|
1843
|
+
const nodeInfo = nodeRegistry.nodes.get(id);
|
|
1844
|
+
if (!nodeInfo) continue;
|
|
1806
1845
|
const maps = nodeInfo.metadata.maps;
|
|
1807
1846
|
if (!maps) continue;
|
|
1808
|
-
|
|
1847
|
+
const mouseState = nodeInfo.mouseDriverState;
|
|
1848
|
+
for (const propName in mouseState) {
|
|
1849
|
+
const state = mouseState[propName];
|
|
1809
1850
|
const driverConfig = maps[propName];
|
|
1810
1851
|
if (!driverConfig) continue;
|
|
1811
1852
|
if (driverConfig.type === "mouse-position") {
|
|
@@ -1853,8 +1894,10 @@ function shaderRenderer() {
|
|
|
1853
1894
|
state.smoothedUniform.value = Math.max(.001, nx);
|
|
1854
1895
|
}
|
|
1855
1896
|
}
|
|
1856
|
-
|
|
1857
|
-
|
|
1897
|
+
const animState = nodeInfo.autoAnimateState;
|
|
1898
|
+
if (!animState) continue;
|
|
1899
|
+
for (const propName in animState) {
|
|
1900
|
+
const state = animState[propName];
|
|
1858
1901
|
const driverConfig = maps[propName];
|
|
1859
1902
|
if (!driverConfig || driverConfig.type !== "auto-animate") continue;
|
|
1860
1903
|
const globalT = globalElapsedTime * (driverConfig.speed ?? 1) * .2;
|
|
@@ -1881,62 +1924,38 @@ function shaderRenderer() {
|
|
|
1881
1924
|
}
|
|
1882
1925
|
}
|
|
1883
1926
|
};
|
|
1884
|
-
const executeComputeDispatches = (
|
|
1885
|
-
const
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
width: currentWidth,
|
|
1894
|
-
height: currentHeight
|
|
1927
|
+
const executeComputeDispatches = () => {
|
|
1928
|
+
for (const id of activeCompute) {
|
|
1929
|
+
const nodeInfo = nodeRegistry.nodes.get(id);
|
|
1930
|
+
if (!nodeInfo || !nodeInfo.computeGetNodes) continue;
|
|
1931
|
+
try {
|
|
1932
|
+
const nodes = nodeInfo.computeGetNodes(frameParams);
|
|
1933
|
+
if (nodes) for (const node of nodes) renderer.compute(node);
|
|
1934
|
+
} catch (e) {
|
|
1935
|
+
console.error(`Error dispatching compute for node ${nodeInfo.id}:`, e);
|
|
1895
1936
|
}
|
|
1896
|
-
};
|
|
1897
|
-
for (const nodeInfo of nodeRegistry.nodes.values()) if (nodeInfo.computeGetNodes) try {
|
|
1898
|
-
const nodes = nodeInfo.computeGetNodes(params);
|
|
1899
|
-
if (nodes) for (const node of nodes) renderer.compute(node);
|
|
1900
|
-
} catch (e) {
|
|
1901
|
-
console.error(`Error dispatching compute for node ${nodeInfo.id}:`, e);
|
|
1902
1937
|
}
|
|
1903
1938
|
};
|
|
1904
|
-
const executeBeforeRenderCallbacks = (
|
|
1905
|
-
const
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
dimensions: {
|
|
1913
|
-
width: currentWidth,
|
|
1914
|
-
height: currentHeight
|
|
1939
|
+
const executeBeforeRenderCallbacks = () => {
|
|
1940
|
+
for (const id of activeBeforeRender) {
|
|
1941
|
+
const nodeInfo = nodeRegistry.nodes.get(id);
|
|
1942
|
+
if (!nodeInfo) continue;
|
|
1943
|
+
for (const callback of nodeInfo.beforeRenderCallbacks) try {
|
|
1944
|
+
callback(frameParams);
|
|
1945
|
+
} catch (e) {
|
|
1946
|
+
console.error(`Error executing before render callback for node ${nodeInfo.id}:`, e);
|
|
1915
1947
|
}
|
|
1916
|
-
};
|
|
1917
|
-
for (const nodeInfo of nodeRegistry.nodes.values()) if (nodeInfo.beforeRenderCallbacks.length > 0) for (const callback of nodeInfo.beforeRenderCallbacks) try {
|
|
1918
|
-
callback(params);
|
|
1919
|
-
} catch (e) {
|
|
1920
|
-
console.error(`Error executing before render callback for node ${nodeInfo.id}:`, e);
|
|
1921
1948
|
}
|
|
1922
1949
|
};
|
|
1923
|
-
const executeAfterRenderCallbacks = (
|
|
1924
|
-
const
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
dimensions: {
|
|
1932
|
-
width: currentWidth,
|
|
1933
|
-
height: currentHeight
|
|
1950
|
+
const executeAfterRenderCallbacks = () => {
|
|
1951
|
+
for (const id of activeAfterRender) {
|
|
1952
|
+
const nodeInfo = nodeRegistry.nodes.get(id);
|
|
1953
|
+
if (!nodeInfo) continue;
|
|
1954
|
+
for (const callback of nodeInfo.afterRenderCallbacks) try {
|
|
1955
|
+
callback(frameParams);
|
|
1956
|
+
} catch (e) {
|
|
1957
|
+
console.error(`Error executing after render callback for node ${nodeInfo.id}:`, e);
|
|
1934
1958
|
}
|
|
1935
|
-
};
|
|
1936
|
-
for (const nodeInfo of nodeRegistry.nodes.values()) if (nodeInfo.afterRenderCallbacks.length > 0) for (const callback of nodeInfo.afterRenderCallbacks) try {
|
|
1937
|
-
callback(params);
|
|
1938
|
-
} catch (e) {
|
|
1939
|
-
console.error(`Error executing after render callback for node ${nodeInfo.id}:`, e);
|
|
1940
1959
|
}
|
|
1941
1960
|
};
|
|
1942
1961
|
const renderAndWait = async () => {
|
|
@@ -1969,10 +1988,15 @@ function shaderRenderer() {
|
|
|
1969
1988
|
const cappedDeltaTime = Math.min(deltaTime, .1);
|
|
1970
1989
|
lastRenderTime = currentTime;
|
|
1971
1990
|
if (enablePerformanceTracking) performance.mark("shader-cpu-start");
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1991
|
+
frameParams.deltaTime = cappedDeltaTime;
|
|
1992
|
+
frameParams.pointer.x = pointerX;
|
|
1993
|
+
frameParams.pointer.y = pointerY;
|
|
1994
|
+
frameParams.pointerActive = pointerActive;
|
|
1995
|
+
frameParams.dimensions.width = currentWidth;
|
|
1996
|
+
frameParams.dimensions.height = currentHeight;
|
|
1997
|
+
updateMouseDrivers();
|
|
1998
|
+
executeComputeDispatches();
|
|
1999
|
+
executeBeforeRenderCallbacks();
|
|
1976
2000
|
try {
|
|
1977
2001
|
if (isUpdatingMaterial) return;
|
|
1978
2002
|
if (enablePerformanceTracking) performance.mark("shader-gpu-start");
|
|
@@ -1982,7 +2006,7 @@ function shaderRenderer() {
|
|
|
1982
2006
|
firstRenderPending = false;
|
|
1983
2007
|
if (onReadyCallback) queueMicrotask(onReadyCallback);
|
|
1984
2008
|
}
|
|
1985
|
-
executeAfterRenderCallbacks(
|
|
2009
|
+
executeAfterRenderCallbacks();
|
|
1986
2010
|
if (enablePerformanceTracking) {
|
|
1987
2011
|
performance.mark("shader-gpu-end");
|
|
1988
2012
|
let recordedTrueGpuTime = false;
|
|
@@ -2104,7 +2128,8 @@ function shaderRenderer() {
|
|
|
2104
2128
|
}
|
|
2105
2129
|
};
|
|
2106
2130
|
const updatePointerCoords = (event) => {
|
|
2107
|
-
if (!canvasElement
|
|
2131
|
+
if (!canvasElement) return;
|
|
2132
|
+
cachedCanvasRect = canvasElement.getBoundingClientRect();
|
|
2108
2133
|
let clientX;
|
|
2109
2134
|
let clientY;
|
|
2110
2135
|
if ("touches" in event) {
|
|
@@ -2369,6 +2394,10 @@ function shaderRenderer() {
|
|
|
2369
2394
|
nodeRegistry.rootId = null;
|
|
2370
2395
|
nodeRegistry.idToNodeId.clear();
|
|
2371
2396
|
parentToChildren.clear();
|
|
2397
|
+
activeBeforeRender.clear();
|
|
2398
|
+
activeAfterRender.clear();
|
|
2399
|
+
activeCompute.clear();
|
|
2400
|
+
activeDrivers.clear();
|
|
2372
2401
|
pendingRegistrationQueue = [];
|
|
2373
2402
|
isRendererReady = false;
|
|
2374
2403
|
if (materialUpdateBatchRAF !== null) {
|
package/dist/core/registry.js
CHANGED
|
@@ -8,7 +8,7 @@ import "./time-DUqSFWvT.js";
|
|
|
8
8
|
import "./Aurora-D5Pjk4ve.js";
|
|
9
9
|
import "./BarShift-2XBhva1A.js";
|
|
10
10
|
import "./Beam-B3BX08lR.js";
|
|
11
|
-
import "./Blob-
|
|
11
|
+
import "./Blob-BT50tDXE.js";
|
|
12
12
|
import "./computeBlur-CprKe0xa.js";
|
|
13
13
|
import "./Blur-5_t3tR_g.js";
|
|
14
14
|
import "./BrickPattern-BfTsjp4I.js";
|
|
@@ -18,7 +18,7 @@ import "./ChannelBlur-DWgS3nhn.js";
|
|
|
18
18
|
import "./Checkerboard-BVBGTvd-.js";
|
|
19
19
|
import "./Chevron-BKZjAXR_.js";
|
|
20
20
|
import "./ChromaFlow-C0guw_LP.js";
|
|
21
|
-
import "./ChromaticAberration-
|
|
21
|
+
import "./ChromaticAberration-DZOcs-bZ.js";
|
|
22
22
|
import "./Circle-BycqVCMt.js";
|
|
23
23
|
import "./ColorWheel-BQUKQPM-.js";
|
|
24
24
|
import "./ConcentricSpin-CO3Kx1I1.js";
|
|
@@ -41,7 +41,7 @@ import "./Duotone-PwTfBBtM.js";
|
|
|
41
41
|
import "./Ellipse-sWhNvW9-.js";
|
|
42
42
|
import "./Emboss-DGaubb9x.js";
|
|
43
43
|
import "./FallingLines-DqIZ8wTH.js";
|
|
44
|
-
import "./FilmGrain-
|
|
44
|
+
import "./FilmGrain-DdV7_b8g.js";
|
|
45
45
|
import "./FloatingParticles-LMsFTJKp.js";
|
|
46
46
|
import "./Flower-BbRNrXIa.js";
|
|
47
47
|
import "./FlowField-D3CAHBBG.js";
|
|
@@ -88,7 +88,7 @@ import "./Ring-UT__kmzY.js";
|
|
|
88
88
|
import "./Ripples-CWVLSUP0.js";
|
|
89
89
|
import "./RoundedRect-BPWHTT1j.js";
|
|
90
90
|
import "./Saturation-DFOp2yD9.js";
|
|
91
|
-
import "./Sharpness-
|
|
91
|
+
import "./Sharpness-PIWR4gYc.js";
|
|
92
92
|
import "./Shatter-CUYQp-qy.js";
|
|
93
93
|
import "./SimplexNoise-LAxWw8fJ.js";
|
|
94
94
|
import "./SineWave-CEQWxC9Q.js";
|
|
@@ -104,7 +104,7 @@ import "./Stretch-3S2atBkJ.js";
|
|
|
104
104
|
import "./Stripes-BGFVSZIt.js";
|
|
105
105
|
import "./StudioBackground-BtJ6b1Ki.js";
|
|
106
106
|
import "./SunBurst-BJRFFYhs.js";
|
|
107
|
-
import "./Swirl-
|
|
107
|
+
import "./Swirl-fkUEZ2TQ.js";
|
|
108
108
|
import "./TiltShift-DtQ3dRL-.js";
|
|
109
109
|
import "./Tint-W_EvzN1-.js";
|
|
110
110
|
import "./Trapezoid-cQzS6-bh.js";
|
|
@@ -118,10 +118,10 @@ import "./browser-NUM-x2tw.js";
|
|
|
118
118
|
import "./VideoTexture-ClutlOqj.js";
|
|
119
119
|
import "./Vignette-F9yxi-UM.js";
|
|
120
120
|
import "./Voronoi-D8HHP_WR.js";
|
|
121
|
-
import "./WaveDistortion-
|
|
121
|
+
import "./WaveDistortion-MbB-Kgjz.js";
|
|
122
122
|
import "./Weave-ou5shgl3.js";
|
|
123
123
|
import "./WebcamTexture-D4e06ajM.js";
|
|
124
124
|
import "./WorleyNoise-Uf6IPm7A.js";
|
|
125
125
|
import "./ZoomBlur-DJ-RNKHM.js";
|
|
126
|
-
import { a as shaderRegistry, i as getShadersByCategory, n as getShaderByName, r as getShaderCategories, t as getAllShaders } from "./shaderRegistry-
|
|
126
|
+
import { a as shaderRegistry, i as getShadersByCategory, n as getShaderByName, r as getShaderCategories, t as getAllShaders } from "./shaderRegistry-Brvv9sO8.js";
|
|
127
127
|
export { getAllShaders, getShaderByName, getShaderCategories, getShadersByCategory, shaderRegistry };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,IAAI,EAMT,cAAc,EAOjB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAA;AAInC,OAAO,EAAoB,eAAe,EAAE,mBAAmB,EAAE,UAAU,EAA8D,YAAY,EAAE,cAAc,EAAE,cAAc,EAAqB,WAAW,EAAE,eAAe,EAAC,MAAM,SAAS,CAAA;AACtP,OAAO,EAAqB,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;AAMzE;;GAEG;AACH,UAAU,QAAQ;IAEd;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,gBAAgB,EAAE,mBAAmB,CAAC,cAAc,CAAC,CAAA;IAErD;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAA;IAEtB;;OAE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PE,OAAO,CAAC,IAAI,CAAC;+BAmNb,gBAAgB;;eAmrBmB,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;2BArBpE,QAAQ,GAAG,OAAO,GAAG,IAAI;;qCAwBhB,OAAO,KAAG,OAAO;2BAK3B,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;gCAGd,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,IAAI;;;mCAr/E/B,MAAM,KAAG,QAAQ,EAAE;oCA+CzC,IAAI,YACF,QAAQ,UACV,MAAM,kBACE,GAAG,CAAC,MAAM,CAAC,gBACb,IAAI,KACnB,IAAI;0CA0VK,IAAI,YACF,QAAQ,KACnB,IAAI;;;;EAmnEV"}
|
|
@@ -3,7 +3,7 @@ import { n as componentDefinition$1 } from "./Ascii-BwSMmD6Z.js";
|
|
|
3
3
|
import { n as componentDefinition$2 } from "./Aurora-D5Pjk4ve.js";
|
|
4
4
|
import { n as componentDefinition$3 } from "./BarShift-2XBhva1A.js";
|
|
5
5
|
import { n as componentDefinition$4 } from "./Beam-B3BX08lR.js";
|
|
6
|
-
import { n as componentDefinition$5 } from "./Blob-
|
|
6
|
+
import { n as componentDefinition$5 } from "./Blob-BT50tDXE.js";
|
|
7
7
|
import { n as componentDefinition$6 } from "./Blur-5_t3tR_g.js";
|
|
8
8
|
import { n as componentDefinition$7 } from "./BrickPattern-BfTsjp4I.js";
|
|
9
9
|
import { n as componentDefinition$8 } from "./BrightnessContrast-GppIqtkO.js";
|
|
@@ -12,7 +12,7 @@ import { n as componentDefinition$10 } from "./ChannelBlur-DWgS3nhn.js";
|
|
|
12
12
|
import { n as componentDefinition$11 } from "./Checkerboard-BVBGTvd-.js";
|
|
13
13
|
import { n as componentDefinition$12 } from "./Chevron-BKZjAXR_.js";
|
|
14
14
|
import { n as componentDefinition$13 } from "./ChromaFlow-C0guw_LP.js";
|
|
15
|
-
import { n as componentDefinition$14 } from "./ChromaticAberration-
|
|
15
|
+
import { n as componentDefinition$14 } from "./ChromaticAberration-DZOcs-bZ.js";
|
|
16
16
|
import { n as componentDefinition$15 } from "./Circle-BycqVCMt.js";
|
|
17
17
|
import { n as componentDefinition$16 } from "./ColorWheel-BQUKQPM-.js";
|
|
18
18
|
import { n as componentDefinition$17 } from "./ConcentricSpin-CO3Kx1I1.js";
|
|
@@ -34,7 +34,7 @@ import { n as componentDefinition$32 } from "./Duotone-PwTfBBtM.js";
|
|
|
34
34
|
import { n as componentDefinition$33 } from "./Ellipse-sWhNvW9-.js";
|
|
35
35
|
import { n as componentDefinition$34 } from "./Emboss-DGaubb9x.js";
|
|
36
36
|
import { n as componentDefinition$35 } from "./FallingLines-DqIZ8wTH.js";
|
|
37
|
-
import { n as componentDefinition$36 } from "./FilmGrain-
|
|
37
|
+
import { n as componentDefinition$36 } from "./FilmGrain-DdV7_b8g.js";
|
|
38
38
|
import { n as componentDefinition$37 } from "./FloatingParticles-LMsFTJKp.js";
|
|
39
39
|
import { n as componentDefinition$38 } from "./Flower-BbRNrXIa.js";
|
|
40
40
|
import { n as componentDefinition$39 } from "./FlowField-D3CAHBBG.js";
|
|
@@ -81,7 +81,7 @@ import { n as componentDefinition$79 } from "./Ring-UT__kmzY.js";
|
|
|
81
81
|
import { n as componentDefinition$80 } from "./Ripples-CWVLSUP0.js";
|
|
82
82
|
import { n as componentDefinition$81 } from "./RoundedRect-BPWHTT1j.js";
|
|
83
83
|
import { n as componentDefinition$82 } from "./Saturation-DFOp2yD9.js";
|
|
84
|
-
import { n as componentDefinition$83 } from "./Sharpness-
|
|
84
|
+
import { n as componentDefinition$83 } from "./Sharpness-PIWR4gYc.js";
|
|
85
85
|
import { n as componentDefinition$84 } from "./Shatter-CUYQp-qy.js";
|
|
86
86
|
import { n as componentDefinition$85 } from "./SimplexNoise-LAxWw8fJ.js";
|
|
87
87
|
import { n as componentDefinition$86 } from "./SineWave-CEQWxC9Q.js";
|
|
@@ -97,7 +97,7 @@ import { n as componentDefinition$95 } from "./Stretch-3S2atBkJ.js";
|
|
|
97
97
|
import { n as componentDefinition$96 } from "./Stripes-BGFVSZIt.js";
|
|
98
98
|
import { n as componentDefinition$97 } from "./StudioBackground-BtJ6b1Ki.js";
|
|
99
99
|
import { n as componentDefinition$98 } from "./SunBurst-BJRFFYhs.js";
|
|
100
|
-
import { n as componentDefinition$99 } from "./Swirl-
|
|
100
|
+
import { n as componentDefinition$99 } from "./Swirl-fkUEZ2TQ.js";
|
|
101
101
|
import { n as componentDefinition$100 } from "./TiltShift-DtQ3dRL-.js";
|
|
102
102
|
import { n as componentDefinition$101 } from "./Tint-W_EvzN1-.js";
|
|
103
103
|
import { n as componentDefinition$102 } from "./Trapezoid-cQzS6-bh.js";
|
|
@@ -110,7 +110,7 @@ import { n as componentDefinition$108 } from "./Vibrance-DUj7hwzE.js";
|
|
|
110
110
|
import { n as componentDefinition$109 } from "./VideoTexture-ClutlOqj.js";
|
|
111
111
|
import { n as componentDefinition$110 } from "./Vignette-F9yxi-UM.js";
|
|
112
112
|
import { n as componentDefinition$111 } from "./Voronoi-D8HHP_WR.js";
|
|
113
|
-
import { n as componentDefinition$112 } from "./WaveDistortion-
|
|
113
|
+
import { n as componentDefinition$112 } from "./WaveDistortion-MbB-Kgjz.js";
|
|
114
114
|
import { n as componentDefinition$113 } from "./Weave-ou5shgl3.js";
|
|
115
115
|
import { n as componentDefinition$114 } from "./WebcamTexture-D4e06ajM.js";
|
|
116
116
|
import { n as componentDefinition$115 } from "./WorleyNoise-Uf6IPm7A.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Blob/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAyC,MAAM,qCAAqC,CAAA;AAI7H,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAA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