anegis-webflow-new 1.3.1 → 1.3.2
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/index.js +6 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -77,14 +77,13 @@
|
|
|
77
77
|
float dist = max(distX, distY); // Use maximum - reaches 1.0 at any edge
|
|
78
78
|
|
|
79
79
|
// --- ANIMATED NOISE for organic color morphing ---
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
float
|
|
83
|
-
float noise = (n1 + n2) * 0.5;
|
|
80
|
+
// Very low frequency = just 1-2 large color areas, smooth and rounded
|
|
81
|
+
vec2 noiseCoord = uv * 0.8;
|
|
82
|
+
float noise = fbm(noiseCoord + vec2(time * 0.3, time * 0.2));
|
|
84
83
|
|
|
85
|
-
// --- COLOR MIXING: two colors
|
|
86
|
-
float colorMix = noise
|
|
87
|
-
colorMix = smoothstep(0.
|
|
84
|
+
// --- COLOR MIXING: simple smooth blend between two colors ---
|
|
85
|
+
float colorMix = noise + 0.5;
|
|
86
|
+
colorMix = smoothstep(0.4, 0.6, colorMix); // Soft edge between colors
|
|
88
87
|
vec3 gradientColor = mix(u_color1, u_color2, colorMix);
|
|
89
88
|
|
|
90
89
|
// --- RADIAL FADE: MUST reach background before canvas edges ---
|