From 055f6afc33e773be1e2a8c9642288e84d36308eb Mon Sep 17 00:00:00 2001
From: pommicket
Date: Mon, 19 Jun 2023 09:43:48 -0400
Subject: idk
---
index.html | 50 +++++++++++++++-----------------------------------
1 file changed, 15 insertions(+), 35 deletions(-)
(limited to 'index.html')
diff --git a/index.html b/index.html
index d184202..70c0554 100644
--- a/index.html
+++ b/index.html
@@ -117,13 +117,9 @@
@@ -133,11 +129,22 @@ precision highp float;
#endif
uniform sampler2D u_texture;
-varying vec4 color;
+uniform float u_time;
varying vec2 uv;
void main() {
- gl_FragColor = mix(texture2D(u_texture, uv), vec4(color.xyz, 1.0), color.w);
+ vec2 u = pow(uv,vec2(1.2 + 0.4 * sin(u_time)));
+ vec2 k =floor(3.0 * u);
+ int i = int(k.y * 3.0 + k.x);
+ if (i == 4) discard;
+ vec3 sample = texture2D(u_texture, mod(3.0*u, 1.0)).xyz;
+ float h = mod(float(i) * 5.0, 8.0) / 8.0;
+ sample = vec3(
+ mix(sample.x, sample.z, h),
+ mix(sample.y, sample.x, h),
+ mix(sample.z, sample.y, h)
+ );
+ gl_FragColor = vec4(mix(sample, vec3(1.0,0.0,0.0), 0.2),1.0);
}
@@ -176,36 +183,9 @@ void main() {
Try upgrading to the latest version of Microsoft Internet Explorer®.
-